@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof DecreaseNodeGroupsInGlobalReplicationGroupRequest == false)
            return false;
        DecreaseNodeGroupsInGlobalReplicationGroupRequest other = (DecreaseNodeGroupsInGlobalReplicationGroupRequest) obj;
        if (other.getGlobalReplicationGroupId() == null ^ this.getGlobalReplicationGroupId() == null)
            return false;
        if (other.getGlobalReplicationGroupId() != null && other.getGlobalReplicationGroupId().equals(this.getGlobalReplicationGroupId()) == false)
            return false;
        if (other.getNodeGroupCount() == null ^ this.getNodeGroupCount() == null)
            return false;
        if (other.getNodeGroupCount() != null && other.getNodeGroupCount().equals(this.getNodeGroupCount()) == false)
            return false;
        if (other.getGlobalNodeGroupsToRemove() == null ^ this.getGlobalNodeGroupsToRemove() == null)
            return false;
        if (other.getGlobalNodeGroupsToRemove() != null && other.getGlobalNodeGroupsToRemove().equals(this.getGlobalNodeGroupsToRemove()) == false)
            return false;
        if (other.getGlobalNodeGroupsToRetain() == null ^ this.getGlobalNodeGroupsToRetain() == null)
            return false;
        if (other.getGlobalNodeGroupsToRetain() != null && other.getGlobalNodeGroupsToRetain().equals(this.getGlobalNodeGroupsToRetain()) == false)
            return false;
        if (other.getApplyImmediately() == null ^ this.getApplyImmediately() == null)
            return false;
        if (other.getApplyImmediately() != null && other.getApplyImmediately().equals(this.getApplyImmediately()) == false)
            return false;
        return true;
    }
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()
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/DecreaseNodeGroupsInGlobalReplicationGroupRequest.java