/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.databasemigrationservice.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ModifyReplicationInstanceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The Amazon Resource Name (ARN) of the replication instance. *
*/ private String replicationInstanceArn; /** ** The amount of storage (in gigabytes) to be allocated for the replication instance. *
*/ private Integer allocatedStorage; /** ** Indicates whether the changes should be applied immediately or during the next maintenance window. *
*/ private Boolean applyImmediately; /** *
* The compute and memory capacity of the replication instance as defined for the specified replication instance
* class. For example to specify the instance class dms.c4.large, set this parameter to "dms.c4.large"
.
*
* For more information on the settings and capacities for the available replication instance classes, see Selecting the right DMS replication instance for your migration. *
*/ private String replicationInstanceClass; /** ** Specifies the VPC security group to be used with the replication instance. The VPC security group must work with * the VPC containing the replication instance. *
*/ private java.util.List* The weekly time range (in UTC) during which system maintenance can occur, which might result in an outage. * Changing this parameter does not result in an outage, except in the following situation, and the change is * asynchronously applied as soon as possible. If moving this window to the current time, there must be at least 30 * minutes between the current time and end of the window to ensure pending changes are applied. *
** Default: Uses existing setting *
** Format: ddd:hh24:mi-ddd:hh24:mi *
** Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun *
** Constraints: Must be at least 30 minutes *
*/ private String preferredMaintenanceWindow; /** *
* Specifies whether the replication instance is a Multi-AZ deployment. You can't set the
* AvailabilityZone
parameter if the Multi-AZ parameter is set to true
.
*
* The engine version number of the replication instance. *
*
* When modifying a major engine version of an instance, also set AllowMajorVersionUpgrade
to
* true
.
*
* Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage, and the * change is asynchronously applied as soon as possible. *
*
* This parameter must be set to true
when specifying a value for the EngineVersion
* parameter that is a different major version than the replication instance's current version.
*
* A value that indicates that minor version upgrades are applied automatically to the replication instance during * the maintenance window. Changing this parameter doesn't result in an outage, except in the case described * following. The change is asynchronously applied as soon as possible. *
** An outage does result if these factors apply: *
*
* This parameter is set to true
during the maintenance window.
*
* A newer minor version is available. *
** DMS has enabled automatic patching for the given engine version. *
*
* When AutoMinorVersionUpgrade
is enabled, DMS uses the current default engine version when you modify
* a replication instance. For example, if you set EngineVersion
to a lower version number than the
* current default version, DMS uses the default version.
*
* If AutoMinorVersionUpgrade
isn’t enabled when you modify a replication instance, DMS uses the
* engine version specified by the EngineVersion
parameter.
*
* The replication instance identifier. This parameter is stored as a lowercase string. *
*/ private String replicationInstanceIdentifier; /** ** 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. *
*/ private String networkType; /** ** The Amazon Resource Name (ARN) of the replication instance. *
* * @param replicationInstanceArn * The Amazon Resource Name (ARN) of the replication instance. */ public void setReplicationInstanceArn(String replicationInstanceArn) { this.replicationInstanceArn = replicationInstanceArn; } /** ** The Amazon Resource Name (ARN) of the replication instance. *
* * @return The Amazon Resource Name (ARN) of the replication instance. */ public String getReplicationInstanceArn() { return this.replicationInstanceArn; } /** ** The Amazon Resource Name (ARN) of the replication instance. *
* * @param replicationInstanceArn * The Amazon Resource Name (ARN) of the replication instance. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationInstanceRequest withReplicationInstanceArn(String replicationInstanceArn) { setReplicationInstanceArn(replicationInstanceArn); return this; } /** ** The amount of storage (in gigabytes) to be allocated for the replication instance. *
* * @param allocatedStorage * The amount of storage (in gigabytes) to be allocated for the replication instance. */ public void setAllocatedStorage(Integer allocatedStorage) { this.allocatedStorage = allocatedStorage; } /** ** The amount of storage (in gigabytes) to be allocated for the replication instance. *
* * @return The amount of storage (in gigabytes) to be allocated for the replication instance. */ public Integer getAllocatedStorage() { return this.allocatedStorage; } /** ** The amount of storage (in gigabytes) to be allocated for the replication instance. *
* * @param allocatedStorage * The amount of storage (in gigabytes) to be allocated for the replication instance. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationInstanceRequest withAllocatedStorage(Integer allocatedStorage) { setAllocatedStorage(allocatedStorage); return this; } /** ** Indicates whether the changes should be applied immediately or during the next maintenance window. *
* * @param applyImmediately * Indicates whether the changes should be applied immediately or during the next maintenance window. */ public void setApplyImmediately(Boolean applyImmediately) { this.applyImmediately = applyImmediately; } /** ** Indicates whether the changes should be applied immediately or during the next maintenance window. *
* * @return Indicates whether the changes should be applied immediately or during the next maintenance window. */ public Boolean getApplyImmediately() { return this.applyImmediately; } /** ** Indicates whether the changes should be applied immediately or during the next maintenance window. *
* * @param applyImmediately * Indicates whether the changes should be applied immediately or during the next maintenance window. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationInstanceRequest withApplyImmediately(Boolean applyImmediately) { setApplyImmediately(applyImmediately); return this; } /** ** Indicates whether the changes should be applied immediately or during the next maintenance window. *
* * @return Indicates whether the changes should be applied immediately or during the next maintenance window. */ public Boolean isApplyImmediately() { return this.applyImmediately; } /** *
* The compute and memory capacity of the replication instance as defined for the specified replication instance
* class. For example to specify the instance class dms.c4.large, set this parameter to "dms.c4.large"
.
*
* For more information on the settings and capacities for the available replication instance classes, see Selecting the right DMS replication instance for your migration. *
* * @param replicationInstanceClass * The compute and memory capacity of the replication instance as defined for the specified replication * instance class. For example to specify the instance class dms.c4.large, set this parameter to *"dms.c4.large"
.
* * For more information on the settings and capacities for the available replication instance classes, see Selecting the right DMS replication instance for your migration. */ public void setReplicationInstanceClass(String replicationInstanceClass) { this.replicationInstanceClass = replicationInstanceClass; } /** *
* The compute and memory capacity of the replication instance as defined for the specified replication instance
* class. For example to specify the instance class dms.c4.large, set this parameter to "dms.c4.large"
.
*
* For more information on the settings and capacities for the available replication instance classes, see Selecting the right DMS replication instance for your migration. *
* * @return The compute and memory capacity of the replication instance as defined for the specified replication * instance class. For example to specify the instance class dms.c4.large, set this parameter to *"dms.c4.large"
.
* * For more information on the settings and capacities for the available replication instance classes, see * Selecting the right DMS replication instance for your migration. */ public String getReplicationInstanceClass() { return this.replicationInstanceClass; } /** *
* The compute and memory capacity of the replication instance as defined for the specified replication instance
* class. For example to specify the instance class dms.c4.large, set this parameter to "dms.c4.large"
.
*
* For more information on the settings and capacities for the available replication instance classes, see Selecting the right DMS replication instance for your migration. *
* * @param replicationInstanceClass * The compute and memory capacity of the replication instance as defined for the specified replication * instance class. For example to specify the instance class dms.c4.large, set this parameter to *"dms.c4.large"
.
* * For more information on the settings and capacities for the available replication instance classes, see Selecting the right DMS replication instance for your migration. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationInstanceRequest withReplicationInstanceClass(String replicationInstanceClass) { setReplicationInstanceClass(replicationInstanceClass); return this; } /** *
* Specifies the VPC security group to be used with the replication instance. The VPC security group must work with * the VPC containing the replication instance. *
* * @return Specifies the VPC security group to be used with the replication instance. The VPC security group must * work with the VPC containing the replication instance. */ public java.util.List* Specifies the VPC security group to be used with the replication instance. The VPC security group must work with * the VPC containing the replication instance. *
* * @param vpcSecurityGroupIds * Specifies the VPC security group to be used with the replication instance. The VPC security group must * work with the VPC containing the replication instance. */ public void setVpcSecurityGroupIds(java.util.Collection* Specifies the VPC security group to be used with the replication instance. The VPC security group must work with * the VPC containing the replication instance. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVpcSecurityGroupIds(java.util.Collection)} or {@link #withVpcSecurityGroupIds(java.util.Collection)} * if you want to override the existing values. *
* * @param vpcSecurityGroupIds * Specifies the VPC security group to be used with the replication instance. The VPC security group must * work with the VPC containing the replication instance. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationInstanceRequest withVpcSecurityGroupIds(String... vpcSecurityGroupIds) { if (this.vpcSecurityGroupIds == null) { setVpcSecurityGroupIds(new java.util.ArrayList* Specifies the VPC security group to be used with the replication instance. The VPC security group must work with * the VPC containing the replication instance. *
* * @param vpcSecurityGroupIds * Specifies the VPC security group to be used with the replication instance. The VPC security group must * work with the VPC containing the replication instance. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationInstanceRequest withVpcSecurityGroupIds(java.util.Collection* The weekly time range (in UTC) during which system maintenance can occur, which might result in an outage. * Changing this parameter does not result in an outage, except in the following situation, and the change is * asynchronously applied as soon as possible. If moving this window to the current time, there must be at least 30 * minutes between the current time and end of the window to ensure pending changes are applied. *
** Default: Uses existing setting *
** Format: ddd:hh24:mi-ddd:hh24:mi *
** Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun *
** Constraints: Must be at least 30 minutes *
* * @param preferredMaintenanceWindow * The weekly time range (in UTC) during which system maintenance can occur, which might result in an outage. * Changing this parameter does not result in an outage, except in the following situation, and the change is * asynchronously applied as soon as possible. If moving this window to the current time, there must be at * least 30 minutes between the current time and end of the window to ensure pending changes are applied. ** Default: Uses existing setting *
** Format: ddd:hh24:mi-ddd:hh24:mi *
** Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun *
** Constraints: Must be at least 30 minutes */ public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) { this.preferredMaintenanceWindow = preferredMaintenanceWindow; } /** *
* The weekly time range (in UTC) during which system maintenance can occur, which might result in an outage. * Changing this parameter does not result in an outage, except in the following situation, and the change is * asynchronously applied as soon as possible. If moving this window to the current time, there must be at least 30 * minutes between the current time and end of the window to ensure pending changes are applied. *
** Default: Uses existing setting *
** Format: ddd:hh24:mi-ddd:hh24:mi *
** Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun *
** Constraints: Must be at least 30 minutes *
* * @return The weekly time range (in UTC) during which system maintenance can occur, which might result in an * outage. Changing this parameter does not result in an outage, except in the following situation, and the * change is asynchronously applied as soon as possible. If moving this window to the current time, there * must be at least 30 minutes between the current time and end of the window to ensure pending changes are * applied. ** Default: Uses existing setting *
** Format: ddd:hh24:mi-ddd:hh24:mi *
** Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun *
** Constraints: Must be at least 30 minutes */ public String getPreferredMaintenanceWindow() { return this.preferredMaintenanceWindow; } /** *
* The weekly time range (in UTC) during which system maintenance can occur, which might result in an outage. * Changing this parameter does not result in an outage, except in the following situation, and the change is * asynchronously applied as soon as possible. If moving this window to the current time, there must be at least 30 * minutes between the current time and end of the window to ensure pending changes are applied. *
** Default: Uses existing setting *
** Format: ddd:hh24:mi-ddd:hh24:mi *
** Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun *
** Constraints: Must be at least 30 minutes *
* * @param preferredMaintenanceWindow * The weekly time range (in UTC) during which system maintenance can occur, which might result in an outage. * Changing this parameter does not result in an outage, except in the following situation, and the change is * asynchronously applied as soon as possible. If moving this window to the current time, there must be at * least 30 minutes between the current time and end of the window to ensure pending changes are applied. ** Default: Uses existing setting *
** Format: ddd:hh24:mi-ddd:hh24:mi *
** Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun *
** Constraints: Must be at least 30 minutes * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationInstanceRequest withPreferredMaintenanceWindow(String preferredMaintenanceWindow) { setPreferredMaintenanceWindow(preferredMaintenanceWindow); return this; } /** *
* Specifies whether the replication instance is a Multi-AZ deployment. You can't set the
* AvailabilityZone
parameter if the Multi-AZ parameter is set to true
.
*
AvailabilityZone
parameter if the Multi-AZ parameter is set to true
.
*/
public void setMultiAZ(Boolean multiAZ) {
this.multiAZ = 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 to true
.
*
AvailabilityZone
parameter if the Multi-AZ parameter is set to true
.
*/
public Boolean getMultiAZ() {
return this.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 to true
.
*
AvailabilityZone
parameter if the Multi-AZ parameter is set to true
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyReplicationInstanceRequest withMultiAZ(Boolean multiAZ) {
setMultiAZ(multiAZ);
return this;
}
/**
*
* Specifies whether the replication instance is a Multi-AZ deployment. You can't set the
* AvailabilityZone
parameter if the Multi-AZ parameter is set to true
.
*
AvailabilityZone
parameter if the Multi-AZ parameter is set to true
.
*/
public Boolean isMultiAZ() {
return this.multiAZ;
}
/**
* * The engine version number of the replication instance. *
*
* When modifying a major engine version of an instance, also set AllowMajorVersionUpgrade
to
* true
.
*
* When modifying a major engine version of an instance, also set AllowMajorVersionUpgrade
to
* true
.
*/
public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
}
/**
*
* The engine version number of the replication instance. *
*
* When modifying a major engine version of an instance, also set AllowMajorVersionUpgrade
to
* true
.
*
* When modifying a major engine version of an instance, also set AllowMajorVersionUpgrade
to
* true
.
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
*
* The engine version number of the replication instance. *
*
* When modifying a major engine version of an instance, also set AllowMajorVersionUpgrade
to
* true
.
*
* When modifying a major engine version of an instance, also set AllowMajorVersionUpgrade
to
* true
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyReplicationInstanceRequest withEngineVersion(String engineVersion) {
setEngineVersion(engineVersion);
return this;
}
/**
*
* Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage, and the * change is asynchronously applied as soon as possible. *
*
* This parameter must be set to true
when specifying a value for the EngineVersion
* parameter that is a different major version than the replication instance's current version.
*
* This parameter must be set to true
when specifying a value for the EngineVersion
* parameter that is a different major version than the replication instance's current version.
*/
public void setAllowMajorVersionUpgrade(Boolean allowMajorVersionUpgrade) {
this.allowMajorVersionUpgrade = allowMajorVersionUpgrade;
}
/**
*
* Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage, and the * change is asynchronously applied as soon as possible. *
*
* This parameter must be set to true
when specifying a value for the EngineVersion
* parameter that is a different major version than the replication instance's current version.
*
* This parameter must be set to true
when specifying a value for the
* EngineVersion
parameter that is a different major version than the replication instance's
* current version.
*/
public Boolean getAllowMajorVersionUpgrade() {
return this.allowMajorVersionUpgrade;
}
/**
*
* Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage, and the * change is asynchronously applied as soon as possible. *
*
* This parameter must be set to true
when specifying a value for the EngineVersion
* parameter that is a different major version than the replication instance's current version.
*
* This parameter must be set to true
when specifying a value for the EngineVersion
* parameter that is a different major version than the replication instance's current version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyReplicationInstanceRequest withAllowMajorVersionUpgrade(Boolean allowMajorVersionUpgrade) {
setAllowMajorVersionUpgrade(allowMajorVersionUpgrade);
return this;
}
/**
*
* Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage, and the * change is asynchronously applied as soon as possible. *
*
* This parameter must be set to true
when specifying a value for the EngineVersion
* parameter that is a different major version than the replication instance's current version.
*
* This parameter must be set to true
when specifying a value for the
* EngineVersion
parameter that is a different major version than the replication instance's
* current version.
*/
public Boolean isAllowMajorVersionUpgrade() {
return this.allowMajorVersionUpgrade;
}
/**
*
* A value that indicates that minor version upgrades are applied automatically to the replication instance during * the maintenance window. Changing this parameter doesn't result in an outage, except in the case described * following. The change is asynchronously applied as soon as possible. *
** An outage does result if these factors apply: *
*
* This parameter is set to true
during the maintenance window.
*
* A newer minor version is available. *
** DMS has enabled automatic patching for the given engine version. *
*
* When AutoMinorVersionUpgrade
is enabled, DMS uses the current default engine version when you modify
* a replication instance. For example, if you set EngineVersion
to a lower version number than the
* current default version, DMS uses the default version.
*
* If AutoMinorVersionUpgrade
isn’t enabled when you modify a replication instance, DMS uses the
* engine version specified by the EngineVersion
parameter.
*
* An outage does result if these factors apply: *
*
* This parameter is set to true
during the maintenance window.
*
* A newer minor version is available. *
** DMS has enabled automatic patching for the given engine version. *
*
* When AutoMinorVersionUpgrade
is enabled, DMS uses the current default engine version when you
* modify a replication instance. For example, if you set EngineVersion
to a lower version
* number than the current default version, DMS uses the default version.
*
* If AutoMinorVersionUpgrade
isn’t enabled when you modify a replication instance, DMS
* uses the engine version specified by the EngineVersion
parameter.
*/
public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
this.autoMinorVersionUpgrade = autoMinorVersionUpgrade;
}
/**
*
* A value that indicates that minor version upgrades are applied automatically to the replication instance during * the maintenance window. Changing this parameter doesn't result in an outage, except in the case described * following. The change is asynchronously applied as soon as possible. *
** An outage does result if these factors apply: *
*
* This parameter is set to true
during the maintenance window.
*
* A newer minor version is available. *
** DMS has enabled automatic patching for the given engine version. *
*
* When AutoMinorVersionUpgrade
is enabled, DMS uses the current default engine version when you modify
* a replication instance. For example, if you set EngineVersion
to a lower version number than the
* current default version, DMS uses the default version.
*
* If AutoMinorVersionUpgrade
isn’t enabled when you modify a replication instance, DMS uses the
* engine version specified by the EngineVersion
parameter.
*
* An outage does result if these factors apply: *
*
* This parameter is set to true
during the maintenance window.
*
* A newer minor version is available. *
** DMS has enabled automatic patching for the given engine version. *
*
* When AutoMinorVersionUpgrade
is enabled, DMS uses the current default engine version when
* you modify a replication instance. For example, if you set EngineVersion
to a lower version
* number than the current default version, DMS uses the default version.
*
* If AutoMinorVersionUpgrade
isn’t enabled when you modify a replication instance, DMS
* uses the engine version specified by the EngineVersion
parameter.
*/
public Boolean getAutoMinorVersionUpgrade() {
return this.autoMinorVersionUpgrade;
}
/**
*
* A value that indicates that minor version upgrades are applied automatically to the replication instance during * the maintenance window. Changing this parameter doesn't result in an outage, except in the case described * following. The change is asynchronously applied as soon as possible. *
** An outage does result if these factors apply: *
*
* This parameter is set to true
during the maintenance window.
*
* A newer minor version is available. *
** DMS has enabled automatic patching for the given engine version. *
*
* When AutoMinorVersionUpgrade
is enabled, DMS uses the current default engine version when you modify
* a replication instance. For example, if you set EngineVersion
to a lower version number than the
* current default version, DMS uses the default version.
*
* If AutoMinorVersionUpgrade
isn’t enabled when you modify a replication instance, DMS uses the
* engine version specified by the EngineVersion
parameter.
*
* An outage does result if these factors apply: *
*
* This parameter is set to true
during the maintenance window.
*
* A newer minor version is available. *
** DMS has enabled automatic patching for the given engine version. *
*
* When AutoMinorVersionUpgrade
is enabled, DMS uses the current default engine version when you
* modify a replication instance. For example, if you set EngineVersion
to a lower version
* number than the current default version, DMS uses the default version.
*
* If AutoMinorVersionUpgrade
isn’t enabled when you modify a replication instance, DMS
* uses the engine version specified by the EngineVersion
parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyReplicationInstanceRequest withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
setAutoMinorVersionUpgrade(autoMinorVersionUpgrade);
return this;
}
/**
*
* A value that indicates that minor version upgrades are applied automatically to the replication instance during * the maintenance window. Changing this parameter doesn't result in an outage, except in the case described * following. The change is asynchronously applied as soon as possible. *
** An outage does result if these factors apply: *
*
* This parameter is set to true
during the maintenance window.
*
* A newer minor version is available. *
** DMS has enabled automatic patching for the given engine version. *
*
* When AutoMinorVersionUpgrade
is enabled, DMS uses the current default engine version when you modify
* a replication instance. For example, if you set EngineVersion
to a lower version number than the
* current default version, DMS uses the default version.
*
* If AutoMinorVersionUpgrade
isn’t enabled when you modify a replication instance, DMS uses the
* engine version specified by the EngineVersion
parameter.
*
* An outage does result if these factors apply: *
*
* This parameter is set to true
during the maintenance window.
*
* A newer minor version is available. *
** DMS has enabled automatic patching for the given engine version. *
*
* When AutoMinorVersionUpgrade
is enabled, DMS uses the current default engine version when
* you modify a replication instance. For example, if you set EngineVersion
to a lower version
* number than the current default version, DMS uses the default version.
*
* If AutoMinorVersionUpgrade
isn’t enabled when you modify a replication instance, DMS
* uses the engine version specified by the EngineVersion
parameter.
*/
public Boolean isAutoMinorVersionUpgrade() {
return this.autoMinorVersionUpgrade;
}
/**
*
* The replication instance identifier. This parameter is stored as a lowercase string. *
* * @param replicationInstanceIdentifier * The replication instance identifier. This parameter is stored as a lowercase string. */ public void setReplicationInstanceIdentifier(String replicationInstanceIdentifier) { this.replicationInstanceIdentifier = replicationInstanceIdentifier; } /** ** The replication instance identifier. This parameter is stored as a lowercase string. *
* * @return The replication instance identifier. This parameter is stored as a lowercase string. */ public String getReplicationInstanceIdentifier() { return this.replicationInstanceIdentifier; } /** ** The replication instance identifier. This parameter is stored as a lowercase string. *
* * @param replicationInstanceIdentifier * The replication instance identifier. This parameter is stored as a lowercase string. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationInstanceRequest withReplicationInstanceIdentifier(String replicationInstanceIdentifier) { setReplicationInstanceIdentifier(replicationInstanceIdentifier); return this; } /** ** 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. *
* * @param 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. */ public void setNetworkType(String networkType) { this.networkType = 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. *
* * @return 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. */ public String getNetworkType() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationInstanceRequest withNetworkType(String networkType) { setNetworkType(networkType); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getReplicationInstanceArn() != null) sb.append("ReplicationInstanceArn: ").append(getReplicationInstanceArn()).append(","); if (getAllocatedStorage() != null) sb.append("AllocatedStorage: ").append(getAllocatedStorage()).append(","); if (getApplyImmediately() != null) sb.append("ApplyImmediately: ").append(getApplyImmediately()).append(","); if (getReplicationInstanceClass() != null) sb.append("ReplicationInstanceClass: ").append(getReplicationInstanceClass()).append(","); if (getVpcSecurityGroupIds() != null) sb.append("VpcSecurityGroupIds: ").append(getVpcSecurityGroupIds()).append(","); if (getPreferredMaintenanceWindow() != null) sb.append("PreferredMaintenanceWindow: ").append(getPreferredMaintenanceWindow()).append(","); if (getMultiAZ() != null) sb.append("MultiAZ: ").append(getMultiAZ()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getAllowMajorVersionUpgrade() != null) sb.append("AllowMajorVersionUpgrade: ").append(getAllowMajorVersionUpgrade()).append(","); if (getAutoMinorVersionUpgrade() != null) sb.append("AutoMinorVersionUpgrade: ").append(getAutoMinorVersionUpgrade()).append(","); if (getReplicationInstanceIdentifier() != null) sb.append("ReplicationInstanceIdentifier: ").append(getReplicationInstanceIdentifier()).append(","); if (getNetworkType() != null) sb.append("NetworkType: ").append(getNetworkType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyReplicationInstanceRequest == false) return false; ModifyReplicationInstanceRequest other = (ModifyReplicationInstanceRequest) obj; if (other.getReplicationInstanceArn() == null ^ this.getReplicationInstanceArn() == null) return false; if (other.getReplicationInstanceArn() != null && other.getReplicationInstanceArn().equals(this.getReplicationInstanceArn()) == false) return false; if (other.getAllocatedStorage() == null ^ this.getAllocatedStorage() == null) return false; if (other.getAllocatedStorage() != null && other.getAllocatedStorage().equals(this.getAllocatedStorage()) == false) return false; if (other.getApplyImmediately() == null ^ this.getApplyImmediately() == null) return false; if (other.getApplyImmediately() != null && other.getApplyImmediately().equals(this.getApplyImmediately()) == false) return false; if (other.getReplicationInstanceClass() == null ^ this.getReplicationInstanceClass() == null) return false; if (other.getReplicationInstanceClass() != null && other.getReplicationInstanceClass().equals(this.getReplicationInstanceClass()) == false) return false; if (other.getVpcSecurityGroupIds() == null ^ this.getVpcSecurityGroupIds() == null) return false; if (other.getVpcSecurityGroupIds() != null && other.getVpcSecurityGroupIds().equals(this.getVpcSecurityGroupIds()) == false) return false; if (other.getPreferredMaintenanceWindow() == null ^ this.getPreferredMaintenanceWindow() == null) return false; if (other.getPreferredMaintenanceWindow() != null && other.getPreferredMaintenanceWindow().equals(this.getPreferredMaintenanceWindow()) == false) return false; if (other.getMultiAZ() == null ^ this.getMultiAZ() == null) return false; if (other.getMultiAZ() != null && other.getMultiAZ().equals(this.getMultiAZ()) == false) return false; if (other.getEngineVersion() == null ^ this.getEngineVersion() == null) return false; if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false) return false; if (other.getAllowMajorVersionUpgrade() == null ^ this.getAllowMajorVersionUpgrade() == null) return false; if (other.getAllowMajorVersionUpgrade() != null && other.getAllowMajorVersionUpgrade().equals(this.getAllowMajorVersionUpgrade()) == false) return false; if (other.getAutoMinorVersionUpgrade() == null ^ this.getAutoMinorVersionUpgrade() == null) return false; if (other.getAutoMinorVersionUpgrade() != null && other.getAutoMinorVersionUpgrade().equals(this.getAutoMinorVersionUpgrade()) == false) return false; if (other.getReplicationInstanceIdentifier() == null ^ this.getReplicationInstanceIdentifier() == null) return false; if (other.getReplicationInstanceIdentifier() != null && other.getReplicationInstanceIdentifier().equals(this.getReplicationInstanceIdentifier()) == false) return false; if (other.getNetworkType() == null ^ this.getNetworkType() == null) return false; if (other.getNetworkType() != null && other.getNetworkType().equals(this.getNetworkType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReplicationInstanceArn() == null) ? 0 : getReplicationInstanceArn().hashCode()); hashCode = prime * hashCode + ((getAllocatedStorage() == null) ? 0 : getAllocatedStorage().hashCode()); hashCode = prime * hashCode + ((getApplyImmediately() == null) ? 0 : getApplyImmediately().hashCode()); hashCode = prime * hashCode + ((getReplicationInstanceClass() == null) ? 0 : getReplicationInstanceClass().hashCode()); hashCode = prime * hashCode + ((getVpcSecurityGroupIds() == null) ? 0 : getVpcSecurityGroupIds().hashCode()); hashCode = prime * hashCode + ((getPreferredMaintenanceWindow() == null) ? 0 : getPreferredMaintenanceWindow().hashCode()); hashCode = prime * hashCode + ((getMultiAZ() == null) ? 0 : getMultiAZ().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getAllowMajorVersionUpgrade() == null) ? 0 : getAllowMajorVersionUpgrade().hashCode()); hashCode = prime * hashCode + ((getAutoMinorVersionUpgrade() == null) ? 0 : getAutoMinorVersionUpgrade().hashCode()); hashCode = prime * hashCode + ((getReplicationInstanceIdentifier() == null) ? 0 : getReplicationInstanceIdentifier().hashCode()); hashCode = prime * hashCode + ((getNetworkType() == null) ? 0 : getNetworkType().hashCode()); return hashCode; } @Override public ModifyReplicationInstanceRequest clone() { return (ModifyReplicationInstanceRequest) super.clone(); } }