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

        if (obj instanceof SecurityGroupRuleDescription == false)
            return false;
        SecurityGroupRuleDescription other = (SecurityGroupRuleDescription) obj;
        if (other.getIPV4Range() == null ^ this.getIPV4Range() == null)
            return false;
        if (other.getIPV4Range() != null && other.getIPV4Range().equals(this.getIPV4Range()) == false)
            return false;
        if (other.getIPV6Range() == null ^ this.getIPV6Range() == null)
            return false;
        if (other.getIPV6Range() != null && other.getIPV6Range().equals(this.getIPV6Range()) == false)
            return false;
        if (other.getPrefixListId() == null ^ this.getPrefixListId() == null)
            return false;
        if (other.getPrefixListId() != null && other.getPrefixListId().equals(this.getPrefixListId()) == false)
            return false;
        if (other.getProtocol() == null ^ this.getProtocol() == null)
            return false;
        if (other.getProtocol() != null && other.getProtocol().equals(this.getProtocol()) == false)
            return false;
        if (other.getFromPort() == null ^ this.getFromPort() == null)
            return false;
        if (other.getFromPort() != null && other.getFromPort().equals(this.getFromPort()) == false)
            return false;
        if (other.getToPort() == null ^ this.getToPort() == null)
            return false;
        if (other.getToPort() != null && other.getToPort().equals(this.getToPort()) == 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-fms/src/main/java/com/amazonaws/services/fms/model/SecurityGroupRuleDescription.java