/* * 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.elasticache.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Represents the input of a ModifyReplicationGroups
operation.
*
* The identifier of the replication group to modify. *
*/ private String replicationGroupId; /** ** A description for the replication group. Maximum length is 255 characters. *
*/ private String replicationGroupDescription; /** ** For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the specified * cluster in the specified replication group to the primary role. The nodes of all other clusters in the * replication group are read replicas. *
*/ private String primaryClusterId; /** ** The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot be set * for Redis (cluster mode enabled) replication groups. *
*/ private String snapshottingClusterId; /** ** Determines whether a read replica is automatically promoted to read/write primary if the existing primary * encounters a failure. *
*
* Valid values: true
| false
*
* A flag to indicate MultiAZ is enabled. *
*/ private Boolean multiAZEnabled; /** ** Deprecated. This parameter is not used. *
*/ @Deprecated private String nodeGroupId; /** ** A list of cache security group names to authorize for the clusters in this replication group. This change is * asynchronously applied as soon as possible. *
** This parameter can be used only with replication group containing clusters running outside of an Amazon Virtual * Private Cloud (Amazon VPC). *
*
* Constraints: Must contain no more than 255 alphanumeric characters. Must not be Default
.
*
* Specifies the VPC Security Groups associated with the clusters in the replication group. *
** This parameter can be used only with replication group containing clusters running in an Amazon Virtual Private * Cloud (Amazon VPC). *
*/ private com.amazonaws.internal.SdkInternalList* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range * in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. *
*
* Valid values for ddd
are:
*
* sun
*
* mon
*
* tue
*
* wed
*
* thu
*
* fri
*
* sat
*
* Example: sun:23:00-mon:01:30
*
* The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent. *
** The Amazon SNS topic owner must be same as the replication group owner. *
*
* The name of the cache parameter group to apply to all of the clusters in this replication group. This change is
* asynchronously applied as soon as possible for parameters when the ApplyImmediately
parameter is
* specified as true
for this request.
*
* The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the
* status is active
.
*
* Valid values: active
| inactive
*
* If true
, this parameter causes the modifications in this request and any pending modifications to be
* applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow
* setting for the replication group.
*
* If false
, changes to the nodes in the replication group are applied on the next maintenance reboot,
* or the next failure reboot, whichever occurs first.
*
* Valid values: true
| false
*
* Default: false
*
* The upgraded version of the cache engine to be run on the clusters in the replication group. *
** Important: You can upgrade to a newer engine version (see Selecting * a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an * earlier engine version, you must delete the existing replication group and create it anew with the earlier engine * version. *
*/ private String engineVersion; /** ** If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the * next auto minor version upgrade campaign. This parameter is disabled for previous versions. *
*/ private Boolean autoMinorVersionUpgrade; /** *
* The number of days for which ElastiCache retains automatic node group (shard) snapshots before deleting them. For
* example, if you set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5
* days before being deleted.
*
* Important If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. *
*/ private Integer snapshotRetentionLimit; /** *
* The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group (shard)
* specified by SnapshottingClusterId
.
*
* Example: 05:00-09:00
*
* If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range. *
*/ private String snapshotWindow; /** ** A valid cache node type that you want to scale this replication group to. *
*/ private String cacheNodeType; /** *
* Reserved parameter. The password used to access a password protected server. This parameter must be specified
* with the auth-token-update-strategy
parameter. Password constraints:
*
* Must be only printable ASCII characters *
** Must be at least 16 characters and no more than 128 characters in length *
** Cannot contain any of the following characters: '/', '"', or '@', '%' *
** For more information, see AUTH password at AUTH. *
*/ private String authToken; /** *
* Specifies the strategy to use to update the AUTH token. This parameter must be specified with the
* auth-token
parameter. Possible values:
*
* Rotate *
** Set *
** For more information, see Authenticating Users with Redis * AUTH *
*/ private String authTokenUpdateStrategy; /** ** The ID of the user group you are associating with the replication group. *
*/ private com.amazonaws.internal.SdkInternalList* The ID of the user group to disassociate from the replication group, meaning the users in the group no longer can * access the replication group. *
*/ private com.amazonaws.internal.SdkInternalList* Removes the user group associated with this replication group. *
*/ private Boolean removeUserGroups; /** ** Specifies the destination, format and type of the logs. *
*/ private com.amazonaws.internal.SdkInternalList
* The network type you choose when modifying a cluster, either ipv4
| ipv6
. IPv6 is
* supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances
* built on the Nitro system.
*
* A flag that enables in-transit encryption when set to true. If you are enabling in-transit encryption for an
* existing cluster, you must also set TransitEncryptionMode
to preferred
.
*
* A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. *
*
* You must set TransitEncryptionEnabled
to true
, for your existing cluster, and set
* TransitEncryptionMode
to preferred
in the same request to allow both encrypted and
* unencrypted connections at the same time. Once you migrate all your Redis clients to use encrypted connections
* you can set the value to required
to allow encrypted connections only.
*
* Setting TransitEncryptionMode
to required
is a two-step process that requires you to
* first set the TransitEncryptionMode
to preferred
, after that you can set
* TransitEncryptionMode
to required
.
*
* Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to * Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and cluster mode * disabled. After you migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode * configuration and set the cluster mode to Enabled. *
*/ private String clusterMode; /** ** The identifier of the replication group to modify. *
* * @param replicationGroupId * The identifier of the replication group to modify. */ public void setReplicationGroupId(String replicationGroupId) { this.replicationGroupId = replicationGroupId; } /** ** The identifier of the replication group to modify. *
* * @return The identifier of the replication group to modify. */ public String getReplicationGroupId() { return this.replicationGroupId; } /** ** The identifier of the replication group to modify. *
* * @param replicationGroupId * The identifier of the replication group to modify. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withReplicationGroupId(String replicationGroupId) { setReplicationGroupId(replicationGroupId); return this; } /** ** A description for the replication group. Maximum length is 255 characters. *
* * @param replicationGroupDescription * A description for the replication group. Maximum length is 255 characters. */ public void setReplicationGroupDescription(String replicationGroupDescription) { this.replicationGroupDescription = replicationGroupDescription; } /** ** A description for the replication group. Maximum length is 255 characters. *
* * @return A description for the replication group. Maximum length is 255 characters. */ public String getReplicationGroupDescription() { return this.replicationGroupDescription; } /** ** A description for the replication group. Maximum length is 255 characters. *
* * @param replicationGroupDescription * A description for the replication group. Maximum length is 255 characters. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withReplicationGroupDescription(String replicationGroupDescription) { setReplicationGroupDescription(replicationGroupDescription); return this; } /** ** For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the specified * cluster in the specified replication group to the primary role. The nodes of all other clusters in the * replication group are read replicas. *
* * @param primaryClusterId * For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the * specified cluster in the specified replication group to the primary role. The nodes of all other clusters * in the replication group are read replicas. */ public void setPrimaryClusterId(String primaryClusterId) { this.primaryClusterId = primaryClusterId; } /** ** For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the specified * cluster in the specified replication group to the primary role. The nodes of all other clusters in the * replication group are read replicas. *
* * @return For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the * specified cluster in the specified replication group to the primary role. The nodes of all other clusters * in the replication group are read replicas. */ public String getPrimaryClusterId() { return this.primaryClusterId; } /** ** For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the specified * cluster in the specified replication group to the primary role. The nodes of all other clusters in the * replication group are read replicas. *
* * @param primaryClusterId * For replication groups with a single primary, if this parameter is specified, ElastiCache promotes the * specified cluster in the specified replication group to the primary role. The nodes of all other clusters * in the replication group are read replicas. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withPrimaryClusterId(String primaryClusterId) { setPrimaryClusterId(primaryClusterId); return this; } /** ** The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot be set * for Redis (cluster mode enabled) replication groups. *
* * @param snapshottingClusterId * The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot * be set for Redis (cluster mode enabled) replication groups. */ public void setSnapshottingClusterId(String snapshottingClusterId) { this.snapshottingClusterId = snapshottingClusterId; } /** ** The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot be set * for Redis (cluster mode enabled) replication groups. *
* * @return The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot * be set for Redis (cluster mode enabled) replication groups. */ public String getSnapshottingClusterId() { return this.snapshottingClusterId; } /** ** The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot be set * for Redis (cluster mode enabled) replication groups. *
* * @param snapshottingClusterId * The cluster ID that is used as the daily snapshot source for the replication group. This parameter cannot * be set for Redis (cluster mode enabled) replication groups. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withSnapshottingClusterId(String snapshottingClusterId) { setSnapshottingClusterId(snapshottingClusterId); return this; } /** ** Determines whether a read replica is automatically promoted to read/write primary if the existing primary * encounters a failure. *
*
* Valid values: true
| false
*
* Valid values: true
| false
*/
public void setAutomaticFailoverEnabled(Boolean automaticFailoverEnabled) {
this.automaticFailoverEnabled = automaticFailoverEnabled;
}
/**
*
* Determines whether a read replica is automatically promoted to read/write primary if the existing primary * encounters a failure. *
*
* Valid values: true
| false
*
* Valid values: true
| false
*/
public Boolean getAutomaticFailoverEnabled() {
return this.automaticFailoverEnabled;
}
/**
*
* Determines whether a read replica is automatically promoted to read/write primary if the existing primary * encounters a failure. *
*
* Valid values: true
| false
*
* Valid values: true
| false
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyReplicationGroupRequest withAutomaticFailoverEnabled(Boolean automaticFailoverEnabled) {
setAutomaticFailoverEnabled(automaticFailoverEnabled);
return this;
}
/**
*
* Determines whether a read replica is automatically promoted to read/write primary if the existing primary * encounters a failure. *
*
* Valid values: true
| false
*
* Valid values: true
| false
*/
public Boolean isAutomaticFailoverEnabled() {
return this.automaticFailoverEnabled;
}
/**
*
* A flag to indicate MultiAZ is enabled. *
* * @param multiAZEnabled * A flag to indicate MultiAZ is enabled. */ public void setMultiAZEnabled(Boolean multiAZEnabled) { this.multiAZEnabled = multiAZEnabled; } /** ** A flag to indicate MultiAZ is enabled. *
* * @return A flag to indicate MultiAZ is enabled. */ public Boolean getMultiAZEnabled() { return this.multiAZEnabled; } /** ** A flag to indicate MultiAZ is enabled. *
* * @param multiAZEnabled * A flag to indicate MultiAZ is enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withMultiAZEnabled(Boolean multiAZEnabled) { setMultiAZEnabled(multiAZEnabled); return this; } /** ** A flag to indicate MultiAZ is enabled. *
* * @return A flag to indicate MultiAZ is enabled. */ public Boolean isMultiAZEnabled() { return this.multiAZEnabled; } /** ** Deprecated. This parameter is not used. *
* * @param nodeGroupId * Deprecated. This parameter is not used. */ @Deprecated public void setNodeGroupId(String nodeGroupId) { this.nodeGroupId = nodeGroupId; } /** ** Deprecated. This parameter is not used. *
* * @return Deprecated. This parameter is not used. */ @Deprecated public String getNodeGroupId() { return this.nodeGroupId; } /** ** Deprecated. This parameter is not used. *
* * @param nodeGroupId * Deprecated. This parameter is not used. * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public ModifyReplicationGroupRequest withNodeGroupId(String nodeGroupId) { setNodeGroupId(nodeGroupId); return this; } /** ** A list of cache security group names to authorize for the clusters in this replication group. This change is * asynchronously applied as soon as possible. *
** This parameter can be used only with replication group containing clusters running outside of an Amazon Virtual * Private Cloud (Amazon VPC). *
*
* Constraints: Must contain no more than 255 alphanumeric characters. Must not be Default
.
*
* This parameter can be used only with replication group containing clusters running outside of an Amazon * Virtual Private Cloud (Amazon VPC). *
*
* Constraints: Must contain no more than 255 alphanumeric characters. Must not be
* A list of cache security group names to authorize for the clusters in this replication group. This change is
* asynchronously applied as soon as possible.
*
* This parameter can be used only with replication group containing clusters running outside of an Amazon Virtual
* Private Cloud (Amazon VPC).
*
* Constraints: Must contain no more than 255 alphanumeric characters. Must not be Default
.
*/
public java.util.ListDefault
.
*
* This parameter can be used only with replication group containing clusters running outside of an Amazon * Virtual Private Cloud (Amazon VPC). *
*
* Constraints: Must contain no more than 255 alphanumeric characters. Must not be
* A list of cache security group names to authorize for the clusters in this replication group. This change is
* asynchronously applied as soon as possible.
*
* This parameter can be used only with replication group containing clusters running outside of an Amazon Virtual
* Private Cloud (Amazon VPC).
*
* Constraints: Must contain no more than 255 alphanumeric characters. Must not be
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setCacheSecurityGroupNames(java.util.Collection)} or
* {@link #withCacheSecurityGroupNames(java.util.Collection)} if you want to override the existing values.
* Default
.
*/
public void setCacheSecurityGroupNames(java.util.CollectionDefault
.
*
* This parameter can be used only with replication group containing clusters running outside of an Amazon * Virtual Private Cloud (Amazon VPC). *
*
* Constraints: Must contain no more than 255 alphanumeric characters. Must not be
* A list of cache security group names to authorize for the clusters in this replication group. This change is
* asynchronously applied as soon as possible.
*
* This parameter can be used only with replication group containing clusters running outside of an Amazon Virtual
* Private Cloud (Amazon VPC).
*
* Constraints: Must contain no more than 255 alphanumeric characters. Must not be Default
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyReplicationGroupRequest withCacheSecurityGroupNames(String... cacheSecurityGroupNames) {
if (this.cacheSecurityGroupNames == null) {
setCacheSecurityGroupNames(new com.amazonaws.internal.SdkInternalListDefault
.
*
* This parameter can be used only with replication group containing clusters running outside of an Amazon * Virtual Private Cloud (Amazon VPC). *
*
* Constraints: Must contain no more than 255 alphanumeric characters. Must not be
* Specifies the VPC Security Groups associated with the clusters in the replication group.
*
* This parameter can be used only with replication group containing clusters running in an Amazon Virtual Private
* Cloud (Amazon VPC).
* Default
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyReplicationGroupRequest withCacheSecurityGroupNames(java.util.Collection
* This parameter can be used only with replication group containing clusters running in an Amazon Virtual
* Private Cloud (Amazon VPC).
*/
public java.util.List
* Specifies the VPC Security Groups associated with the clusters in the replication group.
*
* This parameter can be used only with replication group containing clusters running in an Amazon Virtual Private
* Cloud (Amazon VPC).
*
* This parameter can be used only with replication group containing clusters running in an Amazon Virtual
* Private Cloud (Amazon VPC).
*/
public void setSecurityGroupIds(java.util.Collection
* Specifies the VPC Security Groups associated with the clusters in the replication group.
*
* This parameter can be used only with replication group containing clusters running in an Amazon Virtual Private
* Cloud (Amazon VPC).
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSecurityGroupIds(java.util.Collection)} or {@link #withSecurityGroupIds(java.util.Collection)} if you
* want to override the existing values.
*
* This parameter can be used only with replication group containing clusters running in an Amazon Virtual
* Private Cloud (Amazon VPC).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyReplicationGroupRequest withSecurityGroupIds(String... securityGroupIds) {
if (this.securityGroupIds == null) {
setSecurityGroupIds(new com.amazonaws.internal.SdkInternalList
* Specifies the VPC Security Groups associated with the clusters in the replication group.
*
* This parameter can be used only with replication group containing clusters running in an Amazon Virtual Private
* Cloud (Amazon VPC).
*
* This parameter can be used only with replication group containing clusters running in an Amazon Virtual
* Private Cloud (Amazon VPC).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyReplicationGroupRequest withSecurityGroupIds(java.util.Collection
* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range
* in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.
*
* Valid values for
*
*
*
*
*
*
*
* Example: ddd
are:
*
*
* sun
* mon
* tue
* wed
* thu
* fri
* sat
* sun:23:00-mon:01:30
*
* Valid values for ddd
are:
*
* sun
*
* mon
*
* tue
*
* wed
*
* thu
*
* fri
*
* sat
*
* Example: sun:23:00-mon:01:30
*/
public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
this.preferredMaintenanceWindow = preferredMaintenanceWindow;
}
/**
*
* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range * in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. *
*
* Valid values for ddd
are:
*
* sun
*
* mon
*
* tue
*
* wed
*
* thu
*
* fri
*
* sat
*
* Example: sun:23:00-mon:01:30
*
* Valid values for ddd
are:
*
* sun
*
* mon
*
* tue
*
* wed
*
* thu
*
* fri
*
* sat
*
* Example: sun:23:00-mon:01:30
*/
public String getPreferredMaintenanceWindow() {
return this.preferredMaintenanceWindow;
}
/**
*
* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range * in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period. *
*
* Valid values for ddd
are:
*
* sun
*
* mon
*
* tue
*
* wed
*
* thu
*
* fri
*
* sat
*
* Example: sun:23:00-mon:01:30
*
* Valid values for ddd
are:
*
* sun
*
* mon
*
* tue
*
* wed
*
* thu
*
* fri
*
* sat
*
* Example: sun:23:00-mon:01:30
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyReplicationGroupRequest withPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
setPreferredMaintenanceWindow(preferredMaintenanceWindow);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent. *
** The Amazon SNS topic owner must be same as the replication group owner. *
** The Amazon SNS topic owner must be same as the replication group owner. *
*/ public void setNotificationTopicArn(String notificationTopicArn) { this.notificationTopicArn = notificationTopicArn; } /** ** The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent. *
** The Amazon SNS topic owner must be same as the replication group owner. *
** The Amazon SNS topic owner must be same as the replication group owner. *
*/ public String getNotificationTopicArn() { return this.notificationTopicArn; } /** ** The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications are sent. *
** The Amazon SNS topic owner must be same as the replication group owner. *
** The Amazon SNS topic owner must be same as the replication group owner. *
* @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withNotificationTopicArn(String notificationTopicArn) { setNotificationTopicArn(notificationTopicArn); return this; } /** *
* The name of the cache parameter group to apply to all of the clusters in this replication group. This change is
* asynchronously applied as soon as possible for parameters when the ApplyImmediately
parameter is
* specified as true
for this request.
*
ApplyImmediately
* parameter is specified as true
for this request.
*/
public void setCacheParameterGroupName(String cacheParameterGroupName) {
this.cacheParameterGroupName = cacheParameterGroupName;
}
/**
*
* The name of the cache parameter group to apply to all of the clusters in this replication group. This change is
* asynchronously applied as soon as possible for parameters when the ApplyImmediately
parameter is
* specified as true
for this request.
*
ApplyImmediately
parameter is specified as true
for this request.
*/
public String getCacheParameterGroupName() {
return this.cacheParameterGroupName;
}
/**
*
* The name of the cache parameter group to apply to all of the clusters in this replication group. This change is
* asynchronously applied as soon as possible for parameters when the ApplyImmediately
parameter is
* specified as true
for this request.
*
ApplyImmediately
* parameter is specified as true
for this request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyReplicationGroupRequest withCacheParameterGroupName(String cacheParameterGroupName) {
setCacheParameterGroupName(cacheParameterGroupName);
return this;
}
/**
*
* The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the
* status is active
.
*
* Valid values: active
| inactive
*
active
.
*
* Valid values: active
| inactive
*/
public void setNotificationTopicStatus(String notificationTopicStatus) {
this.notificationTopicStatus = notificationTopicStatus;
}
/**
*
* The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the
* status is active
.
*
* Valid values: active
| inactive
*
active
.
*
* Valid values: active
| inactive
*/
public String getNotificationTopicStatus() {
return this.notificationTopicStatus;
}
/**
*
* The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the
* status is active
.
*
* Valid values: active
| inactive
*
active
.
*
* Valid values: active
| inactive
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyReplicationGroupRequest withNotificationTopicStatus(String notificationTopicStatus) {
setNotificationTopicStatus(notificationTopicStatus);
return this;
}
/**
*
* If true
, this parameter causes the modifications in this request and any pending modifications to be
* applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow
* setting for the replication group.
*
* If false
, changes to the nodes in the replication group are applied on the next maintenance reboot,
* or the next failure reboot, whichever occurs first.
*
* Valid values: true
| false
*
* Default: false
*
true
, this parameter causes the modifications in this request and any pending
* modifications to be applied, asynchronously and as soon as possible, regardless of the
* PreferredMaintenanceWindow
setting for the replication group.
*
* If false
, changes to the nodes in the replication group are applied on the next maintenance
* reboot, or the next failure reboot, whichever occurs first.
*
* Valid values: true
| false
*
* Default: false
*/
public void setApplyImmediately(Boolean applyImmediately) {
this.applyImmediately = applyImmediately;
}
/**
*
* If true
, this parameter causes the modifications in this request and any pending modifications to be
* applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow
* setting for the replication group.
*
* If false
, changes to the nodes in the replication group are applied on the next maintenance reboot,
* or the next failure reboot, whichever occurs first.
*
* Valid values: true
| false
*
* Default: false
*
true
, this parameter causes the modifications in this request and any pending
* modifications to be applied, asynchronously and as soon as possible, regardless of the
* PreferredMaintenanceWindow
setting for the replication group.
*
* If false
, changes to the nodes in the replication group are applied on the next maintenance
* reboot, or the next failure reboot, whichever occurs first.
*
* Valid values: true
| false
*
* Default: false
*/
public Boolean getApplyImmediately() {
return this.applyImmediately;
}
/**
*
* If true
, this parameter causes the modifications in this request and any pending modifications to be
* applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow
* setting for the replication group.
*
* If false
, changes to the nodes in the replication group are applied on the next maintenance reboot,
* or the next failure reboot, whichever occurs first.
*
* Valid values: true
| false
*
* Default: false
*
true
, this parameter causes the modifications in this request and any pending
* modifications to be applied, asynchronously and as soon as possible, regardless of the
* PreferredMaintenanceWindow
setting for the replication group.
*
* If false
, changes to the nodes in the replication group are applied on the next maintenance
* reboot, or the next failure reboot, whichever occurs first.
*
* Valid values: true
| false
*
* Default: false
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyReplicationGroupRequest withApplyImmediately(Boolean applyImmediately) {
setApplyImmediately(applyImmediately);
return this;
}
/**
*
* If true
, this parameter causes the modifications in this request and any pending modifications to be
* applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow
* setting for the replication group.
*
* If false
, changes to the nodes in the replication group are applied on the next maintenance reboot,
* or the next failure reboot, whichever occurs first.
*
* Valid values: true
| false
*
* Default: false
*
true
, this parameter causes the modifications in this request and any pending
* modifications to be applied, asynchronously and as soon as possible, regardless of the
* PreferredMaintenanceWindow
setting for the replication group.
*
* If false
, changes to the nodes in the replication group are applied on the next maintenance
* reboot, or the next failure reboot, whichever occurs first.
*
* Valid values: true
| false
*
* Default: false
*/
public Boolean isApplyImmediately() {
return this.applyImmediately;
}
/**
*
* The upgraded version of the cache engine to be run on the clusters in the replication group. *
** Important: You can upgrade to a newer engine version (see Selecting * a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an * earlier engine version, you must delete the existing replication group and create it anew with the earlier engine * version. *
* * @param engineVersion * The upgraded version of the cache engine to be run on the clusters in the replication group. ** Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you * want to use an earlier engine version, you must delete the existing replication group and create it anew * with the earlier engine version. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** *
* The upgraded version of the cache engine to be run on the clusters in the replication group. *
** Important: You can upgrade to a newer engine version (see Selecting * a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an * earlier engine version, you must delete the existing replication group and create it anew with the earlier engine * version. *
* * @return The upgraded version of the cache engine to be run on the clusters in the replication group. ** Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you * want to use an earlier engine version, you must delete the existing replication group and create it anew * with the earlier engine version. */ public String getEngineVersion() { return this.engineVersion; } /** *
* The upgraded version of the cache engine to be run on the clusters in the replication group. *
** Important: You can upgrade to a newer engine version (see Selecting * a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an * earlier engine version, you must delete the existing replication group and create it anew with the earlier engine * version. *
* * @param engineVersion * The upgraded version of the cache engine to be run on the clusters in the replication group. ** Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you * want to use an earlier engine version, you must delete the existing replication group and create it anew * with the earlier engine version. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** *
* If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the * next auto minor version upgrade campaign. This parameter is disabled for previous versions. *
* * @param autoMinorVersionUpgrade * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to * the next auto minor version upgrade campaign. This parameter is disabled for previous versions. */ public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) { this.autoMinorVersionUpgrade = autoMinorVersionUpgrade; } /** ** If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the * next auto minor version upgrade campaign. This parameter is disabled for previous versions. *
* * @return If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to * the next auto minor version upgrade campaign. This parameter is disabled for previous versions. */ public Boolean getAutoMinorVersionUpgrade() { return this.autoMinorVersionUpgrade; } /** ** If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the * next auto minor version upgrade campaign. This parameter is disabled for previous versions. *
* * @param autoMinorVersionUpgrade * If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to * the next auto minor version upgrade campaign. This parameter is disabled for previous versions. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) { setAutoMinorVersionUpgrade(autoMinorVersionUpgrade); return this; } /** ** If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the * next auto minor version upgrade campaign. This parameter is disabled for previous versions. *
* * @return If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to * the next auto minor version upgrade campaign. This parameter is disabled for previous versions. */ public Boolean isAutoMinorVersionUpgrade() { return this.autoMinorVersionUpgrade; } /** *
* The number of days for which ElastiCache retains automatic node group (shard) snapshots before deleting them. For
* example, if you set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5
* days before being deleted.
*
* Important If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. *
* * @param snapshotRetentionLimit * The number of days for which ElastiCache retains automatic node group (shard) snapshots before deleting * them. For example, if you setSnapshotRetentionLimit
to 5, a snapshot that was taken today is
* retained for 5 days before being deleted.
* * Important If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. */ public void setSnapshotRetentionLimit(Integer snapshotRetentionLimit) { this.snapshotRetentionLimit = snapshotRetentionLimit; } /** *
* The number of days for which ElastiCache retains automatic node group (shard) snapshots before deleting them. For
* example, if you set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5
* days before being deleted.
*
* Important If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. *
* * @return The number of days for which ElastiCache retains automatic node group (shard) snapshots before deleting * them. For example, if you setSnapshotRetentionLimit
to 5, a snapshot that was taken today
* is retained for 5 days before being deleted.
* * Important If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. */ public Integer getSnapshotRetentionLimit() { return this.snapshotRetentionLimit; } /** *
* The number of days for which ElastiCache retains automatic node group (shard) snapshots before deleting them. For
* example, if you set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5
* days before being deleted.
*
* Important If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. *
* * @param snapshotRetentionLimit * The number of days for which ElastiCache retains automatic node group (shard) snapshots before deleting * them. For example, if you setSnapshotRetentionLimit
to 5, a snapshot that was taken today is
* retained for 5 days before being deleted.
* * Important If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withSnapshotRetentionLimit(Integer snapshotRetentionLimit) { setSnapshotRetentionLimit(snapshotRetentionLimit); return this; } /** *
* The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group (shard)
* specified by SnapshottingClusterId
.
*
* Example: 05:00-09:00
*
* If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range. *
* * @param snapshotWindow * The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group * (shard) specified bySnapshottingClusterId
.
*
* Example: 05:00-09:00
*
* If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range. */ public void setSnapshotWindow(String snapshotWindow) { this.snapshotWindow = snapshotWindow; } /** *
* The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group (shard)
* specified by SnapshottingClusterId
.
*
* Example: 05:00-09:00
*
* If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range. *
* * @return The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group * (shard) specified bySnapshottingClusterId
.
*
* Example: 05:00-09:00
*
* If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range. */ public String getSnapshotWindow() { return this.snapshotWindow; } /** *
* The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group (shard)
* specified by SnapshottingClusterId
.
*
* Example: 05:00-09:00
*
* If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range. *
* * @param snapshotWindow * The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group * (shard) specified bySnapshottingClusterId
.
*
* Example: 05:00-09:00
*
* If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withSnapshotWindow(String snapshotWindow) { setSnapshotWindow(snapshotWindow); return this; } /** *
* A valid cache node type that you want to scale this replication group to. *
* * @param cacheNodeType * A valid cache node type that you want to scale this replication group to. */ public void setCacheNodeType(String cacheNodeType) { this.cacheNodeType = cacheNodeType; } /** ** A valid cache node type that you want to scale this replication group to. *
* * @return A valid cache node type that you want to scale this replication group to. */ public String getCacheNodeType() { return this.cacheNodeType; } /** ** A valid cache node type that you want to scale this replication group to. *
* * @param cacheNodeType * A valid cache node type that you want to scale this replication group to. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withCacheNodeType(String cacheNodeType) { setCacheNodeType(cacheNodeType); return this; } /** *
* Reserved parameter. The password used to access a password protected server. This parameter must be specified
* with the auth-token-update-strategy
parameter. Password constraints:
*
* Must be only printable ASCII characters *
** Must be at least 16 characters and no more than 128 characters in length *
** Cannot contain any of the following characters: '/', '"', or '@', '%' *
** For more information, see AUTH password at AUTH. *
* * @param authToken * Reserved parameter. The password used to access a password protected server. This parameter must be * specified with theauth-token-update-strategy
parameter. Password constraints:
* * Must be only printable ASCII characters *
** Must be at least 16 characters and no more than 128 characters in length *
** Cannot contain any of the following characters: '/', '"', or '@', '%' *
** For more information, see AUTH password at AUTH. */ public void setAuthToken(String authToken) { this.authToken = authToken; } /** *
* Reserved parameter. The password used to access a password protected server. This parameter must be specified
* with the auth-token-update-strategy
parameter. Password constraints:
*
* Must be only printable ASCII characters *
** Must be at least 16 characters and no more than 128 characters in length *
** Cannot contain any of the following characters: '/', '"', or '@', '%' *
** For more information, see AUTH password at AUTH. *
* * @return Reserved parameter. The password used to access a password protected server. This parameter must be * specified with theauth-token-update-strategy
parameter. Password constraints:
* * Must be only printable ASCII characters *
** Must be at least 16 characters and no more than 128 characters in length *
** Cannot contain any of the following characters: '/', '"', or '@', '%' *
** For more information, see AUTH password at AUTH. */ public String getAuthToken() { return this.authToken; } /** *
* Reserved parameter. The password used to access a password protected server. This parameter must be specified
* with the auth-token-update-strategy
parameter. Password constraints:
*
* Must be only printable ASCII characters *
** Must be at least 16 characters and no more than 128 characters in length *
** Cannot contain any of the following characters: '/', '"', or '@', '%' *
** For more information, see AUTH password at AUTH. *
* * @param authToken * Reserved parameter. The password used to access a password protected server. This parameter must be * specified with theauth-token-update-strategy
parameter. Password constraints:
* * Must be only printable ASCII characters *
** Must be at least 16 characters and no more than 128 characters in length *
** Cannot contain any of the following characters: '/', '"', or '@', '%' *
** For more information, see AUTH password at AUTH. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withAuthToken(String authToken) { setAuthToken(authToken); return this; } /** *
* Specifies the strategy to use to update the AUTH token. This parameter must be specified with the
* auth-token
parameter. Possible values:
*
* Rotate *
** Set *
** For more information, see Authenticating Users with Redis * AUTH *
* * @param authTokenUpdateStrategy * Specifies the strategy to use to update the AUTH token. This parameter must be specified with the *auth-token
parameter. Possible values:
* * Rotate *
** Set *
** For more information, see Authenticating Users with * Redis AUTH * @see AuthTokenUpdateStrategyType */ public void setAuthTokenUpdateStrategy(String authTokenUpdateStrategy) { this.authTokenUpdateStrategy = authTokenUpdateStrategy; } /** *
* Specifies the strategy to use to update the AUTH token. This parameter must be specified with the
* auth-token
parameter. Possible values:
*
* Rotate *
** Set *
** For more information, see Authenticating Users with Redis * AUTH *
* * @return Specifies the strategy to use to update the AUTH token. This parameter must be specified with the *auth-token
parameter. Possible values:
* * Rotate *
** Set *
** For more information, see Authenticating Users with * Redis AUTH * @see AuthTokenUpdateStrategyType */ public String getAuthTokenUpdateStrategy() { return this.authTokenUpdateStrategy; } /** *
* Specifies the strategy to use to update the AUTH token. This parameter must be specified with the
* auth-token
parameter. Possible values:
*
* Rotate *
** Set *
** For more information, see Authenticating Users with Redis * AUTH *
* * @param authTokenUpdateStrategy * Specifies the strategy to use to update the AUTH token. This parameter must be specified with the *auth-token
parameter. Possible values:
* * Rotate *
** Set *
** For more information, see Authenticating Users with * Redis AUTH * @return Returns a reference to this object so that method calls can be chained together. * @see AuthTokenUpdateStrategyType */ public ModifyReplicationGroupRequest withAuthTokenUpdateStrategy(String authTokenUpdateStrategy) { setAuthTokenUpdateStrategy(authTokenUpdateStrategy); return this; } /** *
* Specifies the strategy to use to update the AUTH token. This parameter must be specified with the
* auth-token
parameter. Possible values:
*
* Rotate *
** Set *
** For more information, see Authenticating Users with Redis * AUTH *
* * @param authTokenUpdateStrategy * Specifies the strategy to use to update the AUTH token. This parameter must be specified with the *auth-token
parameter. Possible values:
* * Rotate *
** Set *
** For more information, see Authenticating Users with * Redis AUTH * @return Returns a reference to this object so that method calls can be chained together. * @see AuthTokenUpdateStrategyType */ public ModifyReplicationGroupRequest withAuthTokenUpdateStrategy(AuthTokenUpdateStrategyType authTokenUpdateStrategy) { this.authTokenUpdateStrategy = authTokenUpdateStrategy.toString(); return this; } /** *
* The ID of the user group you are associating with the replication group. *
* * @return The ID of the user group you are associating with the replication group. */ public java.util.List* The ID of the user group you are associating with the replication group. *
* * @param userGroupIdsToAdd * The ID of the user group you are associating with the replication group. */ public void setUserGroupIdsToAdd(java.util.Collection* The ID of the user group you are associating with the replication group. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUserGroupIdsToAdd(java.util.Collection)} or {@link #withUserGroupIdsToAdd(java.util.Collection)} if * you want to override the existing values. *
* * @param userGroupIdsToAdd * The ID of the user group you are associating with the replication group. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withUserGroupIdsToAdd(String... userGroupIdsToAdd) { if (this.userGroupIdsToAdd == null) { setUserGroupIdsToAdd(new com.amazonaws.internal.SdkInternalList* The ID of the user group you are associating with the replication group. *
* * @param userGroupIdsToAdd * The ID of the user group you are associating with the replication group. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withUserGroupIdsToAdd(java.util.Collection* The ID of the user group to disassociate from the replication group, meaning the users in the group no longer can * access the replication group. *
* * @return The ID of the user group to disassociate from the replication group, meaning the users in the group no * longer can access the replication group. */ public java.util.List* The ID of the user group to disassociate from the replication group, meaning the users in the group no longer can * access the replication group. *
* * @param userGroupIdsToRemove * The ID of the user group to disassociate from the replication group, meaning the users in the group no * longer can access the replication group. */ public void setUserGroupIdsToRemove(java.util.Collection* The ID of the user group to disassociate from the replication group, meaning the users in the group no longer can * access the replication group. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUserGroupIdsToRemove(java.util.Collection)} or {@link #withUserGroupIdsToRemove(java.util.Collection)} * if you want to override the existing values. *
* * @param userGroupIdsToRemove * The ID of the user group to disassociate from the replication group, meaning the users in the group no * longer can access the replication group. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withUserGroupIdsToRemove(String... userGroupIdsToRemove) { if (this.userGroupIdsToRemove == null) { setUserGroupIdsToRemove(new com.amazonaws.internal.SdkInternalList* The ID of the user group to disassociate from the replication group, meaning the users in the group no longer can * access the replication group. *
* * @param userGroupIdsToRemove * The ID of the user group to disassociate from the replication group, meaning the users in the group no * longer can access the replication group. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withUserGroupIdsToRemove(java.util.Collection* Removes the user group associated with this replication group. *
* * @param removeUserGroups * Removes the user group associated with this replication group. */ public void setRemoveUserGroups(Boolean removeUserGroups) { this.removeUserGroups = removeUserGroups; } /** ** Removes the user group associated with this replication group. *
* * @return Removes the user group associated with this replication group. */ public Boolean getRemoveUserGroups() { return this.removeUserGroups; } /** ** Removes the user group associated with this replication group. *
* * @param removeUserGroups * Removes the user group associated with this replication group. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withRemoveUserGroups(Boolean removeUserGroups) { setRemoveUserGroups(removeUserGroups); return this; } /** ** Removes the user group associated with this replication group. *
* * @return Removes the user group associated with this replication group. */ public Boolean isRemoveUserGroups() { return this.removeUserGroups; } /** ** Specifies the destination, format and type of the logs. *
* * @return Specifies the destination, format and type of the logs. */ public java.util.List* Specifies the destination, format and type of the logs. *
* * @param logDeliveryConfigurations * Specifies the destination, format and type of the logs. */ public void setLogDeliveryConfigurations(java.util.Collection* Specifies the destination, format and type of the logs. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLogDeliveryConfigurations(java.util.Collection)} or * {@link #withLogDeliveryConfigurations(java.util.Collection)} if you want to override the existing values. *
* * @param logDeliveryConfigurations * Specifies the destination, format and type of the logs. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withLogDeliveryConfigurations(LogDeliveryConfigurationRequest... logDeliveryConfigurations) { if (this.logDeliveryConfigurations == null) { setLogDeliveryConfigurations(new com.amazonaws.internal.SdkInternalList* Specifies the destination, format and type of the logs. *
* * @param logDeliveryConfigurations * Specifies the destination, format and type of the logs. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyReplicationGroupRequest withLogDeliveryConfigurations(java.util.Collection
* The network type you choose when modifying a cluster, either ipv4
| ipv6
. IPv6 is
* supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances
* built on the Nitro system.
*
ipv4
| ipv6
. IPv6
* is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all
* instances built on the Nitro system.
* @see IpDiscovery
*/
public void setIpDiscovery(String ipDiscovery) {
this.ipDiscovery = ipDiscovery;
}
/**
*
* The network type you choose when modifying a cluster, either ipv4
| ipv6
. IPv6 is
* supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances
* built on the Nitro system.
*
ipv4
| ipv6
. IPv6
* is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all
* instances built on the Nitro system.
* @see IpDiscovery
*/
public String getIpDiscovery() {
return this.ipDiscovery;
}
/**
*
* The network type you choose when modifying a cluster, either ipv4
| ipv6
. IPv6 is
* supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances
* built on the Nitro system.
*
ipv4
| ipv6
. IPv6
* is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all
* instances built on the Nitro system.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IpDiscovery
*/
public ModifyReplicationGroupRequest withIpDiscovery(String ipDiscovery) {
setIpDiscovery(ipDiscovery);
return this;
}
/**
*
* The network type you choose when modifying a cluster, either ipv4
| ipv6
. IPv6 is
* supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances
* built on the Nitro system.
*
ipv4
| ipv6
. IPv6
* is supported for workloads using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all
* instances built on the Nitro system.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IpDiscovery
*/
public ModifyReplicationGroupRequest withIpDiscovery(IpDiscovery ipDiscovery) {
this.ipDiscovery = ipDiscovery.toString();
return this;
}
/**
*
* A flag that enables in-transit encryption when set to true. If you are enabling in-transit encryption for an
* existing cluster, you must also set TransitEncryptionMode
to preferred
.
*
TransitEncryptionMode
to preferred
.
*/
public void setTransitEncryptionEnabled(Boolean transitEncryptionEnabled) {
this.transitEncryptionEnabled = transitEncryptionEnabled;
}
/**
*
* A flag that enables in-transit encryption when set to true. If you are enabling in-transit encryption for an
* existing cluster, you must also set TransitEncryptionMode
to preferred
.
*
TransitEncryptionMode
to preferred
.
*/
public Boolean getTransitEncryptionEnabled() {
return this.transitEncryptionEnabled;
}
/**
*
* A flag that enables in-transit encryption when set to true. If you are enabling in-transit encryption for an
* existing cluster, you must also set TransitEncryptionMode
to preferred
.
*
TransitEncryptionMode
to preferred
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModifyReplicationGroupRequest withTransitEncryptionEnabled(Boolean transitEncryptionEnabled) {
setTransitEncryptionEnabled(transitEncryptionEnabled);
return this;
}
/**
*
* A flag that enables in-transit encryption when set to true. If you are enabling in-transit encryption for an
* existing cluster, you must also set TransitEncryptionMode
to preferred
.
*
TransitEncryptionMode
to preferred
.
*/
public Boolean isTransitEncryptionEnabled() {
return this.transitEncryptionEnabled;
}
/**
* * A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. *
*
* You must set TransitEncryptionEnabled
to true
, for your existing cluster, and set
* TransitEncryptionMode
to preferred
in the same request to allow both encrypted and
* unencrypted connections at the same time. Once you migrate all your Redis clients to use encrypted connections
* you can set the value to required
to allow encrypted connections only.
*
* Setting TransitEncryptionMode
to required
is a two-step process that requires you to
* first set the TransitEncryptionMode
to preferred
, after that you can set
* TransitEncryptionMode
to required
.
*
* You must set TransitEncryptionEnabled
to true
, for your existing cluster, and
* set TransitEncryptionMode
to preferred
in the same request to allow both
* encrypted and unencrypted connections at the same time. Once you migrate all your Redis clients to use
* encrypted connections you can set the value to required
to allow encrypted connections only.
*
* Setting TransitEncryptionMode
to required
is a two-step process that requires
* you to first set the TransitEncryptionMode
to preferred
, after that you can set
* TransitEncryptionMode
to required
.
* @see TransitEncryptionMode
*/
public void setTransitEncryptionMode(String transitEncryptionMode) {
this.transitEncryptionMode = transitEncryptionMode;
}
/**
*
* A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. *
*
* You must set TransitEncryptionEnabled
to true
, for your existing cluster, and set
* TransitEncryptionMode
to preferred
in the same request to allow both encrypted and
* unencrypted connections at the same time. Once you migrate all your Redis clients to use encrypted connections
* you can set the value to required
to allow encrypted connections only.
*
* Setting TransitEncryptionMode
to required
is a two-step process that requires you to
* first set the TransitEncryptionMode
to preferred
, after that you can set
* TransitEncryptionMode
to required
.
*
* You must set TransitEncryptionEnabled
to true
, for your existing cluster, and
* set TransitEncryptionMode
to preferred
in the same request to allow both
* encrypted and unencrypted connections at the same time. Once you migrate all your Redis clients to use
* encrypted connections you can set the value to required
to allow encrypted connections only.
*
* Setting TransitEncryptionMode
to required
is a two-step process that requires
* you to first set the TransitEncryptionMode
to preferred
, after that you can set
* TransitEncryptionMode
to required
.
* @see TransitEncryptionMode
*/
public String getTransitEncryptionMode() {
return this.transitEncryptionMode;
}
/**
*
* A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. *
*
* You must set TransitEncryptionEnabled
to true
, for your existing cluster, and set
* TransitEncryptionMode
to preferred
in the same request to allow both encrypted and
* unencrypted connections at the same time. Once you migrate all your Redis clients to use encrypted connections
* you can set the value to required
to allow encrypted connections only.
*
* Setting TransitEncryptionMode
to required
is a two-step process that requires you to
* first set the TransitEncryptionMode
to preferred
, after that you can set
* TransitEncryptionMode
to required
.
*
* You must set TransitEncryptionEnabled
to true
, for your existing cluster, and
* set TransitEncryptionMode
to preferred
in the same request to allow both
* encrypted and unencrypted connections at the same time. Once you migrate all your Redis clients to use
* encrypted connections you can set the value to required
to allow encrypted connections only.
*
* Setting TransitEncryptionMode
to required
is a two-step process that requires
* you to first set the TransitEncryptionMode
to preferred
, after that you can set
* TransitEncryptionMode
to required
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TransitEncryptionMode
*/
public ModifyReplicationGroupRequest withTransitEncryptionMode(String transitEncryptionMode) {
setTransitEncryptionMode(transitEncryptionMode);
return this;
}
/**
*
* A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. *
*
* You must set TransitEncryptionEnabled
to true
, for your existing cluster, and set
* TransitEncryptionMode
to preferred
in the same request to allow both encrypted and
* unencrypted connections at the same time. Once you migrate all your Redis clients to use encrypted connections
* you can set the value to required
to allow encrypted connections only.
*
* Setting TransitEncryptionMode
to required
is a two-step process that requires you to
* first set the TransitEncryptionMode
to preferred
, after that you can set
* TransitEncryptionMode
to required
.
*
* You must set TransitEncryptionEnabled
to true
, for your existing cluster, and
* set TransitEncryptionMode
to preferred
in the same request to allow both
* encrypted and unencrypted connections at the same time. Once you migrate all your Redis clients to use
* encrypted connections you can set the value to required
to allow encrypted connections only.
*
* Setting TransitEncryptionMode
to required
is a two-step process that requires
* you to first set the TransitEncryptionMode
to preferred
, after that you can set
* TransitEncryptionMode
to required
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TransitEncryptionMode
*/
public ModifyReplicationGroupRequest withTransitEncryptionMode(TransitEncryptionMode transitEncryptionMode) {
this.transitEncryptionMode = transitEncryptionMode.toString();
return this;
}
/**
*
* Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to * Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and cluster mode * disabled. After you migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode * configuration and set the cluster mode to Enabled. *
* * @param clusterMode * Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode * to Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and * cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you can then * complete cluster mode configuration and set the cluster mode to Enabled. * @see ClusterMode */ public void setClusterMode(String clusterMode) { this.clusterMode = clusterMode; } /** ** Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to * Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and cluster mode * disabled. After you migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode * configuration and set the cluster mode to Enabled. *
* * @return Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode * to Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and * cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you can then * complete cluster mode configuration and set the cluster mode to Enabled. * @see ClusterMode */ public String getClusterMode() { return this.clusterMode; } /** ** Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to * Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and cluster mode * disabled. After you migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode * configuration and set the cluster mode to Enabled. *
* * @param clusterMode * Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode * to Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and * cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you can then * complete cluster mode configuration and set the cluster mode to Enabled. * @return Returns a reference to this object so that method calls can be chained together. * @see ClusterMode */ public ModifyReplicationGroupRequest withClusterMode(String clusterMode) { setClusterMode(clusterMode); return this; } /** ** Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode to * Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and cluster mode * disabled. After you migrate all Redis clients to use cluster mode enabled, you can then complete cluster mode * configuration and set the cluster mode to Enabled. *
* * @param clusterMode * Enabled or Disabled. To modify cluster mode from Disabled to Enabled, you must first set the cluster mode * to Compatible. Compatible mode allows your Redis clients to connect using both cluster mode enabled and * cluster mode disabled. After you migrate all Redis clients to use cluster mode enabled, you can then * complete cluster mode configuration and set the cluster mode to Enabled. * @return Returns a reference to this object so that method calls can be chained together. * @see ClusterMode */ public ModifyReplicationGroupRequest withClusterMode(ClusterMode clusterMode) { this.clusterMode = clusterMode.toString(); 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 (getReplicationGroupId() != null) sb.append("ReplicationGroupId: ").append(getReplicationGroupId()).append(","); if (getReplicationGroupDescription() != null) sb.append("ReplicationGroupDescription: ").append(getReplicationGroupDescription()).append(","); if (getPrimaryClusterId() != null) sb.append("PrimaryClusterId: ").append(getPrimaryClusterId()).append(","); if (getSnapshottingClusterId() != null) sb.append("SnapshottingClusterId: ").append(getSnapshottingClusterId()).append(","); if (getAutomaticFailoverEnabled() != null) sb.append("AutomaticFailoverEnabled: ").append(getAutomaticFailoverEnabled()).append(","); if (getMultiAZEnabled() != null) sb.append("MultiAZEnabled: ").append(getMultiAZEnabled()).append(","); if (getNodeGroupId() != null) sb.append("NodeGroupId: ").append(getNodeGroupId()).append(","); if (getCacheSecurityGroupNames() != null) sb.append("CacheSecurityGroupNames: ").append(getCacheSecurityGroupNames()).append(","); if (getSecurityGroupIds() != null) sb.append("SecurityGroupIds: ").append(getSecurityGroupIds()).append(","); if (getPreferredMaintenanceWindow() != null) sb.append("PreferredMaintenanceWindow: ").append(getPreferredMaintenanceWindow()).append(","); if (getNotificationTopicArn() != null) sb.append("NotificationTopicArn: ").append(getNotificationTopicArn()).append(","); if (getCacheParameterGroupName() != null) sb.append("CacheParameterGroupName: ").append(getCacheParameterGroupName()).append(","); if (getNotificationTopicStatus() != null) sb.append("NotificationTopicStatus: ").append(getNotificationTopicStatus()).append(","); if (getApplyImmediately() != null) sb.append("ApplyImmediately: ").append(getApplyImmediately()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getAutoMinorVersionUpgrade() != null) sb.append("AutoMinorVersionUpgrade: ").append(getAutoMinorVersionUpgrade()).append(","); if (getSnapshotRetentionLimit() != null) sb.append("SnapshotRetentionLimit: ").append(getSnapshotRetentionLimit()).append(","); if (getSnapshotWindow() != null) sb.append("SnapshotWindow: ").append(getSnapshotWindow()).append(","); if (getCacheNodeType() != null) sb.append("CacheNodeType: ").append(getCacheNodeType()).append(","); if (getAuthToken() != null) sb.append("AuthToken: ").append(getAuthToken()).append(","); if (getAuthTokenUpdateStrategy() != null) sb.append("AuthTokenUpdateStrategy: ").append(getAuthTokenUpdateStrategy()).append(","); if (getUserGroupIdsToAdd() != null) sb.append("UserGroupIdsToAdd: ").append(getUserGroupIdsToAdd()).append(","); if (getUserGroupIdsToRemove() != null) sb.append("UserGroupIdsToRemove: ").append(getUserGroupIdsToRemove()).append(","); if (getRemoveUserGroups() != null) sb.append("RemoveUserGroups: ").append(getRemoveUserGroups()).append(","); if (getLogDeliveryConfigurations() != null) sb.append("LogDeliveryConfigurations: ").append(getLogDeliveryConfigurations()).append(","); if (getIpDiscovery() != null) sb.append("IpDiscovery: ").append(getIpDiscovery()).append(","); if (getTransitEncryptionEnabled() != null) sb.append("TransitEncryptionEnabled: ").append(getTransitEncryptionEnabled()).append(","); if (getTransitEncryptionMode() != null) sb.append("TransitEncryptionMode: ").append(getTransitEncryptionMode()).append(","); if (getClusterMode() != null) sb.append("ClusterMode: ").append(getClusterMode()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyReplicationGroupRequest == false) return false; ModifyReplicationGroupRequest other = (ModifyReplicationGroupRequest) obj; if (other.getReplicationGroupId() == null ^ this.getReplicationGroupId() == null) return false; if (other.getReplicationGroupId() != null && other.getReplicationGroupId().equals(this.getReplicationGroupId()) == false) return false; if (other.getReplicationGroupDescription() == null ^ this.getReplicationGroupDescription() == null) return false; if (other.getReplicationGroupDescription() != null && other.getReplicationGroupDescription().equals(this.getReplicationGroupDescription()) == false) return false; if (other.getPrimaryClusterId() == null ^ this.getPrimaryClusterId() == null) return false; if (other.getPrimaryClusterId() != null && other.getPrimaryClusterId().equals(this.getPrimaryClusterId()) == false) return false; if (other.getSnapshottingClusterId() == null ^ this.getSnapshottingClusterId() == null) return false; if (other.getSnapshottingClusterId() != null && other.getSnapshottingClusterId().equals(this.getSnapshottingClusterId()) == false) return false; if (other.getAutomaticFailoverEnabled() == null ^ this.getAutomaticFailoverEnabled() == null) return false; if (other.getAutomaticFailoverEnabled() != null && other.getAutomaticFailoverEnabled().equals(this.getAutomaticFailoverEnabled()) == false) return false; if (other.getMultiAZEnabled() == null ^ this.getMultiAZEnabled() == null) return false; if (other.getMultiAZEnabled() != null && other.getMultiAZEnabled().equals(this.getMultiAZEnabled()) == false) return false; if (other.getNodeGroupId() == null ^ this.getNodeGroupId() == null) return false; if (other.getNodeGroupId() != null && other.getNodeGroupId().equals(this.getNodeGroupId()) == false) return false; if (other.getCacheSecurityGroupNames() == null ^ this.getCacheSecurityGroupNames() == null) return false; if (other.getCacheSecurityGroupNames() != null && other.getCacheSecurityGroupNames().equals(this.getCacheSecurityGroupNames()) == false) return false; if (other.getSecurityGroupIds() == null ^ this.getSecurityGroupIds() == null) return false; if (other.getSecurityGroupIds() != null && other.getSecurityGroupIds().equals(this.getSecurityGroupIds()) == 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.getNotificationTopicArn() == null ^ this.getNotificationTopicArn() == null) return false; if (other.getNotificationTopicArn() != null && other.getNotificationTopicArn().equals(this.getNotificationTopicArn()) == false) return false; if (other.getCacheParameterGroupName() == null ^ this.getCacheParameterGroupName() == null) return false; if (other.getCacheParameterGroupName() != null && other.getCacheParameterGroupName().equals(this.getCacheParameterGroupName()) == false) return false; if (other.getNotificationTopicStatus() == null ^ this.getNotificationTopicStatus() == null) return false; if (other.getNotificationTopicStatus() != null && other.getNotificationTopicStatus().equals(this.getNotificationTopicStatus()) == 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.getEngineVersion() == null ^ this.getEngineVersion() == null) return false; if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == 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.getSnapshotRetentionLimit() == null ^ this.getSnapshotRetentionLimit() == null) return false; if (other.getSnapshotRetentionLimit() != null && other.getSnapshotRetentionLimit().equals(this.getSnapshotRetentionLimit()) == false) return false; if (other.getSnapshotWindow() == null ^ this.getSnapshotWindow() == null) return false; if (other.getSnapshotWindow() != null && other.getSnapshotWindow().equals(this.getSnapshotWindow()) == false) return false; if (other.getCacheNodeType() == null ^ this.getCacheNodeType() == null) return false; if (other.getCacheNodeType() != null && other.getCacheNodeType().equals(this.getCacheNodeType()) == false) return false; if (other.getAuthToken() == null ^ this.getAuthToken() == null) return false; if (other.getAuthToken() != null && other.getAuthToken().equals(this.getAuthToken()) == false) return false; if (other.getAuthTokenUpdateStrategy() == null ^ this.getAuthTokenUpdateStrategy() == null) return false; if (other.getAuthTokenUpdateStrategy() != null && other.getAuthTokenUpdateStrategy().equals(this.getAuthTokenUpdateStrategy()) == false) return false; if (other.getUserGroupIdsToAdd() == null ^ this.getUserGroupIdsToAdd() == null) return false; if (other.getUserGroupIdsToAdd() != null && other.getUserGroupIdsToAdd().equals(this.getUserGroupIdsToAdd()) == false) return false; if (other.getUserGroupIdsToRemove() == null ^ this.getUserGroupIdsToRemove() == null) return false; if (other.getUserGroupIdsToRemove() != null && other.getUserGroupIdsToRemove().equals(this.getUserGroupIdsToRemove()) == false) return false; if (other.getRemoveUserGroups() == null ^ this.getRemoveUserGroups() == null) return false; if (other.getRemoveUserGroups() != null && other.getRemoveUserGroups().equals(this.getRemoveUserGroups()) == false) return false; if (other.getLogDeliveryConfigurations() == null ^ this.getLogDeliveryConfigurations() == null) return false; if (other.getLogDeliveryConfigurations() != null && other.getLogDeliveryConfigurations().equals(this.getLogDeliveryConfigurations()) == false) return false; if (other.getIpDiscovery() == null ^ this.getIpDiscovery() == null) return false; if (other.getIpDiscovery() != null && other.getIpDiscovery().equals(this.getIpDiscovery()) == false) return false; if (other.getTransitEncryptionEnabled() == null ^ this.getTransitEncryptionEnabled() == null) return false; if (other.getTransitEncryptionEnabled() != null && other.getTransitEncryptionEnabled().equals(this.getTransitEncryptionEnabled()) == false) return false; if (other.getTransitEncryptionMode() == null ^ this.getTransitEncryptionMode() == null) return false; if (other.getTransitEncryptionMode() != null && other.getTransitEncryptionMode().equals(this.getTransitEncryptionMode()) == false) return false; if (other.getClusterMode() == null ^ this.getClusterMode() == null) return false; if (other.getClusterMode() != null && other.getClusterMode().equals(this.getClusterMode()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReplicationGroupId() == null) ? 0 : getReplicationGroupId().hashCode()); hashCode = prime * hashCode + ((getReplicationGroupDescription() == null) ? 0 : getReplicationGroupDescription().hashCode()); hashCode = prime * hashCode + ((getPrimaryClusterId() == null) ? 0 : getPrimaryClusterId().hashCode()); hashCode = prime * hashCode + ((getSnapshottingClusterId() == null) ? 0 : getSnapshottingClusterId().hashCode()); hashCode = prime * hashCode + ((getAutomaticFailoverEnabled() == null) ? 0 : getAutomaticFailoverEnabled().hashCode()); hashCode = prime * hashCode + ((getMultiAZEnabled() == null) ? 0 : getMultiAZEnabled().hashCode()); hashCode = prime * hashCode + ((getNodeGroupId() == null) ? 0 : getNodeGroupId().hashCode()); hashCode = prime * hashCode + ((getCacheSecurityGroupNames() == null) ? 0 : getCacheSecurityGroupNames().hashCode()); hashCode = prime * hashCode + ((getSecurityGroupIds() == null) ? 0 : getSecurityGroupIds().hashCode()); hashCode = prime * hashCode + ((getPreferredMaintenanceWindow() == null) ? 0 : getPreferredMaintenanceWindow().hashCode()); hashCode = prime * hashCode + ((getNotificationTopicArn() == null) ? 0 : getNotificationTopicArn().hashCode()); hashCode = prime * hashCode + ((getCacheParameterGroupName() == null) ? 0 : getCacheParameterGroupName().hashCode()); hashCode = prime * hashCode + ((getNotificationTopicStatus() == null) ? 0 : getNotificationTopicStatus().hashCode()); hashCode = prime * hashCode + ((getApplyImmediately() == null) ? 0 : getApplyImmediately().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getAutoMinorVersionUpgrade() == null) ? 0 : getAutoMinorVersionUpgrade().hashCode()); hashCode = prime * hashCode + ((getSnapshotRetentionLimit() == null) ? 0 : getSnapshotRetentionLimit().hashCode()); hashCode = prime * hashCode + ((getSnapshotWindow() == null) ? 0 : getSnapshotWindow().hashCode()); hashCode = prime * hashCode + ((getCacheNodeType() == null) ? 0 : getCacheNodeType().hashCode()); hashCode = prime * hashCode + ((getAuthToken() == null) ? 0 : getAuthToken().hashCode()); hashCode = prime * hashCode + ((getAuthTokenUpdateStrategy() == null) ? 0 : getAuthTokenUpdateStrategy().hashCode()); hashCode = prime * hashCode + ((getUserGroupIdsToAdd() == null) ? 0 : getUserGroupIdsToAdd().hashCode()); hashCode = prime * hashCode + ((getUserGroupIdsToRemove() == null) ? 0 : getUserGroupIdsToRemove().hashCode()); hashCode = prime * hashCode + ((getRemoveUserGroups() == null) ? 0 : getRemoveUserGroups().hashCode()); hashCode = prime * hashCode + ((getLogDeliveryConfigurations() == null) ? 0 : getLogDeliveryConfigurations().hashCode()); hashCode = prime * hashCode + ((getIpDiscovery() == null) ? 0 : getIpDiscovery().hashCode()); hashCode = prime * hashCode + ((getTransitEncryptionEnabled() == null) ? 0 : getTransitEncryptionEnabled().hashCode()); hashCode = prime * hashCode + ((getTransitEncryptionMode() == null) ? 0 : getTransitEncryptionMode().hashCode()); hashCode = prime * hashCode + ((getClusterMode() == null) ? 0 : getClusterMode().hashCode()); return hashCode; } @Override public ModifyReplicationGroupRequest clone() { return (ModifyReplicationGroupRequest) super.clone(); } }