public SetDimension 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>
The criteria values to use for the segment dimension. Depending on the value of the DimensionType property,
endpoints are included or excluded from the segment if their values match the criteria values.
</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
       The criteria values to use for the segment dimension. Depending on the value of the DimensionType
       property, endpoints are included or excluded from the segment if their values match the criteria values.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SetDimension.java