public BatchCreateVehicleRequest withVehicles(CreateVehicleRequestItem... vehicles) {
        if (this.vehicles == null) {
            setVehicles(new java.util.ArrayList<CreateVehicleRequestItem>(vehicles.length));
        }
        for (CreateVehicleRequestItem ele : vehicles) {
            this.vehicles.add(ele);
        }
        return this;
    }
<p>
A list of information about each vehicle to create. For more information, see the API data type.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setVehicles(java.util.Collection)} or {@link #withVehicles(java.util.Collection)} if you want to override
the existing values.
</p>

@param vehicles
       A list of information about each vehicle to create. For more information, see the API data type.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotfleetwise/src/main/java/com/amazonaws/services/iotfleetwise/model/BatchCreateVehicleRequest.java