public SourceS3Location withKey(String key) {
        setKey(key);
        return this;
    }
<p>
Key of the object.
</p>

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