public StepAttributeCapability withAnyOf(String... anyOf) {
        if (this.anyOf == null) {
            setAnyOf(new java.util.ArrayList<String>(anyOf.length));
        }
        for (String ele : anyOf) {
            this.anyOf.add(ele);
        }
        return this;
    }
<p>
Requires any of the step attributes in a given list.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAnyOf(java.util.Collection)} or {@link #withAnyOf(java.util.Collection)} if you want to override the
existing values.
</p>

@param anyOf
       Requires any of the step attributes in a given list.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-deadline/src/main/java/com/amazonaws/services/deadline/model/StepAttributeCapability.java