Class CfnAutoScalingGroup.LaunchTemplateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.CfnAutoScalingGroup.LaunchTemplateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutoScalingGroup.LaunchTemplateProperty>
- Enclosing interface:
CfnAutoScalingGroup.LaunchTemplateProperty
@Stability(Stable)
public static final class CfnAutoScalingGroup.LaunchTemplateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutoScalingGroup.LaunchTemplateProperty>
A builder for
CfnAutoScalingGroup.LaunchTemplateProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.launchTemplateSpecification
(IResolvable launchTemplateSpecification) launchTemplateSpecification
(CfnAutoScalingGroup.LaunchTemplateSpecificationProperty launchTemplateSpecification) Sets the value ofCfnAutoScalingGroup.LaunchTemplateProperty.getOverrides()
overrides
(IResolvable overrides) Sets the value ofCfnAutoScalingGroup.LaunchTemplateProperty.getOverrides()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
launchTemplateSpecification
@Stability(Stable) public CfnAutoScalingGroup.LaunchTemplateProperty.Builder launchTemplateSpecification(IResolvable launchTemplateSpecification) - Parameters:
launchTemplateSpecification
- The launch template. This parameter is required.- Returns:
this
-
launchTemplateSpecification
@Stability(Stable) public CfnAutoScalingGroup.LaunchTemplateProperty.Builder launchTemplateSpecification(CfnAutoScalingGroup.LaunchTemplateSpecificationProperty launchTemplateSpecification) - Parameters:
launchTemplateSpecification
- The launch template. This parameter is required.- Returns:
this
-
overrides
@Stability(Stable) public CfnAutoScalingGroup.LaunchTemplateProperty.Builder overrides(IResolvable overrides) Sets the value ofCfnAutoScalingGroup.LaunchTemplateProperty.getOverrides()
- Parameters:
overrides
- Any properties that you specify override the same properties in the launch template.- Returns:
this
-
overrides
@Stability(Stable) public CfnAutoScalingGroup.LaunchTemplateProperty.Builder overrides(List<? extends Object> overrides) Sets the value ofCfnAutoScalingGroup.LaunchTemplateProperty.getOverrides()
- Parameters:
overrides
- Any properties that you specify override the same properties in the launch template.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAutoScalingGroup.LaunchTemplateProperty>
- Returns:
- a new instance of
CfnAutoScalingGroup.LaunchTemplateProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-