public GetObjectMetadataRequest withKey(String key) {
        setKey(key);
        return this;
    }
Sets the key of the object whose metadata is being retrieved.
Returns this {@link GetObjectMetadataRequest}, enabling additional method
calls to be chained together.

@param key
           The key of the object whose metadata is being retrieved.

@return This {@link GetObjectMetadataRequest}, enabling additional method
        calls to be chained together.

@see GetObjectMetadataRequest#getKey()
@see GetObjectMetadataRequest#setKey(String)
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/GetObjectMetadataRequest.java