Interface ReplicationInstance.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ReplicationInstance.Builder,ReplicationInstance>,SdkBuilder<ReplicationInstance.Builder,ReplicationInstance>,SdkPojo
- Enclosing class:
- ReplicationInstance
public static interface ReplicationInstance.Builder extends SdkPojo, CopyableBuilder<ReplicationInstance.Builder,ReplicationInstance>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description ReplicationInstance.BuilderallocatedStorage(Integer allocatedStorage)The amount of storage (in gigabytes) that is allocated for the replication instance.ReplicationInstance.BuilderautoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)Boolean value indicating if minor version upgrades will be automatically applied to the instance.ReplicationInstance.BuilderavailabilityZone(String availabilityZone)The Availability Zone for the instance.ReplicationInstance.BuilderdnsNameServers(String dnsNameServers)The DNS name servers supported for the replication instance to access your on-premise source or target database.ReplicationInstance.BuilderengineVersion(String engineVersion)The engine version number of the replication instance.ReplicationInstance.BuilderfreeUntil(Instant freeUntil)The expiration date of the free replication instance that is part of the Free DMS program.ReplicationInstance.BuilderinstanceCreateTime(Instant instanceCreateTime)The time the replication instance was created.ReplicationInstance.BuilderkmsKeyId(String kmsKeyId)An KMS key identifier that is used to encrypt the data on the replication instance.ReplicationInstance.BuildermultiAZ(Boolean multiAZ)Specifies whether the replication instance is a Multi-AZ deployment.ReplicationInstance.BuildernetworkType(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.BuilderpendingModifiedValues(Consumer<ReplicationPendingModifiedValues.Builder> pendingModifiedValues)The pending modification values.ReplicationInstance.BuilderpendingModifiedValues(ReplicationPendingModifiedValues pendingModifiedValues)The pending modification values.ReplicationInstance.BuilderpreferredMaintenanceWindow(String preferredMaintenanceWindow)The maintenance window times for the replication instance.ReplicationInstance.BuilderpubliclyAccessible(Boolean publiclyAccessible)Specifies the accessibility options for the replication instance.ReplicationInstance.BuilderreplicationInstanceArn(String replicationInstanceArn)The Amazon Resource Name (ARN) of the replication instance.ReplicationInstance.BuilderreplicationInstanceClass(String replicationInstanceClass)The compute and memory capacity of the replication instance as defined for the specified replication instance class.ReplicationInstance.BuilderreplicationInstanceIdentifier(String replicationInstanceIdentifier)The replication instance identifier is a required parameter.ReplicationInstance.BuilderreplicationInstanceIpv6Addresses(String... replicationInstanceIpv6Addresses)One or more IPv6 addresses for the replication instance.ReplicationInstance.BuilderreplicationInstanceIpv6Addresses(Collection<String> replicationInstanceIpv6Addresses)One or more IPv6 addresses for the replication instance.ReplicationInstance.BuilderreplicationInstancePrivateIpAddress(String replicationInstancePrivateIpAddress)Deprecated.ReplicationInstance.BuilderreplicationInstancePrivateIpAddresses(String... replicationInstancePrivateIpAddresses)One or more private IP addresses for the replication instance.ReplicationInstance.BuilderreplicationInstancePrivateIpAddresses(Collection<String> replicationInstancePrivateIpAddresses)One or more private IP addresses for the replication instance.ReplicationInstance.BuilderreplicationInstancePublicIpAddress(String replicationInstancePublicIpAddress)Deprecated.ReplicationInstance.BuilderreplicationInstancePublicIpAddresses(String... replicationInstancePublicIpAddresses)One or more public IP addresses for the replication instance.ReplicationInstance.BuilderreplicationInstancePublicIpAddresses(Collection<String> replicationInstancePublicIpAddresses)One or more public IP addresses for the replication instance.ReplicationInstance.BuilderreplicationInstanceStatus(String replicationInstanceStatus)The status of the replication instance.default ReplicationInstance.BuilderreplicationSubnetGroup(Consumer<ReplicationSubnetGroup.Builder> replicationSubnetGroup)The subnet group for the replication instance.ReplicationInstance.BuilderreplicationSubnetGroup(ReplicationSubnetGroup replicationSubnetGroup)The subnet group for the replication instance.ReplicationInstance.BuildersecondaryAvailabilityZone(String secondaryAvailabilityZone)The Availability Zone of the standby replication instance in a Multi-AZ deployment.ReplicationInstance.BuildervpcSecurityGroups(Collection<VpcSecurityGroupMembership> vpcSecurityGroups)The VPC security group for the instance.ReplicationInstance.BuildervpcSecurityGroups(Consumer<VpcSecurityGroupMembership.Builder>... vpcSecurityGroups)The VPC security group for the instance.ReplicationInstance.BuildervpcSecurityGroups(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 Detail
-
replicationInstanceIdentifier
ReplicationInstance.Builder replicationInstanceIdentifier(String 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
ReplicationInstance.Builder replicationInstanceClass(String 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
ReplicationInstance.Builder replicationInstanceStatus(String 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
ReplicationInstance.Builder allocatedStorage(Integer 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
ReplicationInstance.Builder instanceCreateTime(Instant 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
ReplicationInstance.Builder vpcSecurityGroups(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
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.Builderavoiding the need to create one manually viaVpcSecurityGroupMembership.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#vpcSecurityGroups(List.) - 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:
#vpcSecurityGroups(java.util.Collection)
-
availabilityZone
ReplicationInstance.Builder availabilityZone(String 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
ReplicationInstance.Builder replicationSubnetGroup(ReplicationSubnetGroup 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.Builderavoiding the need to create one manually viaReplicationSubnetGroup.builder().When the
Consumercompletes,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:
replicationSubnetGroup(ReplicationSubnetGroup)
-
preferredMaintenanceWindow
ReplicationInstance.Builder preferredMaintenanceWindow(String 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.Builderavoiding the need to create one manually viaReplicationPendingModifiedValues.builder().When the
Consumercompletes,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:
pendingModifiedValues(ReplicationPendingModifiedValues)
-
multiAZ
ReplicationInstance.Builder multiAZ(Boolean multiAZ)
Specifies whether the replication instance is a Multi-AZ deployment. You can't set the
AvailabilityZoneparameter if the Multi-AZ parameter is set totrue.- Parameters:
multiAZ- Specifies whether the replication instance is a Multi-AZ deployment. You can't set theAvailabilityZoneparameter if the Multi-AZ parameter is set totrue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineVersion
ReplicationInstance.Builder engineVersion(String 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
AllowMajorVersionUpgradetotrue.- 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
AllowMajorVersionUpgradetotrue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoMinorVersionUpgrade
ReplicationInstance.Builder autoMinorVersionUpgrade(Boolean 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
ReplicationInstance.Builder kmsKeyId(String 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
KmsKeyIdparameter, 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
KmsKeyIdparameter, 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
ReplicationInstance.Builder replicationInstanceArn(String 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
ReplicationInstance.Builder publiclyAccessible(Boolean publiclyAccessible)
Specifies the accessibility options for the replication instance. A value of
truerepresents an instance with a public IP address. A value offalserepresents an instance with a private IP address. The default value istrue.- Parameters:
publiclyAccessible- Specifies the accessibility options for the replication instance. A value oftruerepresents an instance with a public IP address. A value offalserepresents 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
ReplicationInstance.Builder secondaryAvailabilityZone(String 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
ReplicationInstance.Builder freeUntil(Instant 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
ReplicationInstance.Builder dnsNameServers(String 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
ReplicationInstance.Builder 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. 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.
-
-