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

        if (obj instanceof AnomalyObject == false)
            return false;
        AnomalyObject other = (AnomalyObject) obj;
        if (other.getProfileType() == null ^ this.getProfileType() == null)
            return false;
        if (other.getProfileType() != null && other.getProfileType().equals(this.getProfileType()) == false)
            return false;
        if (other.getProfileSubtype() == null ^ this.getProfileSubtype() == null)
            return false;
        if (other.getProfileSubtype() != null && other.getProfileSubtype().equals(this.getProfileSubtype()) == false)
            return false;
        if (other.getObservations() == null ^ this.getObservations() == null)
            return false;
        if (other.getObservations() != null && other.getObservations().equals(this.getObservations()) == 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-guardduty/src/main/java/com/amazonaws/services/guardduty/model/AnomalyObject.java