Class CfnReplicationConfigurationTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.drs.CfnReplicationConfigurationTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnReplicationConfigurationTemplateProps>
- Enclosing interface:
CfnReplicationConfigurationTemplateProps
@Stability(Stable)
public static final class CfnReplicationConfigurationTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnReplicationConfigurationTemplateProps>
A builder for
CfnReplicationConfigurationTemplateProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassociateDefaultSecurityGroup(Boolean associateDefaultSecurityGroup) associateDefaultSecurityGroup(IResolvable associateDefaultSecurityGroup) autoReplicateNewDisks(Boolean autoReplicateNewDisks) Sets the value ofCfnReplicationConfigurationTemplateProps.getAutoReplicateNewDisks()autoReplicateNewDisks(IResolvable autoReplicateNewDisks) Sets the value ofCfnReplicationConfigurationTemplateProps.getAutoReplicateNewDisks()bandwidthThrottling(Number bandwidthThrottling) Sets the value ofCfnReplicationConfigurationTemplateProps.getBandwidthThrottling()build()Builds the configured instance.createPublicIp(Boolean createPublicIp) Sets the value ofCfnReplicationConfigurationTemplateProps.getCreatePublicIp()createPublicIp(IResolvable createPublicIp) Sets the value ofCfnReplicationConfigurationTemplateProps.getCreatePublicIp()dataPlaneRouting(String dataPlaneRouting) Sets the value ofCfnReplicationConfigurationTemplateProps.getDataPlaneRouting()defaultLargeStagingDiskType(String defaultLargeStagingDiskType) ebsEncryption(String ebsEncryption) Sets the value ofCfnReplicationConfigurationTemplateProps.getEbsEncryption()ebsEncryptionKeyArn(String ebsEncryptionKeyArn) Sets the value ofCfnReplicationConfigurationTemplateProps.getEbsEncryptionKeyArn()internetProtocol(String internetProtocol) Sets the value ofCfnReplicationConfigurationTemplateProps.getInternetProtocol()Sets the value ofCfnReplicationConfigurationTemplateProps.getPitPolicy()pitPolicy(IResolvable pitPolicy) Sets the value ofCfnReplicationConfigurationTemplateProps.getPitPolicy()replicationServerInstanceType(String replicationServerInstanceType) replicationServersSecurityGroupsIDs(List<String> replicationServersSecurityGroupsIDs) stagingAreaSubnetId(String stagingAreaSubnetId) Sets the value ofCfnReplicationConfigurationTemplateProps.getStagingAreaSubnetId()stagingAreaTags(Map<String, String> stagingAreaTags) Sets the value ofCfnReplicationConfigurationTemplateProps.getStagingAreaTags()stagingAreaTags(IResolvable stagingAreaTags) Sets the value ofCfnReplicationConfigurationTemplateProps.getStagingAreaTags()Sets the value ofCfnReplicationConfigurationTemplateProps.getTags()useDedicatedReplicationServer(Boolean useDedicatedReplicationServer) useDedicatedReplicationServer(IResolvable useDedicatedReplicationServer)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bandwidthThrottling
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder bandwidthThrottling(Number bandwidthThrottling) Sets the value ofCfnReplicationConfigurationTemplateProps.getBandwidthThrottling()- Parameters:
bandwidthThrottling- Configure bandwidth throttling for the outbound data transfer rate of the Source Server in Mbps. This parameter is required.- Returns:
this
-
ebsEncryption
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder ebsEncryption(String ebsEncryption) Sets the value ofCfnReplicationConfigurationTemplateProps.getEbsEncryption()- Parameters:
ebsEncryption- The type of EBS encryption to be used during replication. This parameter is required.- Returns:
this
-
pitPolicy
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder pitPolicy(IResolvable pitPolicy) Sets the value ofCfnReplicationConfigurationTemplateProps.getPitPolicy()- Parameters:
pitPolicy- The Point in time (PIT) policy to manage snapshots taken during replication. This parameter is required.- Returns:
this
-
pitPolicy
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder pitPolicy(List<? extends Object> pitPolicy) Sets the value ofCfnReplicationConfigurationTemplateProps.getPitPolicy()- Parameters:
pitPolicy- The Point in time (PIT) policy to manage snapshots taken during replication. This parameter is required.- Returns:
this
-
replicationServersSecurityGroupsIDs
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder replicationServersSecurityGroupsIDs(List<String> replicationServersSecurityGroupsIDs) - Parameters:
replicationServersSecurityGroupsIDs- The security group IDs that will be used by the replication server. This parameter is required.- Returns:
this
-
stagingAreaSubnetId
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder stagingAreaSubnetId(String stagingAreaSubnetId) Sets the value ofCfnReplicationConfigurationTemplateProps.getStagingAreaSubnetId()- Parameters:
stagingAreaSubnetId- The subnet to be used by the replication staging area. This parameter is required.- Returns:
this
-
stagingAreaTags
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder stagingAreaTags(IResolvable stagingAreaTags) Sets the value ofCfnReplicationConfigurationTemplateProps.getStagingAreaTags()- Parameters:
stagingAreaTags- A set of tags to be associated with all resources created in the replication staging area: EC2 replication server, EBS volumes, EBS snapshots, etc. This parameter is required.- Returns:
this
-
stagingAreaTags
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder stagingAreaTags(Map<String, String> stagingAreaTags) Sets the value ofCfnReplicationConfigurationTemplateProps.getStagingAreaTags()- Parameters:
stagingAreaTags- A set of tags to be associated with all resources created in the replication staging area: EC2 replication server, EBS volumes, EBS snapshots, etc. This parameter is required.- Returns:
this
-
associateDefaultSecurityGroup
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder associateDefaultSecurityGroup(Boolean associateDefaultSecurityGroup) - Parameters:
associateDefaultSecurityGroup- Whether to associate the default Elastic Disaster Recovery Security group with the Replication Configuration Template.- Returns:
this
-
associateDefaultSecurityGroup
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder associateDefaultSecurityGroup(IResolvable associateDefaultSecurityGroup) - Parameters:
associateDefaultSecurityGroup- Whether to associate the default Elastic Disaster Recovery Security group with the Replication Configuration Template.- Returns:
this
-
autoReplicateNewDisks
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder autoReplicateNewDisks(Boolean autoReplicateNewDisks) Sets the value ofCfnReplicationConfigurationTemplateProps.getAutoReplicateNewDisks()- Parameters:
autoReplicateNewDisks- Whether to allow the AWS replication agent to automatically replicate newly added disks.- Returns:
this
-
autoReplicateNewDisks
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder autoReplicateNewDisks(IResolvable autoReplicateNewDisks) Sets the value ofCfnReplicationConfigurationTemplateProps.getAutoReplicateNewDisks()- Parameters:
autoReplicateNewDisks- Whether to allow the AWS replication agent to automatically replicate newly added disks.- Returns:
this
-
createPublicIp
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder createPublicIp(Boolean createPublicIp) Sets the value ofCfnReplicationConfigurationTemplateProps.getCreatePublicIp()- Parameters:
createPublicIp- Whether to create a Public IP for the Recovery Instance by default.- Returns:
this
-
createPublicIp
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder createPublicIp(IResolvable createPublicIp) Sets the value ofCfnReplicationConfigurationTemplateProps.getCreatePublicIp()- Parameters:
createPublicIp- Whether to create a Public IP for the Recovery Instance by default.- Returns:
this
-
dataPlaneRouting
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder dataPlaneRouting(String dataPlaneRouting) Sets the value ofCfnReplicationConfigurationTemplateProps.getDataPlaneRouting()- Parameters:
dataPlaneRouting- The data plane routing mechanism that will be used for replication.- Returns:
this
-
defaultLargeStagingDiskType
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder defaultLargeStagingDiskType(String defaultLargeStagingDiskType) - Parameters:
defaultLargeStagingDiskType- The Staging Disk EBS volume type to be used during replication.- Returns:
this
-
ebsEncryptionKeyArn
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder ebsEncryptionKeyArn(String ebsEncryptionKeyArn) Sets the value ofCfnReplicationConfigurationTemplateProps.getEbsEncryptionKeyArn()- Parameters:
ebsEncryptionKeyArn- The ARN of the EBS encryption key to be used during replication.- Returns:
this
-
internetProtocol
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder internetProtocol(String internetProtocol) Sets the value ofCfnReplicationConfigurationTemplateProps.getInternetProtocol()- Parameters:
internetProtocol- Which version of the Internet Protocol to use for replication of data.- Returns:
this
-
replicationServerInstanceType
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder replicationServerInstanceType(String replicationServerInstanceType) - Parameters:
replicationServerInstanceType- The instance type to be used for the replication server.- Returns:
this
-
tags
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnReplicationConfigurationTemplateProps.getTags()- Parameters:
tags- A set of tags to be associated with the Replication Configuration Template resource.- Returns:
this
-
useDedicatedReplicationServer
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder useDedicatedReplicationServer(Boolean useDedicatedReplicationServer) - Parameters:
useDedicatedReplicationServer- Whether to use a dedicated Replication Server in the replication staging area.- Returns:
this
-
useDedicatedReplicationServer
@Stability(Stable) public CfnReplicationConfigurationTemplateProps.Builder useDedicatedReplicationServer(IResolvable useDedicatedReplicationServer) - Parameters:
useDedicatedReplicationServer- Whether to use a dedicated Replication Server in the replication staging area.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnReplicationConfigurationTemplateProps>- Returns:
- a new instance of
CfnReplicationConfigurationTemplateProps - Throws:
NullPointerException- if any required attribute was not provided
-