Interface AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder,
,AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails> SdkBuilder<AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder,
,AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails> SdkPojo
-
Method Summary
Modifier and TypeMethodDescriptiononDemandAllocationStrategy
(String onDemandAllocationStrategy) How to allocate instance types to fulfill On-Demand capacity.onDemandBaseCapacity
(Integer onDemandBaseCapacity) The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances.onDemandPercentageAboveBaseCapacity
(Integer onDemandPercentageAboveBaseCapacity) The percentage of On-Demand Instances and Spot Instances for additional capacity beyondOnDemandBaseCapacity
.spotAllocationStrategy
(String spotAllocationStrategy) How to allocate instances across Spot Instance pools.spotInstancePools
(Integer spotInstancePools) The number of Spot Instance pools across which to allocate your Spot Instances.spotMaxPrice
(String spotMaxPrice) The maximum price per unit hour that you are willing to pay for a Spot Instance.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, sdkFields
-
Method Details
-
onDemandAllocationStrategy
AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder onDemandAllocationStrategy(String onDemandAllocationStrategy) How to allocate instance types to fulfill On-Demand capacity. The valid value is
prioritized
.- Parameters:
onDemandAllocationStrategy
- How to allocate instance types to fulfill On-Demand capacity. The valid value isprioritized
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onDemandBaseCapacity
AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder onDemandBaseCapacity(Integer onDemandBaseCapacity) The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances.
- Parameters:
onDemandBaseCapacity
- The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onDemandPercentageAboveBaseCapacity
AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder onDemandPercentageAboveBaseCapacity(Integer onDemandPercentageAboveBaseCapacity) The percentage of On-Demand Instances and Spot Instances for additional capacity beyond
OnDemandBaseCapacity
.- Parameters:
onDemandPercentageAboveBaseCapacity
- The percentage of On-Demand Instances and Spot Instances for additional capacity beyondOnDemandBaseCapacity
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotAllocationStrategy
AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder spotAllocationStrategy(String spotAllocationStrategy) How to allocate instances across Spot Instance pools. Valid values are as follows:
-
lowest-price
-
capacity-optimized
-
capacity-optimized-prioritized
- Parameters:
spotAllocationStrategy
- How to allocate instances across Spot Instance pools. Valid values are as follows:-
lowest-price
-
capacity-optimized
-
capacity-optimized-prioritized
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
spotInstancePools
AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder spotInstancePools(Integer spotInstancePools) The number of Spot Instance pools across which to allocate your Spot Instances.
- Parameters:
spotInstancePools
- The number of Spot Instance pools across which to allocate your Spot Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotMaxPrice
AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder spotMaxPrice(String spotMaxPrice) The maximum price per unit hour that you are willing to pay for a Spot Instance.
- Parameters:
spotMaxPrice
- The maximum price per unit hour that you are willing to pay for a Spot Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-