public String getKey() {
        return key;
    }
Gets the key of the object whose metadata is being retrieved.

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

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