public String toString() {
        String result = "LoggingConfiguration enabled=" + isLoggingEnabled();
        if (isLoggingEnabled()) {
            result += ", destinationBucketName=" + getDestinationBucketName()
                + ", logFilePrefix=" + getLogFilePrefix();
        }
        if (targetObjectKeyFormat != null) {
            result += ", targetObjectKeyFormat=" + getTargetObjectKeyFormat();
        }
        return result;
    }
Sets the {@link TargetObjectKeyFormat} for this logging configuration and returns this object for method chaining.

@param targetObjectKeyFormat The {@link TargetObjectKeyFormat} for this logging configuration.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/BucketLoggingConfiguration.java