Class CfnDistributionConfiguration.LaunchTemplateConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnDistributionConfiguration.LaunchTemplateConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionConfiguration.LaunchTemplateConfigurationProperty>
- Enclosing interface:
CfnDistributionConfiguration.LaunchTemplateConfigurationProperty
@Stability(Stable)
public static final class CfnDistributionConfiguration.LaunchTemplateConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionConfiguration.LaunchTemplateConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.launchTemplateId(String launchTemplateId) setDefaultVersion(Boolean setDefaultVersion) setDefaultVersion(IResolvable setDefaultVersion)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
@Stability(Stable) public CfnDistributionConfiguration.LaunchTemplateConfigurationProperty.Builder accountId(String accountId) - Parameters:
accountId- The account ID that this configuration applies to.- Returns:
this
-
launchTemplateId
@Stability(Stable) public CfnDistributionConfiguration.LaunchTemplateConfigurationProperty.Builder launchTemplateId(String launchTemplateId) Sets the value ofCfnDistributionConfiguration.LaunchTemplateConfigurationProperty.getLaunchTemplateId()- Parameters:
launchTemplateId- Identifies the Amazon EC2 launch template to use.- Returns:
this
-
setDefaultVersion
@Stability(Stable) public CfnDistributionConfiguration.LaunchTemplateConfigurationProperty.Builder setDefaultVersion(Boolean setDefaultVersion) Sets the value ofCfnDistributionConfiguration.LaunchTemplateConfigurationProperty.getSetDefaultVersion()- Parameters:
setDefaultVersion- Set the specified Amazon EC2 launch template as the default launch template for the specified account.- Returns:
this
-
setDefaultVersion
@Stability(Stable) public CfnDistributionConfiguration.LaunchTemplateConfigurationProperty.Builder setDefaultVersion(IResolvable setDefaultVersion) Sets the value ofCfnDistributionConfiguration.LaunchTemplateConfigurationProperty.getSetDefaultVersion()- Parameters:
setDefaultVersion- Set the specified Amazon EC2 launch template as the default launch template for the specified account.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistributionConfiguration.LaunchTemplateConfigurationProperty>- Returns:
- a new instance of
CfnDistributionConfiguration.LaunchTemplateConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-