public BucketLoggingConfiguration withTargetObjectKeyFormat(TargetObjectKeyFormat targetObjectKeyFormat) {
        setTargetObjectKeyFormat(targetObjectKeyFormat);
        return this;
    }
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