public S3 withKey(String key) {
        setKey(key);
        return this;
    }
<p>
The name of the file.
</p>

@param key
       The name of the file.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-qbusiness/src/main/java/com/amazonaws/services/qbusiness/model/S3.java