+ /** The identifier of the request. */
+ private final String identifier;
+
+ /** Whether the operation failed. */
+ private boolean failed;
+
+ /**
+ * Package-private constructor.
+ *
+ * @param identifier
+ * The identifier of the request
+ */
+ HighLevelResult(String identifier) {
+ this.identifier = identifier;
+ }
+
+ /**
+ * Returns the identifier of the underlying request.
+ *
+ * @return The identifier of the request
+ */
+ public String getIdentifier() {
+ return identifier;
+ }
+
+ /**
+ * Returns whether the operation failed.
+ *
+ * @return <code>true</code> if the operation failed, <code>false</code>
+ * otherwise
+ */
+ public boolean isFailed() {
+ return failed;
+ }
+
+ /**
+ * Sets whether the operation failed.
+ *
+ * @param failed
+ * <code>true</code> if the operation failed,
+ * <code>false</code> otherwise
+ */
+ void setFailed(boolean failed) {
+ this.failed = failed;
+ }