Interface GetTrainingOperationResultResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetTrainingOperationResultResponse.Builder,,GetTrainingOperationResultResponse> SageMakerTrainingSessionRuntimeResponse.Builder,SdkBuilder<GetTrainingOperationResultResponse.Builder,,GetTrainingOperationResultResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetTrainingOperationResultResponse
-
Method Summary
Modifier and TypeMethodDescriptionerrorDetails(String errorDetails) A message describing why the operation failed.operationResult(Consumer<OperationResult.Builder> operationResult) The result payload of the operation.operationResult(OperationResult operationResult) The result payload of the operation.The current status of the operation.status(RequestStatus status) The current status of the operation.tokenUsage(Consumer<TrainingTokenUsage.Builder> tokenUsage) The token usage statistics for metering purposes.tokenUsage(TrainingTokenUsage tokenUsage) The token usage statistics for metering purposes.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.sagemakertrainingsessionruntime.model.SageMakerTrainingSessionRuntimeResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
status
The current status of the operation. Possible values are
Pending,InProgress,Completed,Failed, orSkipped.- Parameters:
status- The current status of the operation. Possible values arePending,InProgress,Completed,Failed, orSkipped.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the operation. Possible values are
Pending,InProgress,Completed,Failed, orSkipped.- Parameters:
status- The current status of the operation. Possible values arePending,InProgress,Completed,Failed, orSkipped.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
operationResult
The result payload of the operation. The service populates this field only when the status is
Completed. The populated member of the union corresponds to the operation type that was submitted.- Parameters:
operationResult- The result payload of the operation. The service populates this field only when the status isCompleted. The populated member of the union corresponds to the operation type that was submitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operationResult
default GetTrainingOperationResultResponse.Builder operationResult(Consumer<OperationResult.Builder> operationResult) The result payload of the operation. The service populates this field only when the status is
This is a convenience method that creates an instance of theCompleted. The populated member of the union corresponds to the operation type that was submitted.OperationResult.Builderavoiding the need to create one manually viaOperationResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooperationResult(OperationResult).- Parameters:
operationResult- a consumer that will call methods onOperationResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorDetails
A message describing why the operation failed. The service populates this field only when the status is
Failed.- Parameters:
errorDetails- A message describing why the operation failed. The service populates this field only when the status isFailed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenUsage
The token usage statistics for metering purposes. The service populates this field for forward and forwardBackward operations upon completion.
- Parameters:
tokenUsage- The token usage statistics for metering purposes. The service populates this field for forward and forwardBackward operations upon completion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenUsage
default GetTrainingOperationResultResponse.Builder tokenUsage(Consumer<TrainingTokenUsage.Builder> tokenUsage) The token usage statistics for metering purposes. The service populates this field for forward and forwardBackward operations upon completion.
This is a convenience method that creates an instance of theTrainingTokenUsage.Builderavoiding the need to create one manually viaTrainingTokenUsage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totokenUsage(TrainingTokenUsage).- Parameters:
tokenUsage- a consumer that will call methods onTrainingTokenUsage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-