Interface ProductionVariantCapacityReservationSummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ProductionVariantCapacityReservationSummary.Builder,
,ProductionVariantCapacityReservationSummary> SdkBuilder<ProductionVariantCapacityReservationSummary.Builder,
,ProductionVariantCapacityReservationSummary> SdkPojo
- Enclosing class:
ProductionVariantCapacityReservationSummary
-
Method Summary
Modifier and TypeMethodDescriptionavailableInstanceCount
(Integer availableInstanceCount) The number of instances that are currently available in the ML capacity reservation.capacityReservationPreference
(String capacityReservationPreference) The option that you chose for the capacity reservation.capacityReservationPreference
(CapacityReservationPreference capacityReservationPreference) The option that you chose for the capacity reservation.ec2CapacityReservations
(Collection<Ec2CapacityReservation> ec2CapacityReservations) The EC2 capacity reservations that are shared to this ML capacity reservation, if any.ec2CapacityReservations
(Consumer<Ec2CapacityReservation.Builder>... ec2CapacityReservations) The EC2 capacity reservations that are shared to this ML capacity reservation, if any.ec2CapacityReservations
(Ec2CapacityReservation... ec2CapacityReservations) The EC2 capacity reservations that are shared to this ML capacity reservation, if any.mlReservationArn
(String mlReservationArn) The Amazon Resource Name (ARN) that uniquely identifies the ML capacity reservation that SageMaker AI applies when it deploys the endpoint.totalInstanceCount
(Integer totalInstanceCount) The number of instances that you allocated to the ML capacity reservation.usedByCurrentEndpoint
(Integer usedByCurrentEndpoint) The number of instances from the ML capacity reservation that are being used by the endpoint.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, sdkFieldNameToField, sdkFields
-
Method Details
-
mlReservationArn
The Amazon Resource Name (ARN) that uniquely identifies the ML capacity reservation that SageMaker AI applies when it deploys the endpoint.
- Parameters:
mlReservationArn
- The Amazon Resource Name (ARN) that uniquely identifies the ML capacity reservation that SageMaker AI applies when it deploys the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationPreference
ProductionVariantCapacityReservationSummary.Builder capacityReservationPreference(String capacityReservationPreference) The option that you chose for the capacity reservation. SageMaker AI supports the following options:
- capacity-reservations-only
-
SageMaker AI launches instances only into an ML capacity reservation. If no capacity is available, the instances fail to launch.
- Parameters:
capacityReservationPreference
- The option that you chose for the capacity reservation. SageMaker AI supports the following options:- capacity-reservations-only
-
SageMaker AI launches instances only into an ML capacity reservation. If no capacity is available, the instances fail to launch.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityReservationPreference
ProductionVariantCapacityReservationSummary.Builder capacityReservationPreference(CapacityReservationPreference capacityReservationPreference) The option that you chose for the capacity reservation. SageMaker AI supports the following options:
- capacity-reservations-only
-
SageMaker AI launches instances only into an ML capacity reservation. If no capacity is available, the instances fail to launch.
- Parameters:
capacityReservationPreference
- The option that you chose for the capacity reservation. SageMaker AI supports the following options:- capacity-reservations-only
-
SageMaker AI launches instances only into an ML capacity reservation. If no capacity is available, the instances fail to launch.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
totalInstanceCount
The number of instances that you allocated to the ML capacity reservation.
- Parameters:
totalInstanceCount
- The number of instances that you allocated to the ML capacity reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availableInstanceCount
ProductionVariantCapacityReservationSummary.Builder availableInstanceCount(Integer availableInstanceCount) The number of instances that are currently available in the ML capacity reservation.
- Parameters:
availableInstanceCount
- The number of instances that are currently available in the ML capacity reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usedByCurrentEndpoint
ProductionVariantCapacityReservationSummary.Builder usedByCurrentEndpoint(Integer usedByCurrentEndpoint) The number of instances from the ML capacity reservation that are being used by the endpoint.
- Parameters:
usedByCurrentEndpoint
- The number of instances from the ML capacity reservation that are being used by the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2CapacityReservations
ProductionVariantCapacityReservationSummary.Builder ec2CapacityReservations(Collection<Ec2CapacityReservation> ec2CapacityReservations) The EC2 capacity reservations that are shared to this ML capacity reservation, if any.
- Parameters:
ec2CapacityReservations
- The EC2 capacity reservations that are shared to this ML capacity reservation, if any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2CapacityReservations
ProductionVariantCapacityReservationSummary.Builder ec2CapacityReservations(Ec2CapacityReservation... ec2CapacityReservations) The EC2 capacity reservations that are shared to this ML capacity reservation, if any.
- Parameters:
ec2CapacityReservations
- The EC2 capacity reservations that are shared to this ML capacity reservation, if any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2CapacityReservations
ProductionVariantCapacityReservationSummary.Builder ec2CapacityReservations(Consumer<Ec2CapacityReservation.Builder>... ec2CapacityReservations) The EC2 capacity reservations that are shared to this ML capacity reservation, if any.
This is a convenience method that creates an instance of theEc2CapacityReservation.Builder
avoiding the need to create one manually viaEc2CapacityReservation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toec2CapacityReservations(List<Ec2CapacityReservation>)
.- Parameters:
ec2CapacityReservations
- a consumer that will call methods onEc2CapacityReservation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-