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

        if (obj instanceof DescribeAccessPolicyResult == false)
            return false;
        DescribeAccessPolicyResult other = (DescribeAccessPolicyResult) obj;
        if (other.getAccessPolicyId() == null ^ this.getAccessPolicyId() == null)
            return false;
        if (other.getAccessPolicyId() != null && other.getAccessPolicyId().equals(this.getAccessPolicyId()) == false)
            return false;
        if (other.getAccessPolicyArn() == null ^ this.getAccessPolicyArn() == null)
            return false;
        if (other.getAccessPolicyArn() != null && other.getAccessPolicyArn().equals(this.getAccessPolicyArn()) == false)
            return false;
        if (other.getAccessPolicyIdentity() == null ^ this.getAccessPolicyIdentity() == null)
            return false;
        if (other.getAccessPolicyIdentity() != null && other.getAccessPolicyIdentity().equals(this.getAccessPolicyIdentity()) == false)
            return false;
        if (other.getAccessPolicyResource() == null ^ this.getAccessPolicyResource() == null)
            return false;
        if (other.getAccessPolicyResource() != null && other.getAccessPolicyResource().equals(this.getAccessPolicyResource()) == false)
            return false;
        if (other.getAccessPolicyPermission() == null ^ this.getAccessPolicyPermission() == null)
            return false;
        if (other.getAccessPolicyPermission() != null && other.getAccessPolicyPermission().equals(this.getAccessPolicyPermission()) == false)
            return false;
        if (other.getAccessPolicyCreationDate() == null ^ this.getAccessPolicyCreationDate() == null)
            return false;
        if (other.getAccessPolicyCreationDate() != null && other.getAccessPolicyCreationDate().equals(this.getAccessPolicyCreationDate()) == false)
            return false;
        if (other.getAccessPolicyLastUpdateDate() == null ^ this.getAccessPolicyLastUpdateDate() == null)
            return false;
        if (other.getAccessPolicyLastUpdateDate() != null && other.getAccessPolicyLastUpdateDate().equals(this.getAccessPolicyLastUpdateDate()) == 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-iotsitewise/src/main/java/com/amazonaws/services/iotsitewise/model/DescribeAccessPolicyResult.java