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

        if (obj instanceof BucketLevel == false)
            return false;
        BucketLevel other = (BucketLevel) obj;
        if (other.getActivityMetrics() == null ^ this.getActivityMetrics() == null)
            return false;
        if (other.getActivityMetrics() != null && other.getActivityMetrics().equals(this.getActivityMetrics()) == false)
            return false;
        if (other.getPrefixLevel() == null ^ this.getPrefixLevel() == null)
            return false;
        if (other.getPrefixLevel() != null && other.getPrefixLevel().equals(this.getPrefixLevel()) == false)
            return false;
        if (other.getAdvancedCostOptimizationMetrics() == null ^ this.getAdvancedCostOptimizationMetrics() == null)
            return false;
        if (other.getAdvancedCostOptimizationMetrics() != null
                && other.getAdvancedCostOptimizationMetrics().equals(this.getAdvancedCostOptimizationMetrics()) == false)
            return false;
        if (other.getAdvancedDataProtectionMetrics() == null ^ this.getAdvancedDataProtectionMetrics() == null)
            return false;
        if (other.getAdvancedDataProtectionMetrics() != null
                && other.getAdvancedDataProtectionMetrics().equals(this.getAdvancedDataProtectionMetrics()) == false)
            return false;
        if (other.getDetailedStatusCodesMetrics() == null ^ this.getDetailedStatusCodesMetrics() == null)
            return false;
        if (other.getDetailedStatusCodesMetrics() != null && other.getDetailedStatusCodesMetrics().equals(this.getDetailedStatusCodesMetrics()) == 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-s3control/src/main/java/com/amazonaws/services/s3control/model/BucketLevel.java