Interface ReplicationInstance.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ReplicationInstance.Builder,
,ReplicationInstance> SdkBuilder<ReplicationInstance.Builder,
,ReplicationInstance> SdkPojo
- Enclosing class:
ReplicationInstance
-
Method Summary
Modifier and TypeMethodDescriptionallocatedStorage
(Integer allocatedStorage) The amount of storage (in gigabytes) that is allocated for the replication instance.autoMinorVersionUpgrade
(Boolean autoMinorVersionUpgrade) Boolean value indicating if minor version upgrades will be automatically applied to the instance.availabilityZone
(String availabilityZone) The Availability Zone for the instance.dnsNameServers
(String dnsNameServers) The DNS name servers supported for the replication instance to access your on-premise source or target database.engineVersion
(String engineVersion) The engine version number of the replication instance.The expiration date of the free replication instance that is part of the Free DMS program.instanceCreateTime
(Instant instanceCreateTime) The time the replication instance was created.An KMS key identifier that is used to encrypt the data on the replication instance.Specifies whether the replication instance is a Multi-AZ deployment.networkType
(String networkType) The type of IP address protocol used by a replication instance, such as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing.default ReplicationInstance.Builder
pendingModifiedValues
(Consumer<ReplicationPendingModifiedValues.Builder> pendingModifiedValues) The pending modification values.pendingModifiedValues
(ReplicationPendingModifiedValues pendingModifiedValues) The pending modification values.preferredMaintenanceWindow
(String preferredMaintenanceWindow) The maintenance window times for the replication instance.publiclyAccessible
(Boolean publiclyAccessible) Specifies the accessibility options for the replication instance.replicationInstanceArn
(String replicationInstanceArn) The Amazon Resource Name (ARN) of the replication instance.replicationInstanceClass
(String replicationInstanceClass) The compute and memory capacity of the replication instance as defined for the specified replication instance class.replicationInstanceIdentifier
(String replicationInstanceIdentifier) The replication instance identifier is a required parameter.replicationInstanceIpv6Addresses
(String... replicationInstanceIpv6Addresses) One or more IPv6 addresses for the replication instance.replicationInstanceIpv6Addresses
(Collection<String> replicationInstanceIpv6Addresses) One or more IPv6 addresses for the replication instance.replicationInstancePrivateIpAddress
(String replicationInstancePrivateIpAddress) Deprecated.replicationInstancePrivateIpAddresses
(String... replicationInstancePrivateIpAddresses) One or more private IP addresses for the replication instance.replicationInstancePrivateIpAddresses
(Collection<String> replicationInstancePrivateIpAddresses) One or more private IP addresses for the replication instance.replicationInstancePublicIpAddress
(String replicationInstancePublicIpAddress) Deprecated.replicationInstancePublicIpAddresses
(String... replicationInstancePublicIpAddresses) One or more public IP addresses for the replication instance.replicationInstancePublicIpAddresses
(Collection<String> replicationInstancePublicIpAddresses) One or more public IP addresses for the replication instance.replicationInstanceStatus
(String replicationInstanceStatus) The status of the replication instance.default ReplicationInstance.Builder
replicationSubnetGroup
(Consumer<ReplicationSubnetGroup.Builder> replicationSubnetGroup) The subnet group for the replication instance.replicationSubnetGroup
(ReplicationSubnetGroup replicationSubnetGroup) The subnet group for the replication instance.secondaryAvailabilityZone
(String secondaryAvailabilityZone) The Availability Zone of the standby replication instance in a Multi-AZ deployment.vpcSecurityGroups
(Collection<VpcSecurityGroupMembership> vpcSecurityGroups) The VPC security group for the instance.vpcSecurityGroups
(Consumer<VpcSecurityGroupMembership.Builder>... vpcSecurityGroups) The VPC security group for the instance.vpcSecurityGroups
(VpcSecurityGroupMembership... vpcSecurityGroups) The VPC security group for the instance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
replicationInstanceIdentifier
The replication instance identifier is a required parameter. This parameter is stored as a lowercase string.
Constraints:
-
Must contain 1-63 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example:
myrepinstance
- Parameters:
replicationInstanceIdentifier
- The replication instance identifier is a required parameter. This parameter is stored as a lowercase string.Constraints:
-
Must contain 1-63 alphanumeric characters or hyphens.
-
First character must be a letter.
-
Cannot end with a hyphen or contain two consecutive hyphens.
Example:
myrepinstance
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
replicationInstanceClass
The compute and memory capacity of the replication instance as defined for the specified replication instance class. It is a required parameter, although a default value is pre-selected in the DMS console.
For more information on the settings and capacities for the available replication instance classes, see Selecting the right DMS replication instance for your migration.
- Parameters:
replicationInstanceClass
- The compute and memory capacity of the replication instance as defined for the specified replication instance class. It is a required parameter, although a default value is pre-selected in the DMS console.For more information on the settings and capacities for the available replication instance classes, see Selecting the right DMS replication instance for your migration.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationInstanceStatus
The status of the replication instance. The possible return values include:
-
"available"
-
"creating"
-
"deleted"
-
"deleting"
-
"failed"
-
"modifying"
-
"upgrading"
-
"rebooting"
-
"resetting-master-credentials"
-
"storage-full"
-
"incompatible-credentials"
-
"incompatible-network"
-
"maintenance"
- Parameters:
replicationInstanceStatus
- The status of the replication instance. The possible return values include:-
"available"
-
"creating"
-
"deleted"
-
"deleting"
-
"failed"
-
"modifying"
-
"upgrading"
-
"rebooting"
-
"resetting-master-credentials"
-
"storage-full"
-
"incompatible-credentials"
-
"incompatible-network"
-
"maintenance"
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
allocatedStorage
The amount of storage (in gigabytes) that is allocated for the replication instance.
- Parameters:
allocatedStorage
- The amount of storage (in gigabytes) that is allocated for the replication instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceCreateTime
The time the replication instance was created.
- Parameters:
instanceCreateTime
- The time the replication instance was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcSecurityGroups
ReplicationInstance.Builder vpcSecurityGroups(Collection<VpcSecurityGroupMembership> vpcSecurityGroups) The VPC security group for the instance.
- Parameters:
vpcSecurityGroups
- The VPC security group for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcSecurityGroups
The VPC security group for the instance.
- Parameters:
vpcSecurityGroups
- The VPC security group for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcSecurityGroups
ReplicationInstance.Builder vpcSecurityGroups(Consumer<VpcSecurityGroupMembership.Builder>... vpcSecurityGroups) The VPC security group for the instance.
This is a convenience method that creates an instance of theVpcSecurityGroupMembership.Builder
avoiding the need to create one manually viaVpcSecurityGroupMembership.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpcSecurityGroups(List<VpcSecurityGroupMembership>)
.- Parameters:
vpcSecurityGroups
- a consumer that will call methods onVpcSecurityGroupMembership.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
availabilityZone
The Availability Zone for the instance.
- Parameters:
availabilityZone
- The Availability Zone for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationSubnetGroup
The subnet group for the replication instance.
- Parameters:
replicationSubnetGroup
- The subnet group for the replication instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationSubnetGroup
default ReplicationInstance.Builder replicationSubnetGroup(Consumer<ReplicationSubnetGroup.Builder> replicationSubnetGroup) The subnet group for the replication instance.
This is a convenience method that creates an instance of theReplicationSubnetGroup.Builder
avoiding the need to create one manually viaReplicationSubnetGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreplicationSubnetGroup(ReplicationSubnetGroup)
.- Parameters:
replicationSubnetGroup
- a consumer that will call methods onReplicationSubnetGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
preferredMaintenanceWindow
The maintenance window times for the replication instance. Any pending upgrades to the replication instance are performed during this time.
- Parameters:
preferredMaintenanceWindow
- The maintenance window times for the replication instance. Any pending upgrades to the replication instance are performed during this time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pendingModifiedValues
ReplicationInstance.Builder pendingModifiedValues(ReplicationPendingModifiedValues pendingModifiedValues) The pending modification values.
- Parameters:
pendingModifiedValues
- The pending modification values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pendingModifiedValues
default ReplicationInstance.Builder pendingModifiedValues(Consumer<ReplicationPendingModifiedValues.Builder> pendingModifiedValues) The pending modification values.
This is a convenience method that creates an instance of theReplicationPendingModifiedValues.Builder
avoiding the need to create one manually viaReplicationPendingModifiedValues.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topendingModifiedValues(ReplicationPendingModifiedValues)
.- Parameters:
pendingModifiedValues
- a consumer that will call methods onReplicationPendingModifiedValues.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
multiAZ
Specifies whether the replication instance is a Multi-AZ deployment. You can't set the
AvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.- Parameters:
multiAZ
- Specifies whether the replication instance is a Multi-AZ deployment. You can't set theAvailabilityZone
parameter if the Multi-AZ parameter is set totrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineVersion
The engine version number of the replication instance.
If an engine version number is not specified when a replication instance is created, the default is the latest engine version available.
When modifying a major engine version of an instance, also set
AllowMajorVersionUpgrade
totrue
.- Parameters:
engineVersion
- The engine version number of the replication instance.If an engine version number is not specified when a replication instance is created, the default is the latest engine version available.
When modifying a major engine version of an instance, also set
AllowMajorVersionUpgrade
totrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoMinorVersionUpgrade
Boolean value indicating if minor version upgrades will be automatically applied to the instance.
- Parameters:
autoMinorVersionUpgrade
- Boolean value indicating if minor version upgrades will be automatically applied to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
An KMS key identifier that is used to encrypt the data on the replication instance.
If you don't specify a value for the
KmsKeyId
parameter, then DMS uses your default encryption key.KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key for each Amazon Web Services Region.
- Parameters:
kmsKeyId
- An KMS key identifier that is used to encrypt the data on the replication instance.If you don't specify a value for the
KmsKeyId
parameter, then DMS uses your default encryption key.KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key for each Amazon Web Services Region.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationInstanceArn
The Amazon Resource Name (ARN) of the replication instance.
- Parameters:
replicationInstanceArn
- The Amazon Resource Name (ARN) of the replication instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationInstancePublicIpAddress
@Deprecated ReplicationInstance.Builder replicationInstancePublicIpAddress(String replicationInstancePublicIpAddress) Deprecated.The public IP address of the replication instance.
- Parameters:
replicationInstancePublicIpAddress
- The public IP address of the replication instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationInstancePrivateIpAddress
@Deprecated ReplicationInstance.Builder replicationInstancePrivateIpAddress(String replicationInstancePrivateIpAddress) Deprecated.The private IP address of the replication instance.
- Parameters:
replicationInstancePrivateIpAddress
- The private IP address of the replication instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationInstancePublicIpAddresses
ReplicationInstance.Builder replicationInstancePublicIpAddresses(Collection<String> replicationInstancePublicIpAddresses) One or more public IP addresses for the replication instance.
- Parameters:
replicationInstancePublicIpAddresses
- One or more public IP addresses for the replication instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationInstancePublicIpAddresses
ReplicationInstance.Builder replicationInstancePublicIpAddresses(String... replicationInstancePublicIpAddresses) One or more public IP addresses for the replication instance.
- Parameters:
replicationInstancePublicIpAddresses
- One or more public IP addresses for the replication instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationInstancePrivateIpAddresses
ReplicationInstance.Builder replicationInstancePrivateIpAddresses(Collection<String> replicationInstancePrivateIpAddresses) One or more private IP addresses for the replication instance.
- Parameters:
replicationInstancePrivateIpAddresses
- One or more private IP addresses for the replication instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationInstancePrivateIpAddresses
ReplicationInstance.Builder replicationInstancePrivateIpAddresses(String... replicationInstancePrivateIpAddresses) One or more private IP addresses for the replication instance.
- Parameters:
replicationInstancePrivateIpAddresses
- One or more private IP addresses for the replication instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationInstanceIpv6Addresses
ReplicationInstance.Builder replicationInstanceIpv6Addresses(Collection<String> replicationInstanceIpv6Addresses) One or more IPv6 addresses for the replication instance.
- Parameters:
replicationInstanceIpv6Addresses
- One or more IPv6 addresses for the replication instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
replicationInstanceIpv6Addresses
ReplicationInstance.Builder replicationInstanceIpv6Addresses(String... replicationInstanceIpv6Addresses) One or more IPv6 addresses for the replication instance.
- Parameters:
replicationInstanceIpv6Addresses
- One or more IPv6 addresses for the replication instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publiclyAccessible
Specifies the accessibility options for the replication instance. A value of
true
represents an instance with a public IP address. A value offalse
represents an instance with a private IP address. The default value istrue
.- Parameters:
publiclyAccessible
- Specifies the accessibility options for the replication instance. A value oftrue
represents an instance with a public IP address. A value offalse
represents an instance with a private IP address. The default value istrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryAvailabilityZone
The Availability Zone of the standby replication instance in a Multi-AZ deployment.
- Parameters:
secondaryAvailabilityZone
- The Availability Zone of the standby replication instance in a Multi-AZ deployment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
freeUntil
The expiration date of the free replication instance that is part of the Free DMS program.
- Parameters:
freeUntil
- The expiration date of the free replication instance that is part of the Free DMS program.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsNameServers
The DNS name servers supported for the replication instance to access your on-premise source or target database.
- Parameters:
dnsNameServers
- The DNS name servers supported for the replication instance to access your on-premise source or target database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkType
The type of IP address protocol used by a replication instance, such as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet supported.
- Parameters:
networkType
- The type of IP address protocol used by a replication instance, such as IPv4 only or Dual-stack that supports both IPv4 and IPv6 addressing. IPv6 only is not yet supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-