public RestoreObjectRequest withKey(String key) {
        this.key = key;
        return this;
    }
Sets the key, the name of the reference to the object to restore, which
is now stored in Amazon Glacier. returns a reference to this object(RestoreObjectRequest)
for method chaining.

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