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