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 value to be set. This parameter is required.- 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
-