public ListWirelessGatewayTaskDefinitionsResult withTaskDefinitions(UpdateWirelessGatewayTaskEntry... taskDefinitions) {
        if (this.taskDefinitions == null) {
            setTaskDefinitions(new java.util.ArrayList<UpdateWirelessGatewayTaskEntry>(taskDefinitions.length));
        }
        for (UpdateWirelessGatewayTaskEntry ele : taskDefinitions) {
            this.taskDefinitions.add(ele);
        }
        return this;
    }
<p>
The list of task definitions.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTaskDefinitions(java.util.Collection)} or {@link #withTaskDefinitions(java.util.Collection)} if you
want to override the existing values.
</p>

@param taskDefinitions
       The list of task definitions.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotwireless/src/main/java/com/amazonaws/services/iotwireless/model/ListWirelessGatewayTaskDefinitionsResult.java