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

        if (obj instanceof RetentionPeriod == false)
            return false;
        RetentionPeriod other = (RetentionPeriod) obj;
        if (other.getRetentionPeriodValue() == null ^ this.getRetentionPeriodValue() == null)
            return false;
        if (other.getRetentionPeriodValue() != null && other.getRetentionPeriodValue().equals(this.getRetentionPeriodValue()) == false)
            return false;
        if (other.getRetentionPeriodUnit() == null ^ this.getRetentionPeriodUnit() == null)
            return false;
        if (other.getRetentionPeriodUnit() != null && other.getRetentionPeriodUnit().equals(this.getRetentionPeriodUnit()) == 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-recyclebin/src/main/java/com/amazonaws/services/recyclebin/model/RetentionPeriod.java