@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails extends Object implements Serializable, Cloneable, StructuredPojo
The mixed instances policy for the automatic scaling group.
Constructor and Description |
---|
AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails() |
public AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails()
public void setInstancesDistribution(AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails instancesDistribution)
The instances distribution. The instances distribution specifies the distribution of On-Demand Instances and Spot Instances, the maximum price to pay for Spot Instances, and how the Auto Scaling group allocates instance types to fulfill On-Demand and Spot capacity.
instancesDistribution
- The instances distribution. The instances distribution specifies the distribution of On-Demand Instances
and Spot Instances, the maximum price to pay for Spot Instances, and how the Auto Scaling group allocates
instance types to fulfill On-Demand and Spot capacity.public AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails getInstancesDistribution()
The instances distribution. The instances distribution specifies the distribution of On-Demand Instances and Spot Instances, the maximum price to pay for Spot Instances, and how the Auto Scaling group allocates instance types to fulfill On-Demand and Spot capacity.
public AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails withInstancesDistribution(AwsAutoScalingAutoScalingGroupMixedInstancesPolicyInstancesDistributionDetails instancesDistribution)
The instances distribution. The instances distribution specifies the distribution of On-Demand Instances and Spot Instances, the maximum price to pay for Spot Instances, and how the Auto Scaling group allocates instance types to fulfill On-Demand and Spot capacity.
instancesDistribution
- The instances distribution. The instances distribution specifies the distribution of On-Demand Instances
and Spot Instances, the maximum price to pay for Spot Instances, and how the Auto Scaling group allocates
instance types to fulfill On-Demand and Spot capacity.public void setLaunchTemplate(AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateDetails launchTemplate)
The launch template to use and the instance types (overrides) to use to provision EC2 instances to fulfill On-Demand and Spot capacities.
launchTemplate
- The launch template to use and the instance types (overrides) to use to provision EC2 instances to fulfill
On-Demand and Spot capacities.public AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateDetails getLaunchTemplate()
The launch template to use and the instance types (overrides) to use to provision EC2 instances to fulfill On-Demand and Spot capacities.
public AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails withLaunchTemplate(AwsAutoScalingAutoScalingGroupMixedInstancesPolicyLaunchTemplateDetails launchTemplate)
The launch template to use and the instance types (overrides) to use to provision EC2 instances to fulfill On-Demand and Spot capacities.
launchTemplate
- The launch template to use and the instance types (overrides) to use to provision EC2 instances to fulfill
On-Demand and Spot capacities.public String toString()
toString
in class Object
Object.toString()
public AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.