public Target withKey(String key) {
        setKey(key);
        return this;
    }
<p>
User-defined criteria for sending commands that target managed nodes that meet the criteria.
</p>

@param key
       User-defined criteria for sending commands that target managed nodes that meet the criteria.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/Target.java