Class CfnLaunchConfigurationTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.drs.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 TypeMethodDescriptionbuild()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()exportBucketArn(String exportBucketArn) Sets the value ofCfnLaunchConfigurationTemplateProps.getExportBucketArn()launchDisposition(String launchDisposition) Sets the value ofCfnLaunchConfigurationTemplateProps.getLaunchDisposition()launchIntoSourceInstance(Boolean launchIntoSourceInstance) Sets the value ofCfnLaunchConfigurationTemplateProps.getLaunchIntoSourceInstance()launchIntoSourceInstance(IResolvable launchIntoSourceInstance) Sets the value ofCfnLaunchConfigurationTemplateProps.getLaunchIntoSourceInstance()licensing(IResolvable licensing) Sets the value ofCfnLaunchConfigurationTemplateProps.getLicensing()Sets the value ofCfnLaunchConfigurationTemplateProps.getLicensing()postLaunchEnabled(Boolean postLaunchEnabled) Sets the value ofCfnLaunchConfigurationTemplateProps.getPostLaunchEnabled()postLaunchEnabled(IResolvable postLaunchEnabled) Sets the value ofCfnLaunchConfigurationTemplateProps.getPostLaunchEnabled()Sets the value ofCfnLaunchConfigurationTemplateProps.getTags()targetInstanceTypeRightSizingMethod(String targetInstanceTypeRightSizingMethod)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copyPrivateIp
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder copyPrivateIp(Boolean copyPrivateIp) Sets the value ofCfnLaunchConfigurationTemplateProps.getCopyPrivateIp()- Parameters:
copyPrivateIp- Copy private IP.- Returns:
this
-
copyPrivateIp
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder copyPrivateIp(IResolvable copyPrivateIp) Sets the value ofCfnLaunchConfigurationTemplateProps.getCopyPrivateIp()- Parameters:
copyPrivateIp- Copy private IP.- Returns:
this
-
copyTags
Sets the value ofCfnLaunchConfigurationTemplateProps.getCopyTags()- Parameters:
copyTags- Copy tags.- Returns:
this
-
copyTags
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder copyTags(IResolvable copyTags) Sets the value ofCfnLaunchConfigurationTemplateProps.getCopyTags()- Parameters:
copyTags- Copy tags.- Returns:
this
-
exportBucketArn
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder exportBucketArn(String exportBucketArn) Sets the value ofCfnLaunchConfigurationTemplateProps.getExportBucketArn()- Parameters:
exportBucketArn- S3 bucket ARN to export Source Network templates.- Returns:
this
-
launchDisposition
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder launchDisposition(String launchDisposition) Sets the value ofCfnLaunchConfigurationTemplateProps.getLaunchDisposition()- Parameters:
launchDisposition- Launch disposition.- Returns:
this
-
launchIntoSourceInstance
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder launchIntoSourceInstance(Boolean launchIntoSourceInstance) Sets the value ofCfnLaunchConfigurationTemplateProps.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 CfnLaunchConfigurationTemplateProps.Builder launchIntoSourceInstance(IResolvable launchIntoSourceInstance) Sets the value ofCfnLaunchConfigurationTemplateProps.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 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
-
postLaunchEnabled
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder postLaunchEnabled(Boolean postLaunchEnabled) Sets the value ofCfnLaunchConfigurationTemplateProps.getPostLaunchEnabled()- Parameters:
postLaunchEnabled- Whether we want to activate post-launch actions.- Returns:
this
-
postLaunchEnabled
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder postLaunchEnabled(IResolvable postLaunchEnabled) Sets the value ofCfnLaunchConfigurationTemplateProps.getPostLaunchEnabled()- Parameters:
postLaunchEnabled- Whether we want to activate post-launch actions.- Returns:
this
-
tags
@Stability(Stable) public CfnLaunchConfigurationTemplateProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnLaunchConfigurationTemplateProps.getTags()- Parameters:
tags- A set of tags 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
-