public Tag withKey(String key) {
        setKey(key);
        return this;
    }
<p>
The name assigned to the tag that you create.
</p>

@param key
       The name assigned to the tag that you create.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-transfer/src/main/java/com/amazonaws/services/transfer/model/Tag.java