Interface DescribeResourceAssociationsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeResourceAssociationsResponse.Builder,,DescribeResourceAssociationsResponse> SageMakerResponse.Builder,SdkBuilder<DescribeResourceAssociationsResponse.Builder,,DescribeResourceAssociationsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeResourceAssociationsResponse
-
Method Summary
Modifier and TypeMethodDescriptionIf the response is truncated, SageMaker AI returns this token.resourceAssociations(Collection<CapacityReservationResourceAssociation> resourceAssociations) The associations between resources in your account and the SageMaker Capacity Reservation.resourceAssociations(Consumer<CapacityReservationResourceAssociation.Builder>... resourceAssociations) The associations between resources in your account and the SageMaker Capacity Reservation.resourceAssociations(CapacityReservationResourceAssociation... resourceAssociations) The associations between resources in your account and the SageMaker Capacity Reservation.smCapacityReservationArn(String smCapacityReservationArn) The Amazon Resource Name (ARN) of the SageMaker Capacity Reservation.smCapacityReservationId(String smCapacityReservationId) The ID of the SageMaker Capacity Reservation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerResponse.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
-
smCapacityReservationArn
DescribeResourceAssociationsResponse.Builder smCapacityReservationArn(String smCapacityReservationArn) The Amazon Resource Name (ARN) of the SageMaker Capacity Reservation.
- Parameters:
smCapacityReservationArn- The Amazon Resource Name (ARN) of the SageMaker Capacity Reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
smCapacityReservationId
DescribeResourceAssociationsResponse.Builder smCapacityReservationId(String smCapacityReservationId) The ID of the SageMaker Capacity Reservation. The ID is the last part of the ARN and starts with
smcr-.- Parameters:
smCapacityReservationId- The ID of the SageMaker Capacity Reservation. The ID is the last part of the ARN and starts withsmcr-.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceAssociations
DescribeResourceAssociationsResponse.Builder resourceAssociations(Collection<CapacityReservationResourceAssociation> resourceAssociations) The associations between resources in your account and the SageMaker Capacity Reservation. The list is empty when your account has no associations with the reservation.
- Parameters:
resourceAssociations- The associations between resources in your account and the SageMaker Capacity Reservation. The list is empty when your account has no associations with the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceAssociations
DescribeResourceAssociationsResponse.Builder resourceAssociations(CapacityReservationResourceAssociation... resourceAssociations) The associations between resources in your account and the SageMaker Capacity Reservation. The list is empty when your account has no associations with the reservation.
- Parameters:
resourceAssociations- The associations between resources in your account and the SageMaker Capacity Reservation. The list is empty when your account has no associations with the reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceAssociations
DescribeResourceAssociationsResponse.Builder resourceAssociations(Consumer<CapacityReservationResourceAssociation.Builder>... resourceAssociations) The associations between resources in your account and the SageMaker Capacity Reservation. The list is empty when your account has no associations with the reservation.
This is a convenience method that creates an instance of theCapacityReservationResourceAssociation.Builderavoiding the need to create one manually viaCapacityReservationResourceAssociation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceAssociations(List<CapacityReservationResourceAssociation>).- Parameters:
resourceAssociations- a consumer that will call methods onCapacityReservationResourceAssociation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If the response is truncated, SageMaker AI returns this token. To retrieve the next set of results, use this token in your next request.
- Parameters:
nextToken- If the response is truncated, SageMaker AI returns this token. To retrieve the next set of results, use this token in your next request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-