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

        if (obj instanceof AwsEc2InstanceViolation == false)
            return false;
        AwsEc2InstanceViolation other = (AwsEc2InstanceViolation) obj;
        if (other.getViolationTarget() == null ^ this.getViolationTarget() == null)
            return false;
        if (other.getViolationTarget() != null && other.getViolationTarget().equals(this.getViolationTarget()) == false)
            return false;
        if (other.getAwsEc2NetworkInterfaceViolations() == null ^ this.getAwsEc2NetworkInterfaceViolations() == null)
            return false;
        if (other.getAwsEc2NetworkInterfaceViolations() != null
                && other.getAwsEc2NetworkInterfaceViolations().equals(this.getAwsEc2NetworkInterfaceViolations()) == 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/AwsEc2InstanceViolation.java