com.amazonaws.services.elasticache.model.GlobalReplicationGroup Maven / Gradle / Ivy
Show all versions of aws-java-sdk-elasticache Show documentation
/*
* Copyright 2019-2024 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;
/**
*
* Consists of a primary cluster that accepts writes and an associated secondary cluster that resides in a different
* Amazon region. The secondary cluster accepts only reads. The primary cluster automatically replicates updates to the
* secondary cluster.
*
*
* -
*
* The GlobalReplicationGroupIdSuffix represents the name of the Global datastore, which is what you use to
* associate a secondary cluster.
*
*
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GlobalReplicationGroup implements Serializable, Cloneable {
/**
*
* The name of the Global datastore
*
*/
private String globalReplicationGroupId;
/**
*
* The optional description of the Global datastore
*
*/
private String globalReplicationGroupDescription;
/**
*
* The status of the Global datastore
*
*/
private String status;
/**
*
* The cache node type of the Global datastore
*
*/
private String cacheNodeType;
/**
*
* The Elasticache engine. For Redis OSS only.
*
*/
private String engine;
/**
*
* The Elasticache (Redis OSS) engine version.
*
*/
private String engineVersion;
/**
*
* The replication groups that comprise the Global datastore.
*
*/
private com.amazonaws.internal.SdkInternalList members;
/**
*
* A flag that indicates whether the Global datastore is cluster enabled.
*
*/
private Boolean clusterEnabled;
/**
*
* Indicates the slot configuration and global identifier for each slice group.
*
*/
private com.amazonaws.internal.SdkInternalList globalNodeGroups;
/**
*
* A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
*
*
* Default: false
*
*/
private Boolean authTokenEnabled;
/**
*
* A flag that enables in-transit encryption when set to true.
*
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
* 3.2.6
, 4.x
or later.
*
*/
private Boolean transitEncryptionEnabled;
/**
*
* A flag that enables encryption at rest when set to true
.
*
*
* You cannot modify the value of AtRestEncryptionEnabled
after the replication group is created. To
* enable encryption at rest on a replication group you must set AtRestEncryptionEnabled
to
* true
when you create the replication group.
*
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
* 3.2.6
, 4.x
or later.
*
*/
private Boolean atRestEncryptionEnabled;
/**
*
* The ARN (Amazon Resource Name) of the global replication group.
*
*/
private String aRN;
/**
*
* The name of the Global datastore
*
*
* @param globalReplicationGroupId
* The name of the Global datastore
*/
public void setGlobalReplicationGroupId(String globalReplicationGroupId) {
this.globalReplicationGroupId = globalReplicationGroupId;
}
/**
*
* The name of the Global datastore
*
*
* @return The name of the Global datastore
*/
public String getGlobalReplicationGroupId() {
return this.globalReplicationGroupId;
}
/**
*
* The name of the Global datastore
*
*
* @param globalReplicationGroupId
* The name of the Global datastore
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withGlobalReplicationGroupId(String globalReplicationGroupId) {
setGlobalReplicationGroupId(globalReplicationGroupId);
return this;
}
/**
*
* The optional description of the Global datastore
*
*
* @param globalReplicationGroupDescription
* The optional description of the Global datastore
*/
public void setGlobalReplicationGroupDescription(String globalReplicationGroupDescription) {
this.globalReplicationGroupDescription = globalReplicationGroupDescription;
}
/**
*
* The optional description of the Global datastore
*
*
* @return The optional description of the Global datastore
*/
public String getGlobalReplicationGroupDescription() {
return this.globalReplicationGroupDescription;
}
/**
*
* The optional description of the Global datastore
*
*
* @param globalReplicationGroupDescription
* The optional description of the Global datastore
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withGlobalReplicationGroupDescription(String globalReplicationGroupDescription) {
setGlobalReplicationGroupDescription(globalReplicationGroupDescription);
return this;
}
/**
*
* The status of the Global datastore
*
*
* @param status
* The status of the Global datastore
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the Global datastore
*
*
* @return The status of the Global datastore
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the Global datastore
*
*
* @param status
* The status of the Global datastore
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The cache node type of the Global datastore
*
*
* @param cacheNodeType
* The cache node type of the Global datastore
*/
public void setCacheNodeType(String cacheNodeType) {
this.cacheNodeType = cacheNodeType;
}
/**
*
* The cache node type of the Global datastore
*
*
* @return The cache node type of the Global datastore
*/
public String getCacheNodeType() {
return this.cacheNodeType;
}
/**
*
* The cache node type of the Global datastore
*
*
* @param cacheNodeType
* The cache node type of the Global datastore
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withCacheNodeType(String cacheNodeType) {
setCacheNodeType(cacheNodeType);
return this;
}
/**
*
* The Elasticache engine. For Redis OSS only.
*
*
* @param engine
* The Elasticache engine. For Redis OSS only.
*/
public void setEngine(String engine) {
this.engine = engine;
}
/**
*
* The Elasticache engine. For Redis OSS only.
*
*
* @return The Elasticache engine. For Redis OSS only.
*/
public String getEngine() {
return this.engine;
}
/**
*
* The Elasticache engine. For Redis OSS only.
*
*
* @param engine
* The Elasticache engine. For Redis OSS only.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withEngine(String engine) {
setEngine(engine);
return this;
}
/**
*
* The Elasticache (Redis OSS) engine version.
*
*
* @param engineVersion
* The Elasticache (Redis OSS) engine version.
*/
public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
}
/**
*
* The Elasticache (Redis OSS) engine version.
*
*
* @return The Elasticache (Redis OSS) engine version.
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
*
* The Elasticache (Redis OSS) engine version.
*
*
* @param engineVersion
* The Elasticache (Redis OSS) engine version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withEngineVersion(String engineVersion) {
setEngineVersion(engineVersion);
return this;
}
/**
*
* The replication groups that comprise the Global datastore.
*
*
* @return The replication groups that comprise the Global datastore.
*/
public java.util.List getMembers() {
if (members == null) {
members = new com.amazonaws.internal.SdkInternalList();
}
return members;
}
/**
*
* The replication groups that comprise the Global datastore.
*
*
* @param members
* The replication groups that comprise the Global datastore.
*/
public void setMembers(java.util.Collection members) {
if (members == null) {
this.members = null;
return;
}
this.members = new com.amazonaws.internal.SdkInternalList(members);
}
/**
*
* The replication groups that comprise the Global datastore.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setMembers(java.util.Collection)} or {@link #withMembers(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param members
* The replication groups that comprise the Global datastore.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withMembers(GlobalReplicationGroupMember... members) {
if (this.members == null) {
setMembers(new com.amazonaws.internal.SdkInternalList(members.length));
}
for (GlobalReplicationGroupMember ele : members) {
this.members.add(ele);
}
return this;
}
/**
*
* The replication groups that comprise the Global datastore.
*
*
* @param members
* The replication groups that comprise the Global datastore.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withMembers(java.util.Collection members) {
setMembers(members);
return this;
}
/**
*
* A flag that indicates whether the Global datastore is cluster enabled.
*
*
* @param clusterEnabled
* A flag that indicates whether the Global datastore is cluster enabled.
*/
public void setClusterEnabled(Boolean clusterEnabled) {
this.clusterEnabled = clusterEnabled;
}
/**
*
* A flag that indicates whether the Global datastore is cluster enabled.
*
*
* @return A flag that indicates whether the Global datastore is cluster enabled.
*/
public Boolean getClusterEnabled() {
return this.clusterEnabled;
}
/**
*
* A flag that indicates whether the Global datastore is cluster enabled.
*
*
* @param clusterEnabled
* A flag that indicates whether the Global datastore is cluster enabled.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withClusterEnabled(Boolean clusterEnabled) {
setClusterEnabled(clusterEnabled);
return this;
}
/**
*
* A flag that indicates whether the Global datastore is cluster enabled.
*
*
* @return A flag that indicates whether the Global datastore is cluster enabled.
*/
public Boolean isClusterEnabled() {
return this.clusterEnabled;
}
/**
*
* Indicates the slot configuration and global identifier for each slice group.
*
*
* @return Indicates the slot configuration and global identifier for each slice group.
*/
public java.util.List getGlobalNodeGroups() {
if (globalNodeGroups == null) {
globalNodeGroups = new com.amazonaws.internal.SdkInternalList();
}
return globalNodeGroups;
}
/**
*
* Indicates the slot configuration and global identifier for each slice group.
*
*
* @param globalNodeGroups
* Indicates the slot configuration and global identifier for each slice group.
*/
public void setGlobalNodeGroups(java.util.Collection globalNodeGroups) {
if (globalNodeGroups == null) {
this.globalNodeGroups = null;
return;
}
this.globalNodeGroups = new com.amazonaws.internal.SdkInternalList(globalNodeGroups);
}
/**
*
* Indicates the slot configuration and global identifier for each slice group.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setGlobalNodeGroups(java.util.Collection)} or {@link #withGlobalNodeGroups(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param globalNodeGroups
* Indicates the slot configuration and global identifier for each slice group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withGlobalNodeGroups(GlobalNodeGroup... globalNodeGroups) {
if (this.globalNodeGroups == null) {
setGlobalNodeGroups(new com.amazonaws.internal.SdkInternalList(globalNodeGroups.length));
}
for (GlobalNodeGroup ele : globalNodeGroups) {
this.globalNodeGroups.add(ele);
}
return this;
}
/**
*
* Indicates the slot configuration and global identifier for each slice group.
*
*
* @param globalNodeGroups
* Indicates the slot configuration and global identifier for each slice group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withGlobalNodeGroups(java.util.Collection globalNodeGroups) {
setGlobalNodeGroups(globalNodeGroups);
return this;
}
/**
*
* A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
*
*
* Default: false
*
*
* @param authTokenEnabled
* A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
*
* Default: false
*/
public void setAuthTokenEnabled(Boolean authTokenEnabled) {
this.authTokenEnabled = authTokenEnabled;
}
/**
*
* A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
*
*
* Default: false
*
*
* @return A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
*
* Default: false
*/
public Boolean getAuthTokenEnabled() {
return this.authTokenEnabled;
}
/**
*
* A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
*
*
* Default: false
*
*
* @param authTokenEnabled
* A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
*
* Default: false
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withAuthTokenEnabled(Boolean authTokenEnabled) {
setAuthTokenEnabled(authTokenEnabled);
return this;
}
/**
*
* A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
*
*
* Default: false
*
*
* @return A flag that enables using an AuthToken
(password) when issuing Redis OSS commands.
*
* Default: false
*/
public Boolean isAuthTokenEnabled() {
return this.authTokenEnabled;
}
/**
*
* A flag that enables in-transit encryption when set to true.
*
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
* 3.2.6
, 4.x
or later.
*
*
* @param transitEncryptionEnabled
* A flag that enables in-transit encryption when set to true.
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
* 3.2.6
, 4.x
or later.
*/
public void setTransitEncryptionEnabled(Boolean transitEncryptionEnabled) {
this.transitEncryptionEnabled = transitEncryptionEnabled;
}
/**
*
* A flag that enables in-transit encryption when set to true.
*
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
* 3.2.6
, 4.x
or later.
*
*
* @return A flag that enables in-transit encryption when set to true.
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS
* version 3.2.6
, 4.x
or later.
*/
public Boolean getTransitEncryptionEnabled() {
return this.transitEncryptionEnabled;
}
/**
*
* A flag that enables in-transit encryption when set to true.
*
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
* 3.2.6
, 4.x
or later.
*
*
* @param transitEncryptionEnabled
* A flag that enables in-transit encryption when set to true.
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
* 3.2.6
, 4.x
or later.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withTransitEncryptionEnabled(Boolean transitEncryptionEnabled) {
setTransitEncryptionEnabled(transitEncryptionEnabled);
return this;
}
/**
*
* A flag that enables in-transit encryption when set to true.
*
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
* 3.2.6
, 4.x
or later.
*
*
* @return A flag that enables in-transit encryption when set to true.
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS
* version 3.2.6
, 4.x
or later.
*/
public Boolean isTransitEncryptionEnabled() {
return this.transitEncryptionEnabled;
}
/**
*
* A flag that enables encryption at rest when set to true
.
*
*
* You cannot modify the value of AtRestEncryptionEnabled
after the replication group is created. To
* enable encryption at rest on a replication group you must set AtRestEncryptionEnabled
to
* true
when you create the replication group.
*
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
* 3.2.6
, 4.x
or later.
*
*
* @param atRestEncryptionEnabled
* A flag that enables encryption at rest when set to true
.
*
* You cannot modify the value of AtRestEncryptionEnabled
after the replication group is
* created. To enable encryption at rest on a replication group you must set
* AtRestEncryptionEnabled
to true
when you create the replication group.
*
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
* 3.2.6
, 4.x
or later.
*/
public void setAtRestEncryptionEnabled(Boolean atRestEncryptionEnabled) {
this.atRestEncryptionEnabled = atRestEncryptionEnabled;
}
/**
*
* A flag that enables encryption at rest when set to true
.
*
*
* You cannot modify the value of AtRestEncryptionEnabled
after the replication group is created. To
* enable encryption at rest on a replication group you must set AtRestEncryptionEnabled
to
* true
when you create the replication group.
*
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
* 3.2.6
, 4.x
or later.
*
*
* @return A flag that enables encryption at rest when set to true
.
*
* You cannot modify the value of AtRestEncryptionEnabled
after the replication group is
* created. To enable encryption at rest on a replication group you must set
* AtRestEncryptionEnabled
to true
when you create the replication group.
*
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS
* version 3.2.6
, 4.x
or later.
*/
public Boolean getAtRestEncryptionEnabled() {
return this.atRestEncryptionEnabled;
}
/**
*
* A flag that enables encryption at rest when set to true
.
*
*
* You cannot modify the value of AtRestEncryptionEnabled
after the replication group is created. To
* enable encryption at rest on a replication group you must set AtRestEncryptionEnabled
to
* true
when you create the replication group.
*
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
* 3.2.6
, 4.x
or later.
*
*
* @param atRestEncryptionEnabled
* A flag that enables encryption at rest when set to true
.
*
* You cannot modify the value of AtRestEncryptionEnabled
after the replication group is
* created. To enable encryption at rest on a replication group you must set
* AtRestEncryptionEnabled
to true
when you create the replication group.
*
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
* 3.2.6
, 4.x
or later.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withAtRestEncryptionEnabled(Boolean atRestEncryptionEnabled) {
setAtRestEncryptionEnabled(atRestEncryptionEnabled);
return this;
}
/**
*
* A flag that enables encryption at rest when set to true
.
*
*
* You cannot modify the value of AtRestEncryptionEnabled
after the replication group is created. To
* enable encryption at rest on a replication group you must set AtRestEncryptionEnabled
to
* true
when you create the replication group.
*
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS version
* 3.2.6
, 4.x
or later.
*
*
* @return A flag that enables encryption at rest when set to true
.
*
* You cannot modify the value of AtRestEncryptionEnabled
after the replication group is
* created. To enable encryption at rest on a replication group you must set
* AtRestEncryptionEnabled
to true
when you create the replication group.
*
*
* Required: Only available when creating a replication group in an Amazon VPC using Redis OSS
* version 3.2.6
, 4.x
or later.
*/
public Boolean isAtRestEncryptionEnabled() {
return this.atRestEncryptionEnabled;
}
/**
*
* The ARN (Amazon Resource Name) of the global replication group.
*
*
* @param aRN
* The ARN (Amazon Resource Name) of the global replication group.
*/
public void setARN(String aRN) {
this.aRN = aRN;
}
/**
*
* The ARN (Amazon Resource Name) of the global replication group.
*
*
* @return The ARN (Amazon Resource Name) of the global replication group.
*/
public String getARN() {
return this.aRN;
}
/**
*
* The ARN (Amazon Resource Name) of the global replication group.
*
*
* @param aRN
* The ARN (Amazon Resource Name) of the global replication group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GlobalReplicationGroup withARN(String aRN) {
setARN(aRN);
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 (getGlobalReplicationGroupId() != null)
sb.append("GlobalReplicationGroupId: ").append(getGlobalReplicationGroupId()).append(",");
if (getGlobalReplicationGroupDescription() != null)
sb.append("GlobalReplicationGroupDescription: ").append(getGlobalReplicationGroupDescription()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getCacheNodeType() != null)
sb.append("CacheNodeType: ").append(getCacheNodeType()).append(",");
if (getEngine() != null)
sb.append("Engine: ").append(getEngine()).append(",");
if (getEngineVersion() != null)
sb.append("EngineVersion: ").append(getEngineVersion()).append(",");
if (getMembers() != null)
sb.append("Members: ").append(getMembers()).append(",");
if (getClusterEnabled() != null)
sb.append("ClusterEnabled: ").append(getClusterEnabled()).append(",");
if (getGlobalNodeGroups() != null)
sb.append("GlobalNodeGroups: ").append(getGlobalNodeGroups()).append(",");
if (getAuthTokenEnabled() != null)
sb.append("AuthTokenEnabled: ").append(getAuthTokenEnabled()).append(",");
if (getTransitEncryptionEnabled() != null)
sb.append("TransitEncryptionEnabled: ").append(getTransitEncryptionEnabled()).append(",");
if (getAtRestEncryptionEnabled() != null)
sb.append("AtRestEncryptionEnabled: ").append(getAtRestEncryptionEnabled()).append(",");
if (getARN() != null)
sb.append("ARN: ").append(getARN());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GlobalReplicationGroup == false)
return false;
GlobalReplicationGroup other = (GlobalReplicationGroup) obj;
if (other.getGlobalReplicationGroupId() == null ^ this.getGlobalReplicationGroupId() == null)
return false;
if (other.getGlobalReplicationGroupId() != null && other.getGlobalReplicationGroupId().equals(this.getGlobalReplicationGroupId()) == false)
return false;
if (other.getGlobalReplicationGroupDescription() == null ^ this.getGlobalReplicationGroupDescription() == null)
return false;
if (other.getGlobalReplicationGroupDescription() != null
&& other.getGlobalReplicationGroupDescription().equals(this.getGlobalReplicationGroupDescription()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == 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.getEngine() == null ^ this.getEngine() == null)
return false;
if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == 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.getMembers() == null ^ this.getMembers() == null)
return false;
if (other.getMembers() != null && other.getMembers().equals(this.getMembers()) == false)
return false;
if (other.getClusterEnabled() == null ^ this.getClusterEnabled() == null)
return false;
if (other.getClusterEnabled() != null && other.getClusterEnabled().equals(this.getClusterEnabled()) == false)
return false;
if (other.getGlobalNodeGroups() == null ^ this.getGlobalNodeGroups() == null)
return false;
if (other.getGlobalNodeGroups() != null && other.getGlobalNodeGroups().equals(this.getGlobalNodeGroups()) == false)
return false;
if (other.getAuthTokenEnabled() == null ^ this.getAuthTokenEnabled() == null)
return false;
if (other.getAuthTokenEnabled() != null && other.getAuthTokenEnabled().equals(this.getAuthTokenEnabled()) == 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.getAtRestEncryptionEnabled() == null ^ this.getAtRestEncryptionEnabled() == null)
return false;
if (other.getAtRestEncryptionEnabled() != null && other.getAtRestEncryptionEnabled().equals(this.getAtRestEncryptionEnabled()) == false)
return false;
if (other.getARN() == null ^ this.getARN() == null)
return false;
if (other.getARN() != null && other.getARN().equals(this.getARN()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getGlobalReplicationGroupId() == null) ? 0 : getGlobalReplicationGroupId().hashCode());
hashCode = prime * hashCode + ((getGlobalReplicationGroupDescription() == null) ? 0 : getGlobalReplicationGroupDescription().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getCacheNodeType() == null) ? 0 : getCacheNodeType().hashCode());
hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode());
hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode());
hashCode = prime * hashCode + ((getMembers() == null) ? 0 : getMembers().hashCode());
hashCode = prime * hashCode + ((getClusterEnabled() == null) ? 0 : getClusterEnabled().hashCode());
hashCode = prime * hashCode + ((getGlobalNodeGroups() == null) ? 0 : getGlobalNodeGroups().hashCode());
hashCode = prime * hashCode + ((getAuthTokenEnabled() == null) ? 0 : getAuthTokenEnabled().hashCode());
hashCode = prime * hashCode + ((getTransitEncryptionEnabled() == null) ? 0 : getTransitEncryptionEnabled().hashCode());
hashCode = prime * hashCode + ((getAtRestEncryptionEnabled() == null) ? 0 : getAtRestEncryptionEnabled().hashCode());
hashCode = prime * hashCode + ((getARN() == null) ? 0 : getARN().hashCode());
return hashCode;
}
@Override
public GlobalReplicationGroup clone() {
try {
return (GlobalReplicationGroup) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}