public TagListEntry withKey(String key) {
        setKey(key);
        return this;
    }
<p>
The key for an Amazon Web Services resource tag.
</p>

@param key
       The key for an Amazon Web Services resource tag.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/TagListEntry.java