Interface GetSamplingOperationResultResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetSamplingOperationResultResponse.Builder,,GetSamplingOperationResultResponse> SageMakerTrainingSessionRuntimeResponse.Builder,SdkBuilder<GetSamplingOperationResultResponse.Builder,,GetSamplingOperationResultResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetSamplingOperationResultResponse
@Mutable
@NotThreadSafe
public static interface GetSamplingOperationResultResponse.Builder
extends SageMakerTrainingSessionRuntimeResponse.Builder, SdkPojo, CopyableBuilder<GetSamplingOperationResultResponse.Builder,GetSamplingOperationResultResponse>
-
Method Summary
Modifier and TypeMethodDescriptionerrorDetails(String errorDetails) A message describing why the sample operation failed.operationResult(Consumer<SampleOperationResult.Builder> operationResult) The result payload of the sample operation.operationResult(SampleOperationResult operationResult) The result payload of the sample operation.The current status of the sample operation.status(RequestStatus status) The current status of the sample operation.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 sample operation. Possible values are
Pending,InProgress,Completed, orFailed.- Parameters:
status- The current status of the sample operation. Possible values arePending,InProgress,Completed, orFailed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the sample operation. Possible values are
Pending,InProgress,Completed, orFailed.- Parameters:
status- The current status of the sample operation. Possible values arePending,InProgress,Completed, orFailed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
operationResult
The result payload of the sample operation. The service populates this field only when the status is
Completed.- Parameters:
operationResult- The result payload of the sample operation. The service populates this field only when the status isCompleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operationResult
default GetSamplingOperationResultResponse.Builder operationResult(Consumer<SampleOperationResult.Builder> operationResult) The result payload of the sample operation. The service populates this field only when the status is
This is a convenience method that creates an instance of theCompleted.SampleOperationResult.Builderavoiding the need to create one manually viaSampleOperationResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooperationResult(SampleOperationResult).- Parameters:
operationResult- a consumer that will call methods onSampleOperationResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorDetails
A message describing why the sample operation failed. The service populates this field only when the status is
Failed.- Parameters:
errorDetails- A message describing why the sample 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.
-