Class CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutoScalingGroup.MixedInstancesPolicyProperty>
- Enclosing interface:
- CfnAutoScalingGroup.MixedInstancesPolicyProperty
@Stability(Stable)
public static final class CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutoScalingGroup.MixedInstancesPolicyProperty>
A builder for
CfnAutoScalingGroup.MixedInstancesPolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.instancesDistribution
(IResolvable instancesDistribution) instancesDistribution
(CfnAutoScalingGroup.InstancesDistributionProperty instancesDistribution) launchTemplate
(IResolvable launchTemplate) Sets the value ofCfnAutoScalingGroup.MixedInstancesPolicyProperty.getLaunchTemplate()
launchTemplate
(CfnAutoScalingGroup.LaunchTemplateProperty launchTemplate) Sets the value ofCfnAutoScalingGroup.MixedInstancesPolicyProperty.getLaunchTemplate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
launchTemplate
@Stability(Stable) public CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder launchTemplate(IResolvable launchTemplate) Sets the value ofCfnAutoScalingGroup.MixedInstancesPolicyProperty.getLaunchTemplate()
- Parameters:
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.- Returns:
this
-
launchTemplate
@Stability(Stable) public CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder launchTemplate(CfnAutoScalingGroup.LaunchTemplateProperty launchTemplate) Sets the value ofCfnAutoScalingGroup.MixedInstancesPolicyProperty.getLaunchTemplate()
- Parameters:
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.- Returns:
this
-
instancesDistribution
@Stability(Stable) public CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder instancesDistribution(IResolvable instancesDistribution) - Parameters:
instancesDistribution
- The instances distribution.- Returns:
this
-
instancesDistribution
@Stability(Stable) public CfnAutoScalingGroup.MixedInstancesPolicyProperty.Builder instancesDistribution(CfnAutoScalingGroup.InstancesDistributionProperty instancesDistribution) - Parameters:
instancesDistribution
- The instances distribution.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAutoScalingGroup.MixedInstancesPolicyProperty>
- Returns:
- a new instance of
CfnAutoScalingGroup.MixedInstancesPolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-