Class CfnLaunchConfigurationTemplateMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.drs.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 TypeMethodDescriptionbuild()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()exportBucketArn(String exportBucketArn) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getExportBucketArn()launchDisposition(String launchDisposition) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getLaunchDisposition()launchIntoSourceInstance(Boolean launchIntoSourceInstance) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getLaunchIntoSourceInstance()launchIntoSourceInstance(IResolvable launchIntoSourceInstance) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getLaunchIntoSourceInstance()Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getLicensing()licensing(IResolvable licensing) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getLicensing()postLaunchEnabled(Boolean postLaunchEnabled) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getPostLaunchEnabled()postLaunchEnabled(IResolvable postLaunchEnabled) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getPostLaunchEnabled()Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getTags()targetInstanceTypeRightSizingMethod(String targetInstanceTypeRightSizingMethod)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copyPrivateIp
@Stability(Stable) public CfnLaunchConfigurationTemplateMixinProps.Builder copyPrivateIp(Boolean copyPrivateIp) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getCopyPrivateIp()- Parameters:
copyPrivateIp- Copy private IP.- Returns:
this
-
copyPrivateIp
@Stability(Stable) public CfnLaunchConfigurationTemplateMixinProps.Builder copyPrivateIp(IResolvable copyPrivateIp) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getCopyPrivateIp()- Parameters:
copyPrivateIp- Copy private IP.- Returns:
this
-
copyTags
@Stability(Stable) public CfnLaunchConfigurationTemplateMixinProps.Builder copyTags(Boolean copyTags) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getCopyTags()- Parameters:
copyTags- Copy tags.- Returns:
this
-
copyTags
@Stability(Stable) public CfnLaunchConfigurationTemplateMixinProps.Builder copyTags(IResolvable copyTags) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getCopyTags()- Parameters:
copyTags- Copy tags.- Returns:
this
-
exportBucketArn
@Stability(Stable) public CfnLaunchConfigurationTemplateMixinProps.Builder exportBucketArn(String exportBucketArn) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getExportBucketArn()- Parameters:
exportBucketArn- S3 bucket ARN to export Source Network templates.- Returns:
this
-
launchDisposition
@Stability(Stable) public CfnLaunchConfigurationTemplateMixinProps.Builder launchDisposition(String launchDisposition) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getLaunchDisposition()- Parameters:
launchDisposition- Launch disposition.- Returns:
this
-
launchIntoSourceInstance
@Stability(Stable) public CfnLaunchConfigurationTemplateMixinProps.Builder launchIntoSourceInstance(Boolean launchIntoSourceInstance) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getLaunchIntoSourceInstance()- Parameters:
launchIntoSourceInstance- DRS will set the 'launch into instance ID' of any source server when performing a drill, recovery or failback to the previous region or availability zone, using the instance ID of the source instance.- Returns:
this
-
launchIntoSourceInstance
@Stability(Stable) public CfnLaunchConfigurationTemplateMixinProps.Builder launchIntoSourceInstance(IResolvable launchIntoSourceInstance) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getLaunchIntoSourceInstance()- Parameters:
launchIntoSourceInstance- DRS will set the 'launch into instance ID' of any source server when performing a drill, recovery or failback to the previous region or availability zone, using the instance ID of the source instance.- 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
-
postLaunchEnabled
@Stability(Stable) public CfnLaunchConfigurationTemplateMixinProps.Builder postLaunchEnabled(Boolean postLaunchEnabled) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getPostLaunchEnabled()- Parameters:
postLaunchEnabled- Whether we want to activate post-launch actions.- Returns:
this
-
postLaunchEnabled
@Stability(Stable) public CfnLaunchConfigurationTemplateMixinProps.Builder postLaunchEnabled(IResolvable postLaunchEnabled) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getPostLaunchEnabled()- Parameters:
postLaunchEnabled- Whether we want to activate post-launch actions.- Returns:
this
-
tags
@Stability(Stable) public CfnLaunchConfigurationTemplateMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnLaunchConfigurationTemplateMixinProps.getTags()- Parameters:
tags- A set of tags 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
-