Class CfnLaunchConfigurationTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.mgn.CfnLaunchConfigurationTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchConfigurationTemplateProps>
- Enclosing interface:
CfnLaunchConfigurationTemplateProps
@Stability(Stable)
public static final class CfnLaunchConfigurationTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchConfigurationTemplateProps>
A builder for
CfnLaunchConfigurationTemplateProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassociatePublicIpAddress(Boolean associatePublicIpAddress) Sets the value ofCfnLaunchConfigurationTemplateProps.getAssociatePublicIpAddress()associatePublicIpAddress(IResolvable associatePublicIpAddress) Sets the value ofCfnLaunchConfigurationTemplateProps.getAssociatePublicIpAddress()Sets the value ofCfnLaunchConfigurationTemplateProps.getBootMode()build()Builds the configured instance.copyPrivateIp(Boolean copyPrivateIp) Sets the value ofCfnLaunchConfigurationTemplateProps.getCopyPrivateIp()copyPrivateIp(IResolvable copyPrivateIp) Sets the value ofCfnLaunchConfigurationTemplateProps.getCopyPrivateIp()Sets the value ofCfnLaunchConfigurationTemplateProps.getCopyTags()copyTags(IResolvable copyTags) Sets the value ofCfnLaunchConfigurationTemplateProps.getCopyTags()enableMapAutoTagging(Boolean enableMapAutoTagging) Sets the value ofCfnLaunchConfigurationTemplateProps.getEnableMapAutoTagging()enableMapAutoTagging(IResolvable enableMapAutoTagging) Sets the value ofCfnLaunchConfigurationTemplateProps.getEnableMapAutoTagging()enableParametersEncryption(Boolean enableParametersEncryption) Sets the value ofCfnLaunchConfigurationTemplateProps.getEnableParametersEncryption()enableParametersEncryption(IResolvable enableParametersEncryption) Sets the value ofCfnLaunchConfigurationTemplateProps.getEnableParametersEncryption()largeVolumeConf(IResolvable largeVolumeConf) Sets the value ofCfnLaunchConfigurationTemplateProps.getLargeVolumeConf()Sets the value ofCfnLaunchConfigurationTemplateProps.getLargeVolumeConf()launchDisposition(String launchDisposition) Sets the value ofCfnLaunchConfigurationTemplateProps.getLaunchDisposition()licensing(IResolvable licensing) Sets the value ofCfnLaunchConfigurationTemplateProps.getLicensing()Sets the value ofCfnLaunchConfigurationTemplateProps.getLicensing()mapAutoTaggingMpeId(String mapAutoTaggingMpeId) Sets the value ofCfnLaunchConfigurationTemplateProps.getMapAutoTaggingMpeId()parametersEncryptionKey(String parametersEncryptionKey) Sets the value ofCfnLaunchConfigurationTemplateProps.getParametersEncryptionKey()postLaunchActions(IResolvable postLaunchActions) Sets the value ofCfnLaunchConfigurationTemplateProps.getPostLaunchActions()postLaunchActions(CfnLaunchConfigurationTemplate.PostLaunchActionsProperty postLaunchActions) Sets the value ofCfnLaunchConfigurationTemplateProps.getPostLaunchActions()smallVolumeConf(IResolvable smallVolumeConf) Sets the value ofCfnLaunchConfigurationTemplateProps.getSmallVolumeConf()Sets the value ofCfnLaunchConfigurationTemplateProps.getSmallVolumeConf()smallVolumeMaxSize(Number smallVolumeMaxSize) Sets the value ofCfnLaunchConfigurationTemplateProps.getSmallVolumeMaxSize()Sets the value ofCfnLaunchConfigurationTemplateProps.getTags()targetInstanceTypeRightSizingMethod(String targetInstanceTypeRightSizingMethod)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
associatePublicIpAddress
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder associatePublicIpAddress(Boolean associatePublicIpAddress) Sets the value ofCfnLaunchConfigurationTemplateProps.getAssociatePublicIpAddress()- Parameters:
associatePublicIpAddress- Whether to associate a public IP address with the launched instance.- Returns:
this
-
associatePublicIpAddress
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder associatePublicIpAddress(IResolvable associatePublicIpAddress) Sets the value ofCfnLaunchConfigurationTemplateProps.getAssociatePublicIpAddress()- Parameters:
associatePublicIpAddress- Whether to associate a public IP address with the launched instance.- Returns:
this
-
bootMode
Sets the value ofCfnLaunchConfigurationTemplateProps.getBootMode()- Parameters:
bootMode- Launch configuration template boot mode.- Returns:
this
-
copyPrivateIp
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder copyPrivateIp(Boolean copyPrivateIp) Sets the value ofCfnLaunchConfigurationTemplateProps.getCopyPrivateIp()- Parameters:
copyPrivateIp- Whether to copy the private IP of the source server.- Returns:
this
-
copyPrivateIp
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder copyPrivateIp(IResolvable copyPrivateIp) Sets the value ofCfnLaunchConfigurationTemplateProps.getCopyPrivateIp()- Parameters:
copyPrivateIp- Whether to copy the private IP of the source server.- Returns:
this
-
copyTags
Sets the value ofCfnLaunchConfigurationTemplateProps.getCopyTags()- Parameters:
copyTags- Whether to copy the tags of the source server.- Returns:
this
-
copyTags
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder copyTags(IResolvable copyTags) Sets the value ofCfnLaunchConfigurationTemplateProps.getCopyTags()- Parameters:
copyTags- Whether to copy the tags of the source server.- Returns:
this
-
enableMapAutoTagging
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder enableMapAutoTagging(Boolean enableMapAutoTagging) Sets the value ofCfnLaunchConfigurationTemplateProps.getEnableMapAutoTagging()- Parameters:
enableMapAutoTagging- Whether to enable map auto tagging.- Returns:
this
-
enableMapAutoTagging
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder enableMapAutoTagging(IResolvable enableMapAutoTagging) Sets the value ofCfnLaunchConfigurationTemplateProps.getEnableMapAutoTagging()- Parameters:
enableMapAutoTagging- Whether to enable map auto tagging.- Returns:
this
-
enableParametersEncryption
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder enableParametersEncryption(Boolean enableParametersEncryption) Sets the value ofCfnLaunchConfigurationTemplateProps.getEnableParametersEncryption()- Parameters:
enableParametersEncryption- Whether to enable encryption of the AWS Systems Manager parameters used by post launch actions.- Returns:
this
-
enableParametersEncryption
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder enableParametersEncryption(IResolvable enableParametersEncryption) Sets the value ofCfnLaunchConfigurationTemplateProps.getEnableParametersEncryption()- Parameters:
enableParametersEncryption- Whether to enable encryption of the AWS Systems Manager parameters used by post launch actions.- Returns:
this
-
largeVolumeConf
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder largeVolumeConf(IResolvable largeVolumeConf) Sets the value ofCfnLaunchConfigurationTemplateProps.getLargeVolumeConf()- Parameters:
largeVolumeConf- Launch template disk configuration.- Returns:
this
-
largeVolumeConf
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder largeVolumeConf(CfnLaunchConfigurationTemplate.LaunchTemplateDiskConfProperty largeVolumeConf) Sets the value ofCfnLaunchConfigurationTemplateProps.getLargeVolumeConf()- Parameters:
largeVolumeConf- Launch template disk configuration.- Returns:
this
-
launchDisposition
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder launchDisposition(String launchDisposition) Sets the value ofCfnLaunchConfigurationTemplateProps.getLaunchDisposition()- Parameters:
launchDisposition- Launch disposition.- Returns:
this
-
licensing
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder licensing(IResolvable licensing) Sets the value ofCfnLaunchConfigurationTemplateProps.getLicensing()- Parameters:
licensing- Configuration of a machine's license.- Returns:
this
-
licensing
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder licensing(CfnLaunchConfigurationTemplate.LicensingProperty licensing) Sets the value ofCfnLaunchConfigurationTemplateProps.getLicensing()- Parameters:
licensing- Configuration of a machine's license.- Returns:
this
-
mapAutoTaggingMpeId
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder mapAutoTaggingMpeId(String mapAutoTaggingMpeId) Sets the value ofCfnLaunchConfigurationTemplateProps.getMapAutoTaggingMpeId()- Parameters:
mapAutoTaggingMpeId- Launch configuration template map auto tagging MPE ID.- Returns:
this
-
parametersEncryptionKey
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder parametersEncryptionKey(String parametersEncryptionKey) Sets the value ofCfnLaunchConfigurationTemplateProps.getParametersEncryptionKey()- Parameters:
parametersEncryptionKey- ARN of the KMS key used to encrypt the AWS Systems Manager parameters used by post launch actions.- Returns:
this
-
postLaunchActions
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder postLaunchActions(IResolvable postLaunchActions) Sets the value ofCfnLaunchConfigurationTemplateProps.getPostLaunchActions()- Parameters:
postLaunchActions- Post launch actions to execute on the Test or Cutover instance.- Returns:
this
-
postLaunchActions
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder postLaunchActions(CfnLaunchConfigurationTemplate.PostLaunchActionsProperty postLaunchActions) Sets the value ofCfnLaunchConfigurationTemplateProps.getPostLaunchActions()- Parameters:
postLaunchActions- Post launch actions to execute on the Test or Cutover instance.- Returns:
this
-
smallVolumeConf
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder smallVolumeConf(IResolvable smallVolumeConf) Sets the value ofCfnLaunchConfigurationTemplateProps.getSmallVolumeConf()- Parameters:
smallVolumeConf- Launch template disk configuration.- Returns:
this
-
smallVolumeConf
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder smallVolumeConf(CfnLaunchConfigurationTemplate.LaunchTemplateDiskConfProperty smallVolumeConf) Sets the value ofCfnLaunchConfigurationTemplateProps.getSmallVolumeConf()- Parameters:
smallVolumeConf- Launch template disk configuration.- Returns:
this
-
smallVolumeMaxSize
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder smallVolumeMaxSize(Number smallVolumeMaxSize) Sets the value ofCfnLaunchConfigurationTemplateProps.getSmallVolumeMaxSize()- Parameters:
smallVolumeMaxSize- Small volume maximum size, in GiB.- Returns:
this
-
tags
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnLaunchConfigurationTemplateProps.getTags()- Parameters:
tags- A set of tags to be associated with the Launch Configuration Template.- Returns:
this
-
targetInstanceTypeRightSizingMethod
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder targetInstanceTypeRightSizingMethod(String targetInstanceTypeRightSizingMethod) - Parameters:
targetInstanceTypeRightSizingMethod- Target instance type right-sizing method.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchConfigurationTemplateProps>- Returns:
- a new instance of
CfnLaunchConfigurationTemplateProps - Throws:
NullPointerException- if any required attribute was not provided
-