Class CfnLaunchTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnLaunchTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchTemplateProps>
- Enclosing interface:
CfnLaunchTemplateProps
@Stability(Stable)
public static final class CfnLaunchTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchTemplateProps>
A builder for
CfnLaunchTemplateProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.launchTemplateData(IResolvable launchTemplateData) Sets the value ofCfnLaunchTemplateProps.getLaunchTemplateData()launchTemplateData(CfnLaunchTemplate.LaunchTemplateDataProperty launchTemplateData) Sets the value ofCfnLaunchTemplateProps.getLaunchTemplateData()launchTemplateName(String launchTemplateName) Sets the value ofCfnLaunchTemplateProps.getLaunchTemplateName()tagSpecifications(List<? extends Object> tagSpecifications) Sets the value ofCfnLaunchTemplateProps.getTagSpecifications()tagSpecifications(IResolvable tagSpecifications) Sets the value ofCfnLaunchTemplateProps.getTagSpecifications()versionDescription(String versionDescription) Sets the value ofCfnLaunchTemplateProps.getVersionDescription()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
launchTemplateData
@Stability(Stable) public CfnLaunchTemplateProps.Builder launchTemplateData(IResolvable launchTemplateData) Sets the value ofCfnLaunchTemplateProps.getLaunchTemplateData()- Parameters:
launchTemplateData- The information for the launch template. This parameter is required.- Returns:
this
-
launchTemplateData
@Stability(Stable) public CfnLaunchTemplateProps.Builder launchTemplateData(CfnLaunchTemplate.LaunchTemplateDataProperty launchTemplateData) Sets the value ofCfnLaunchTemplateProps.getLaunchTemplateData()- Parameters:
launchTemplateData- The information for the launch template. This parameter is required.- Returns:
this
-
launchTemplateName
@Stability(Stable) public CfnLaunchTemplateProps.Builder launchTemplateName(String launchTemplateName) Sets the value ofCfnLaunchTemplateProps.getLaunchTemplateName()- Parameters:
launchTemplateName- A name for the launch template.- Returns:
this
-
tagSpecifications
@Stability(Stable) public CfnLaunchTemplateProps.Builder tagSpecifications(IResolvable tagSpecifications) Sets the value ofCfnLaunchTemplateProps.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 CfnLaunchTemplateProps.Builder tagSpecifications(List<? extends Object> tagSpecifications) Sets the value ofCfnLaunchTemplateProps.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 CfnLaunchTemplateProps.Builder versionDescription(String versionDescription) Sets the value ofCfnLaunchTemplateProps.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<CfnLaunchTemplateProps>- Returns:
- a new instance of
CfnLaunchTemplateProps - Throws:
NullPointerException- if any required attribute was not provided
-