Class AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder,
AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails>
Information about the instances distribution.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
final boolean
final boolean
equalsBySdkFields
(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 int
hashCode()
final String
How to allocate instance types to fulfill On-Demand capacity.final Integer
The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances.final Integer
The percentage of On-Demand Instances and Spot Instances for additional capacity beyondOnDemandBaseCapacity
.static Class
<? extends AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails.Builder> final String
How to allocate instances across Spot Instance pools.final Integer
The number of Spot Instance pools across which to allocate your Spot Instances.final String
The 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 String
toString()
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:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in 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
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-