Class CfnLaunchTemplateMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnLaunchTemplateMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchTemplateMixinProps>
- Enclosing interface:
CfnLaunchTemplateMixinProps
@Stability(Stable)
public static final class CfnLaunchTemplateMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchTemplateMixinProps>
A builder for
CfnLaunchTemplateMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.launchTemplateData(CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty launchTemplateData) Sets the value ofCfnLaunchTemplateMixinProps.getLaunchTemplateData()launchTemplateData(IResolvable launchTemplateData) Sets the value ofCfnLaunchTemplateMixinProps.getLaunchTemplateData()launchTemplateName(String launchTemplateName) Sets the value ofCfnLaunchTemplateMixinProps.getLaunchTemplateName()tagSpecifications(List<? extends Object> tagSpecifications) Sets the value ofCfnLaunchTemplateMixinProps.getTagSpecifications()tagSpecifications(IResolvable tagSpecifications) Sets the value ofCfnLaunchTemplateMixinProps.getTagSpecifications()versionDescription(String versionDescription) Sets the value ofCfnLaunchTemplateMixinProps.getVersionDescription()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
launchTemplateData
@Stability(Stable) public CfnLaunchTemplateMixinProps.Builder launchTemplateData(IResolvable launchTemplateData) Sets the value ofCfnLaunchTemplateMixinProps.getLaunchTemplateData()- Parameters:
launchTemplateData- The information for the launch template.- Returns:
this
-
launchTemplateData
@Stability(Stable) public CfnLaunchTemplateMixinProps.Builder launchTemplateData(CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty launchTemplateData) Sets the value ofCfnLaunchTemplateMixinProps.getLaunchTemplateData()- Parameters:
launchTemplateData- The information for the launch template.- Returns:
this
-
launchTemplateName
@Stability(Stable) public CfnLaunchTemplateMixinProps.Builder launchTemplateName(String launchTemplateName) Sets the value ofCfnLaunchTemplateMixinProps.getLaunchTemplateName()- Parameters:
launchTemplateName- A name for the launch template.- Returns:
this
-
tagSpecifications
@Stability(Stable) public CfnLaunchTemplateMixinProps.Builder tagSpecifications(IResolvable tagSpecifications) Sets the value ofCfnLaunchTemplateMixinProps.getTagSpecifications()- Parameters:
tagSpecifications- The tags to apply to the launch template on creation. To tag the launch template, the resource type must belaunch-template.To specify the tags for resources that are created during instance launch, use TagSpecifications .
- Returns:
this
-
tagSpecifications
@Stability(Stable) public CfnLaunchTemplateMixinProps.Builder tagSpecifications(List<? extends Object> tagSpecifications) Sets the value ofCfnLaunchTemplateMixinProps.getTagSpecifications()- Parameters:
tagSpecifications- The tags to apply to the launch template on creation. To tag the launch template, the resource type must belaunch-template.To specify the tags for resources that are created during instance launch, use TagSpecifications .
- Returns:
this
-
versionDescription
@Stability(Stable) public CfnLaunchTemplateMixinProps.Builder versionDescription(String versionDescription) Sets the value ofCfnLaunchTemplateMixinProps.getVersionDescription()- Parameters:
versionDescription- A description for the first version of the launch template.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchTemplateMixinProps>- Returns:
- a new instance of
CfnLaunchTemplateMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-