public BatchGetFleetsRequest withNames(String... names) {
        if (this.names == null) {
            setNames(new java.util.ArrayList<String>(names.length));
        }
        for (String ele : names) {
            this.names.add(ele);
        }
        return this;
    }
<p>
The names or ARNs of the compute fleets.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setNames(java.util.Collection)} or {@link #withNames(java.util.Collection)} if you want to override the
existing values.
</p>

@param names
       The names or ARNs of the compute fleets.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/BatchGetFleetsRequest.java