Class CfnAutoScalingGroup.DistributionSegmentProperty.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.DistributionSegmentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutoScalingGroup.DistributionSegmentProperty>
- Enclosing interface:
CfnAutoScalingGroup.DistributionSegmentProperty
@Stability(Stable)
public static final class CfnAutoScalingGroup.DistributionSegmentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutoScalingGroup.DistributionSegmentProperty>
A builder for
CfnAutoScalingGroup.DistributionSegmentProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.targetCapacityTypes(List<String> targetCapacityTypes) Sets the value ofCfnAutoScalingGroup.DistributionSegmentProperty.getTargetCapacityTypes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetCapacityTypes
@Stability(Stable) public CfnAutoScalingGroup.DistributionSegmentProperty.Builder targetCapacityTypes(List<String> targetCapacityTypes) Sets the value ofCfnAutoScalingGroup.DistributionSegmentProperty.getTargetCapacityTypes()- Parameters:
targetCapacityTypes- The capacity types to prioritize, in order. This parameter is required. Amazon EC2 Auto Scaling attempts to launch instances in the priority order of the capacity types, and within each capacity type, in the order of instance types listed in your launch templateOverrides. The following lists the valid values:- on-demand-capacity-reservation On-Demand Capacity Reservations. + capacity-block Capacity Blocks. + interruptible-capacity-reservation Interruptible Capacity Reservations. + on-demand On-Demand capacity. Include this value to allow the group to fall back to On-Demand capacity when the preceding capacity types are unavailable.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAutoScalingGroup.DistributionSegmentProperty>- Returns:
- a new instance of
CfnAutoScalingGroup.DistributionSegmentProperty - Throws:
NullPointerException- if any required attribute was not provided
-