public MetadataEntry withName(String key) {
        setName(key);
        return this;
    }
Set the metadata key.

@param key The metadata key.
@return This object for chaining.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/MetadataEntry.java