public GetObjectRequest withKey(String key) {
        setKey(key);
        return this;
    }
Sets the key under which the object to be downloaded is stored.
Returns this {@link GetObjectRequest}, enabling additional method
calls to be chained together.

@param key
           The key under which the object to be downloaded is stored.

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

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