Interface ProductionVariantCapacityReservationSummary.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ProductionVariantCapacityReservationSummary.Builder,ProductionVariantCapacityReservationSummary>,SdkBuilder<ProductionVariantCapacityReservationSummary.Builder,ProductionVariantCapacityReservationSummary>,SdkPojo
- Enclosing class:
- ProductionVariantCapacityReservationSummary
@Mutable @NotThreadSafe public static interface ProductionVariantCapacityReservationSummary.Builder extends SdkPojo, CopyableBuilder<ProductionVariantCapacityReservationSummary.Builder,ProductionVariantCapacityReservationSummary>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProductionVariantCapacityReservationSummary.BuilderavailableInstanceCount(Integer availableInstanceCount)The number of instances that are currently available in the ML capacity reservation.ProductionVariantCapacityReservationSummary.BuildercapacityReservationPreference(String capacityReservationPreference)The option that you chose for the capacity reservation.ProductionVariantCapacityReservationSummary.BuildercapacityReservationPreference(CapacityReservationPreference capacityReservationPreference)The option that you chose for the capacity reservation.ProductionVariantCapacityReservationSummary.Builderec2CapacityReservations(Collection<Ec2CapacityReservation> ec2CapacityReservations)The EC2 capacity reservations that are shared to this ML capacity reservation, if any.ProductionVariantCapacityReservationSummary.Builderec2CapacityReservations(Consumer<Ec2CapacityReservation.Builder>... ec2CapacityReservations)The EC2 capacity reservations that are shared to this ML capacity reservation, if any.ProductionVariantCapacityReservationSummary.Builderec2CapacityReservations(Ec2CapacityReservation... ec2CapacityReservations)The EC2 capacity reservations that are shared to this ML capacity reservation, if any.ProductionVariantCapacityReservationSummary.BuildermlReservationArn(String mlReservationArn)The Amazon Resource Name (ARN) that uniquely identifies the ML capacity reservation that SageMaker AI applies when it deploys the endpoint.ProductionVariantCapacityReservationSummary.BuildertotalInstanceCount(Integer totalInstanceCount)The number of instances that you allocated to the ML capacity reservation.ProductionVariantCapacityReservationSummary.BuilderusedByCurrentEndpoint(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 Detail
-
mlReservationArn
ProductionVariantCapacityReservationSummary.Builder mlReservationArn(String 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,CapacityReservationPreference
-
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:
CapacityReservationPreference,CapacityReservationPreference
-
totalInstanceCount
ProductionVariantCapacityReservationSummary.Builder totalInstanceCount(Integer 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.Builderavoiding the need to create one manually viaEc2CapacityReservation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#ec2CapacityReservations(List.) - 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:
#ec2CapacityReservations(java.util.Collection)
-
-