public FieldValidationConfiguration withStrValues(String... strValues) {
        if (this.strValues == null) {
            setStrValues(new java.util.ArrayList<String>(strValues.length));
        }
        for (String ele : strValues) {
            this.strValues.add(ele);
        }
        return this;
    }
<p>
The validation to perform on a string value.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setStrValues(java.util.Collection)} or {@link #withStrValues(java.util.Collection)} if you want to
override the existing values.
</p>

@param strValues
       The validation to perform on a string value.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-amplifyuibuilder/src/main/java/com/amazonaws/services/amplifyuibuilder/model/FieldValidationConfiguration.java