public static final class CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder
extends java.lang.Object
CfnAutoScalingGroup.MixedInstancesPolicyProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnAutoScalingGroup.MixedInstancesPolicyProperty |
build()
Builds the configured instance.
|
CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder |
instancesDistribution(CfnAutoScalingGroup.InstancesDistributionProperty instancesDistribution)
|
CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder |
instancesDistribution(IResolvable instancesDistribution)
|
CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder |
launchTemplate(CfnAutoScalingGroup.LaunchTemplateProperty launchTemplate)
Sets the value of
CfnAutoScalingGroup.MixedInstancesPolicyProperty.getLaunchTemplate() |
CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder |
launchTemplate(IResolvable launchTemplate)
Sets the value of
CfnAutoScalingGroup.MixedInstancesPolicyProperty.getLaunchTemplate() |
public CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder launchTemplate(IResolvable launchTemplate)
CfnAutoScalingGroup.MixedInstancesPolicyProperty.getLaunchTemplate()
launchTemplate
- One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill On-Demand and Spot capacities. This parameter is required.this
public CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder launchTemplate(CfnAutoScalingGroup.LaunchTemplateProperty launchTemplate)
CfnAutoScalingGroup.MixedInstancesPolicyProperty.getLaunchTemplate()
launchTemplate
- One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill On-Demand and Spot capacities. This parameter is required.this
public CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder instancesDistribution(IResolvable instancesDistribution)
instancesDistribution
- The instances distribution.this
public CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder instancesDistribution(CfnAutoScalingGroup.InstancesDistributionProperty instancesDistribution)
instancesDistribution
- The instances distribution.this
public CfnAutoScalingGroup.MixedInstancesPolicyProperty build()
CfnAutoScalingGroup.MixedInstancesPolicyProperty
java.lang.NullPointerException
- if any required attribute was not provided