@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getCacheControl() != null)
            sb.append("CacheControl: ").append(getCacheControl()).append(",");
        if (getContentDisposition() != null)
            sb.append("ContentDisposition: ").append(getContentDisposition()).append(",");
        if (getContentEncoding() != null)
            sb.append("ContentEncoding: ").append(getContentEncoding()).append(",");
        if (getContentLanguage() != null)
            sb.append("ContentLanguage: ").append(getContentLanguage()).append(",");
        if (getUserMetadata() != null)
            sb.append("UserMetadata: ").append(getUserMetadata()).append(",");
        if (getContentLength() != null)
            sb.append("ContentLength: ").append(getContentLength()).append(",");
        if (getContentMD5() != null)
            sb.append("ContentMD5: ").append(getContentMD5()).append(",");
        if (getContentType() != null)
            sb.append("ContentType: ").append(getContentType()).append(",");
        if (getHttpExpiresDate() != null)
            sb.append("HttpExpiresDate: ").append(getHttpExpiresDate()).append(",");
        if (getRequesterCharged() != null)
            sb.append("RequesterCharged: ").append(getRequesterCharged()).append(",");
        if (getSSEAlgorithm() != null)
            sb.append("SSEAlgorithm: ").append(getSSEAlgorithm());
        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-s3control/src/main/java/com/amazonaws/services/s3control/model/S3ObjectMetadata.java