Interface GetCapacityReservationUsageResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetCapacityReservationUsageResponse.Builder,,GetCapacityReservationUsageResponse> SageMakerResponse.Builder,SdkBuilder<GetCapacityReservationUsageResponse.Builder,,GetCapacityReservationUsageResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetCapacityReservationUsageResponse
-
Method Summary
Modifier and TypeMethodDescriptionavailableInstanceCount(Integer availableInstanceCount) The number of instances in the SageMaker Capacity Reservation that are not in use.instanceUsageSet(Collection<CapacityReservationInstanceUsage> instanceUsageSet) The instance usage for each account that uses instances from the SageMaker Capacity Reservation, sorted by account ID.instanceUsageSet(Consumer<CapacityReservationInstanceUsage.Builder>... instanceUsageSet) The instance usage for each account that uses instances from the SageMaker Capacity Reservation, sorted by account ID.instanceUsageSet(CapacityReservationInstanceUsage... instanceUsageSet) The instance usage for each account that uses instances from the SageMaker Capacity Reservation, sorted by account ID.lastRefreshTime(Instant lastRefreshTime) The time when SageMaker AI last refreshed the usage counts in this response.If the response is truncated, SageMaker AI returns this token.smCapacityReservationId(String smCapacityReservationId) The ID of the SageMaker Capacity Reservation.totalInstanceCount(Integer totalInstanceCount) The number of instances in 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
-
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.
-
totalInstanceCount
The number of instances in the SageMaker Capacity Reservation.
- Parameters:
totalInstanceCount- The number of instances in the SageMaker Capacity Reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availableInstanceCount
The number of instances in the SageMaker Capacity Reservation that are not in use.
- Parameters:
availableInstanceCount- The number of instances in the SageMaker Capacity Reservation that are not in use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastRefreshTime
The time when SageMaker AI last refreshed the usage counts in this response.
- Parameters:
lastRefreshTime- The time when SageMaker AI last refreshed the usage counts in this response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceUsageSet
GetCapacityReservationUsageResponse.Builder instanceUsageSet(Collection<CapacityReservationInstanceUsage> instanceUsageSet) The instance usage for each account that uses instances from the SageMaker Capacity Reservation, sorted by account ID. Each account appears at most once across all pages. The list is empty when no instances are in use.
- Parameters:
instanceUsageSet- The instance usage for each account that uses instances from the SageMaker Capacity Reservation, sorted by account ID. Each account appears at most once across all pages. The list is empty when no instances are in use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceUsageSet
GetCapacityReservationUsageResponse.Builder instanceUsageSet(CapacityReservationInstanceUsage... instanceUsageSet) The instance usage for each account that uses instances from the SageMaker Capacity Reservation, sorted by account ID. Each account appears at most once across all pages. The list is empty when no instances are in use.
- Parameters:
instanceUsageSet- The instance usage for each account that uses instances from the SageMaker Capacity Reservation, sorted by account ID. Each account appears at most once across all pages. The list is empty when no instances are in use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceUsageSet
GetCapacityReservationUsageResponse.Builder instanceUsageSet(Consumer<CapacityReservationInstanceUsage.Builder>... instanceUsageSet) The instance usage for each account that uses instances from the SageMaker Capacity Reservation, sorted by account ID. Each account appears at most once across all pages. The list is empty when no instances are in use.
This is a convenience method that creates an instance of theCapacityReservationInstanceUsage.Builderavoiding the need to create one manually viaCapacityReservationInstanceUsage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceUsageSet(List<CapacityReservationInstanceUsage>).- Parameters:
instanceUsageSet- a consumer that will call methods onCapacityReservationInstanceUsage.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.
-