@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getTotalBytesClassified() != null)
            sb.append("TotalBytesClassified: ").append(getTotalBytesClassified()).append(",");
        if (getTotalDetections() != null)
            sb.append("TotalDetections: ").append(getTotalDetections()).append(",");
        if (getTotalDetectionsSuppressed() != null)
            sb.append("TotalDetectionsSuppressed: ").append(getTotalDetectionsSuppressed()).append(",");
        if (getTotalItemsClassified() != null)
            sb.append("TotalItemsClassified: ").append(getTotalItemsClassified()).append(",");
        if (getTotalItemsSensitive() != null)
            sb.append("TotalItemsSensitive: ").append(getTotalItemsSensitive()).append(",");
        if (getTotalItemsSkipped() != null)
            sb.append("TotalItemsSkipped: ").append(getTotalItemsSkipped()).append(",");
        if (getTotalItemsSkippedInvalidEncryption() != null)
            sb.append("TotalItemsSkippedInvalidEncryption: ").append(getTotalItemsSkippedInvalidEncryption()).append(",");
        if (getTotalItemsSkippedInvalidKms() != null)
            sb.append("TotalItemsSkippedInvalidKms: ").append(getTotalItemsSkippedInvalidKms()).append(",");
        if (getTotalItemsSkippedPermissionDenied() != null)
            sb.append("TotalItemsSkippedPermissionDenied: ").append(getTotalItemsSkippedPermissionDenied());
        sb.append("}");
        return sb.toString();
    }
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/ResourceStatistics.java