public UpdateListRequest withElements(String... elements) {
        if (this.elements == null) {
            setElements(new java.util.ArrayList<String>(elements.length));
        }
        for (String ele : elements) {
            this.elements.add(ele);
        }
        return this;
    }
<p>
One or more list elements to add or replace. If you are providing the elements, make sure to specify the
<code>updateMode</code> to use.
</p>
<p>
If you are deleting all elements from the list, use <code>REPLACE</code> for the <code>updateMode</code> and
provide an empty list (0 elements).
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setElements(java.util.Collection)} or {@link #withElements(java.util.Collection)} if you want to override
the existing values.
</p>

@param elements
       One or more list elements to add or replace. If you are providing the elements, make sure to specify the
       <code>updateMode</code> to use. </p>
       <p>
       If you are deleting all elements from the list, use <code>REPLACE</code> for the <code>updateMode</code>
       and provide an empty list (0 elements).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-frauddetector/src/main/java/com/amazonaws/services/frauddetector/model/UpdateListRequest.java