Interface GetQuantumTaskResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,BraketResponse.Builder,Buildable,CopyableBuilder<GetQuantumTaskResponse.Builder,GetQuantumTaskResponse>,SdkBuilder<GetQuantumTaskResponse.Builder,GetQuantumTaskResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetQuantumTaskResponse
public static interface GetQuantumTaskResponse.Builder extends BraketResponse.Builder, SdkPojo, CopyableBuilder<GetQuantumTaskResponse.Builder,GetQuantumTaskResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetQuantumTaskResponse.Builderassociations(Collection<Association> associations)The list of Amazon Braket resources associated with the quantum task.GetQuantumTaskResponse.Builderassociations(Consumer<Association.Builder>... associations)The list of Amazon Braket resources associated with the quantum task.GetQuantumTaskResponse.Builderassociations(Association... associations)The list of Amazon Braket resources associated with the quantum task.GetQuantumTaskResponse.BuildercreatedAt(Instant createdAt)The time at which the task was created.GetQuantumTaskResponse.BuilderdeviceArn(String deviceArn)The ARN of the device the task was run on.GetQuantumTaskResponse.BuilderdeviceParameters(String deviceParameters)The parameters for the device on which the task ran.GetQuantumTaskResponse.BuilderendedAt(Instant endedAt)The time at which the task ended.GetQuantumTaskResponse.BuilderfailureReason(String failureReason)The reason that a task failed.GetQuantumTaskResponse.BuilderjobArn(String jobArn)The ARN of the Amazon Braket job associated with the quantum task.GetQuantumTaskResponse.BuilderoutputS3Bucket(String outputS3Bucket)The S3 bucket where task results are stored.GetQuantumTaskResponse.BuilderoutputS3Directory(String outputS3Directory)The folder in the S3 bucket where task results are stored.GetQuantumTaskResponse.BuilderquantumTaskArn(String quantumTaskArn)The ARN of the task.default GetQuantumTaskResponse.BuilderqueueInfo(Consumer<QuantumTaskQueueInfo.Builder> queueInfo)Queue information for the requested quantum task.GetQuantumTaskResponse.BuilderqueueInfo(QuantumTaskQueueInfo queueInfo)Queue information for the requested quantum task.GetQuantumTaskResponse.Buildershots(Long shots)The number of shots used in the task.GetQuantumTaskResponse.Builderstatus(String status)The status of the task.GetQuantumTaskResponse.Builderstatus(QuantumTaskStatus status)The status of the task.GetQuantumTaskResponse.Buildertags(Map<String,String> tags)The tags that belong to this task.-
Methods inherited from interface software.amazon.awssdk.services.braket.model.BraketResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
associations
GetQuantumTaskResponse.Builder associations(Collection<Association> associations)
The list of Amazon Braket resources associated with the quantum task.
- Parameters:
associations- The list of Amazon Braket resources associated with the quantum task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associations
GetQuantumTaskResponse.Builder associations(Association... associations)
The list of Amazon Braket resources associated with the quantum task.
- Parameters:
associations- The list of Amazon Braket resources associated with the quantum task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associations
GetQuantumTaskResponse.Builder associations(Consumer<Association.Builder>... associations)
The list of Amazon Braket resources associated with the quantum task.
This is a convenience method that creates an instance of theAssociation.Builderavoiding the need to create one manually viaAssociation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#associations(List.) - Parameters:
associations- a consumer that will call methods onAssociation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#associations(java.util.Collection)
-
createdAt
GetQuantumTaskResponse.Builder createdAt(Instant createdAt)
The time at which the task was created.
- Parameters:
createdAt- The time at which the task was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceArn
GetQuantumTaskResponse.Builder deviceArn(String deviceArn)
The ARN of the device the task was run on.
- Parameters:
deviceArn- The ARN of the device the task was run on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceParameters
GetQuantumTaskResponse.Builder deviceParameters(String deviceParameters)
The parameters for the device on which the task ran.
- Parameters:
deviceParameters- The parameters for the device on which the task ran.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endedAt
GetQuantumTaskResponse.Builder endedAt(Instant endedAt)
The time at which the task ended.
- Parameters:
endedAt- The time at which the task ended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReason
GetQuantumTaskResponse.Builder failureReason(String failureReason)
The reason that a task failed.
- Parameters:
failureReason- The reason that a task failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobArn
GetQuantumTaskResponse.Builder jobArn(String jobArn)
The ARN of the Amazon Braket job associated with the quantum task.
- Parameters:
jobArn- The ARN of the Amazon Braket job associated with the quantum task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputS3Bucket
GetQuantumTaskResponse.Builder outputS3Bucket(String outputS3Bucket)
The S3 bucket where task results are stored.
- Parameters:
outputS3Bucket- The S3 bucket where task results are stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputS3Directory
GetQuantumTaskResponse.Builder outputS3Directory(String outputS3Directory)
The folder in the S3 bucket where task results are stored.
- Parameters:
outputS3Directory- The folder in the S3 bucket where task results are stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quantumTaskArn
GetQuantumTaskResponse.Builder quantumTaskArn(String quantumTaskArn)
The ARN of the task.
- Parameters:
quantumTaskArn- The ARN of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queueInfo
GetQuantumTaskResponse.Builder queueInfo(QuantumTaskQueueInfo queueInfo)
Queue information for the requested quantum task. Only returned if
QueueInfois specified in theadditionalAttributeNames"field in theGetQuantumTaskAPI request.- Parameters:
queueInfo- Queue information for the requested quantum task. Only returned ifQueueInfois specified in theadditionalAttributeNames"field in theGetQuantumTaskAPI request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queueInfo
default GetQuantumTaskResponse.Builder queueInfo(Consumer<QuantumTaskQueueInfo.Builder> queueInfo)
Queue information for the requested quantum task. Only returned if
This is a convenience method that creates an instance of theQueueInfois specified in theadditionalAttributeNames"field in theGetQuantumTaskAPI request.QuantumTaskQueueInfo.Builderavoiding the need to create one manually viaQuantumTaskQueueInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toqueueInfo(QuantumTaskQueueInfo).- Parameters:
queueInfo- a consumer that will call methods onQuantumTaskQueueInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
queueInfo(QuantumTaskQueueInfo)
-
shots
GetQuantumTaskResponse.Builder shots(Long shots)
The number of shots used in the task.
- Parameters:
shots- The number of shots used in the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
GetQuantumTaskResponse.Builder status(String status)
The status of the task.
- Parameters:
status- The status of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
QuantumTaskStatus,QuantumTaskStatus
-
status
GetQuantumTaskResponse.Builder status(QuantumTaskStatus status)
The status of the task.
- Parameters:
status- The status of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
QuantumTaskStatus,QuantumTaskStatus
-
tags
GetQuantumTaskResponse.Builder tags(Map<String,String> tags)
The tags that belong to this task.
- Parameters:
tags- The tags that belong to this task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-