public void setKey(String key) {
        this.key = key;
    }
Sets the key of the object whose metadata is being retrieved.

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

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