public void setKey(String key) {
        this.key = key;
    }
<p>
One part of a key-value pair that make up a tag. A <code>key</code> 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 make up a tag. A <code>key</code> is a general label that acts like a
       category for more specific tag values.
aws-java-sdk-ecrpublic/src/main/java/com/amazonaws/services/ecrpublic/model/Tag.java