public Filter withValues(String... values) {
        if (this.values == null) {
            setValues(new java.util.ArrayList<String>(values.length));
        }
        for (String ele : values) {
            this.values.add(ele);
        }
        return this;
    }
<p>
When you're using a <code>List</code> operation and you want the operation to return a subset of objects, such as
Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For
example, to list only inbound Resolver endpoints, specify <code>Direction</code> for <code>Name</code> and
specify <code>INBOUND</code> for <code>Values</code>.
</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
       When you're using a <code>List</code> operation and you want the operation to return a subset of objects,
       such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter
       objects. For example, to list only inbound Resolver endpoints, specify <code>Direction</code> for
       <code>Name</code> and specify <code>INBOUND</code> for <code>Values</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-route53resolver/src/main/java/com/amazonaws/services/route53resolver/model/Filter.java