@Generated(value="software.amazon.awssdk:codegen") public final class GetQuantumTaskResponse extends BraketResponse implements ToCopyableBuilder<GetQuantumTaskResponse.Builder,GetQuantumTaskResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetQuantumTaskResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GetQuantumTaskResponse.Builder |
builder() |
Instant |
createdAt()
The time at which the task was created.
|
String |
deviceArn()
The ARN of the device the task was run on.
|
String |
deviceParameters()
The parameters for the device on which the task ran.
|
Instant |
endedAt()
The time at which the task ended.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
failureReason()
The reason that a task failed.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
jobArn()
The ARN of the Amazon Braket job associated with the quantum task.
|
String |
outputS3Bucket()
The S3 bucket where task results are stored.
|
String |
outputS3Directory()
The folder in the S3 bucket where task results are stored.
|
String |
quantumTaskArn()
The ARN of the task.
|
QuantumTaskQueueInfo |
queueInfo()
Queue information for the requested quantum task.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetQuantumTaskResponse.Builder> |
serializableBuilderClass() |
Long |
shots()
The number of shots used in the task.
|
QuantumTaskStatus |
status()
The status of the task.
|
String |
statusAsString()
The status of the task.
|
Map<String,String> |
tags()
The tags that belong to this task.
|
GetQuantumTaskResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Instant createdAt()
The time at which the task was created.
public final String deviceArn()
The ARN of the device the task was run on.
public final String deviceParameters()
The parameters for the device on which the task ran.
public final Instant endedAt()
The time at which the task ended.
public final String failureReason()
The reason that a task failed.
public final String jobArn()
The ARN of the Amazon Braket job associated with the quantum task.
public final String outputS3Bucket()
The S3 bucket where task results are stored.
public final String outputS3Directory()
The folder in the S3 bucket where task results are stored.
public final String quantumTaskArn()
The ARN of the task.
public final QuantumTaskQueueInfo queueInfo()
Queue information for the requested quantum task. Only returned if QueueInfo is specified in the
additionalAttributeNames" field in the GetQuantumTask API request.
QueueInfo is specified in
the additionalAttributeNames" field in the GetQuantumTask API request.public final Long shots()
The number of shots used in the task.
public final QuantumTaskStatus status()
The status of the task.
If the service returns an enum value that is not available in the current SDK version, status will
return QuantumTaskStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
QuantumTaskStatuspublic final String statusAsString()
The status of the task.
If the service returns an enum value that is not available in the current SDK version, status will
return QuantumTaskStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
QuantumTaskStatuspublic final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final Map<String,String> tags()
The tags that belong to this task.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public GetQuantumTaskResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetQuantumTaskResponse.Builder,GetQuantumTaskResponse>toBuilder in class AwsResponsepublic static GetQuantumTaskResponse.Builder builder()
public static Class<? extends GetQuantumTaskResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2023. All rights reserved.