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

        if (obj instanceof SwapEnvironmentCNAMEsRequest == false)
            return false;
        SwapEnvironmentCNAMEsRequest other = (SwapEnvironmentCNAMEsRequest) obj;
        if (other.getSourceEnvironmentId() == null ^ this.getSourceEnvironmentId() == null)
            return false;
        if (other.getSourceEnvironmentId() != null && other.getSourceEnvironmentId().equals(this.getSourceEnvironmentId()) == false)
            return false;
        if (other.getSourceEnvironmentName() == null ^ this.getSourceEnvironmentName() == null)
            return false;
        if (other.getSourceEnvironmentName() != null && other.getSourceEnvironmentName().equals(this.getSourceEnvironmentName()) == false)
            return false;
        if (other.getDestinationEnvironmentId() == null ^ this.getDestinationEnvironmentId() == null)
            return false;
        if (other.getDestinationEnvironmentId() != null && other.getDestinationEnvironmentId().equals(this.getDestinationEnvironmentId()) == false)
            return false;
        if (other.getDestinationEnvironmentName() == null ^ this.getDestinationEnvironmentName() == null)
            return false;
        if (other.getDestinationEnvironmentName() != null && other.getDestinationEnvironmentName().equals(this.getDestinationEnvironmentName()) == 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-elasticbeanstalk/src/main/java/com/amazonaws/services/elasticbeanstalk/model/SwapEnvironmentCNAMEsRequest.java