public TagFilter withKey(String key) {
        setKey(key);
        return this;
    }
<p>
One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more
specific tag values.
</p>

@param key
       One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for
       more specific tag values.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-resourcegroupstaggingapi/src/main/java/com/amazonaws/services/resourcegroupstaggingapi/model/TagFilter.java