Class AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder,AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails>
Information about the instances distribution.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringHow to allocate instance types to fulfill On-Demand capacity.final IntegerThe minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances.final IntegerThe percentage of On-Demand Instances and Spot Instances for additional capacity beyondOnDemandBaseCapacity.static Class<? extends AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder> final StringHow to allocate instances across Spot Instance pools.final IntegerThe number of Spot Instance pools across which to allocate your Spot Instances.final StringThe maximum price per unit hour that you are willing to pay for a Spot Instance.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
onDemandAllocationStrategy
How to allocate instance types to fulfill On-Demand capacity. The valid value is
prioritized.- Returns:
- How to allocate instance types to fulfill On-Demand capacity. The valid value is
prioritized.
-
onDemandBaseCapacity
The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances.
- Returns:
- The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances.
-
onDemandPercentageAboveBaseCapacity
The percentage of On-Demand Instances and Spot Instances for additional capacity beyond
OnDemandBaseCapacity.- Returns:
- The percentage of On-Demand Instances and Spot Instances for additional capacity beyond
OnDemandBaseCapacity.
-
spotAllocationStrategy
How to allocate instances across Spot Instance pools. Valid values are as follows:
-
lowest-price -
capacity-optimized -
capacity-optimized-prioritized
- Returns:
- How to allocate instances across Spot Instance pools. Valid values are as follows:
-
lowest-price -
capacity-optimized -
capacity-optimized-prioritized
-
-
-
spotInstancePools
The number of Spot Instance pools across which to allocate your Spot Instances.
- Returns:
- The number of Spot Instance pools across which to allocate your Spot Instances.
-
spotMaxPrice
The maximum price per unit hour that you are willing to pay for a Spot Instance.
- Returns:
- The maximum price per unit hour that you are willing to pay for a Spot Instance.
-
toBuilder
public AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder toBuilder()Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder,AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails> - Returns:
- a builder for type T
-
builder
public static AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder builder() -
serializableBuilderClass
public static Class<? extends AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-