public Target withValues(String... values) {
        if (this.values == null) {
            setValues(new com.amazonaws.internal.SdkInternalList<String>(values.length));
        }
        for (String ele : values) {
            this.values.add(ele);
        }
        return this;
    }
<p>
User-defined criteria that maps to <code>Key</code>. For example, if you specified <code>tag:ServerRole</code>,
you could specify <code>value:WebServer</code> to run a command on instances that include EC2 tags of
<code>ServerRole,WebServer</code>.
</p>
<p>
Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of
50.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setValues(java.util.Collection)} or {@link #withValues(java.util.Collection)} if you want to override the
existing values.
</p>

@param values
       User-defined criteria that maps to <code>Key</code>. For example, if you specified
       <code>tag:ServerRole</code>, you could specify <code>value:WebServer</code> to run a command on instances
       that include EC2 tags of <code>ServerRole,WebServer</code>. </p>
       <p>
       Depending on the type of target, the maximum number of values for a key might be lower than the global
       maximum of 50.
@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