Class CfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.autoscaling.CfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty>
- Enclosing interface:
CfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty
@Stability(Stable)
public static final class CfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.launchTemplateId(String launchTemplateId) launchTemplateId(ILaunchTemplateRef launchTemplateId) launchTemplateName(String launchTemplateName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
launchTemplateId
@Stability(Stable) public CfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty.Builder launchTemplateId(String launchTemplateId) Sets the value ofCfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty.getLaunchTemplateId()- Parameters:
launchTemplateId- The ID of the launch template. You must specify theLaunchTemplateIDor theLaunchTemplateName, but not both.- Returns:
this
-
launchTemplateId
@Stability(Stable) public CfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty.Builder launchTemplateId(ILaunchTemplateRef launchTemplateId) Sets the value ofCfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty.getLaunchTemplateId()- Parameters:
launchTemplateId- The ID of the launch template. You must specify theLaunchTemplateIDor theLaunchTemplateName, but not both.- Returns:
this
-
launchTemplateName
@Stability(Stable) public CfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty.Builder launchTemplateName(String launchTemplateName) Sets the value ofCfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty.getLaunchTemplateName()- Parameters:
launchTemplateName- The name of the launch template. You must specify theLaunchTemplateNameor theLaunchTemplateID, but not both.- Returns:
this
-
version
@Stability(Stable) public CfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty.Builder version(String version) - Parameters:
version- The version number of the launch template. Specifying$Latestor$Defaultfor the template version number is not supported. However, you can specifyLatestVersionNumberorDefaultVersionNumberusing theFn::GetAttintrinsic function. For more information, see Fn::GetAtt .For an example of using the
Fn::GetAttfunction, see the Examples section of theAWS::AutoScaling::AutoScalingGroupresource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty>- Returns:
- a new instance of
CfnAutoScalingGroupPropsMixin.LaunchTemplateSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-