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

        if (obj instanceof UsageRecord == false)
            return false;
        UsageRecord other = (UsageRecord) obj;
        if (other.getAccountId() == null ^ this.getAccountId() == null)
            return false;
        if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false)
            return false;
        if (other.getAutomatedDiscoveryFreeTrialStartDate() == null ^ this.getAutomatedDiscoveryFreeTrialStartDate() == null)
            return false;
        if (other.getAutomatedDiscoveryFreeTrialStartDate() != null
                && other.getAutomatedDiscoveryFreeTrialStartDate().equals(this.getAutomatedDiscoveryFreeTrialStartDate()) == false)
            return false;
        if (other.getFreeTrialStartDate() == null ^ this.getFreeTrialStartDate() == null)
            return false;
        if (other.getFreeTrialStartDate() != null && other.getFreeTrialStartDate().equals(this.getFreeTrialStartDate()) == false)
            return false;
        if (other.getUsage() == null ^ this.getUsage() == null)
            return false;
        if (other.getUsage() != null && other.getUsage().equals(this.getUsage()) == 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-macie2/src/main/java/com/amazonaws/services/macie2/model/UsageRecord.java