public ListTaskTemplatesResult withTaskTemplates(TaskTemplateMetadata... taskTemplates) {
        if (this.taskTemplates == null) {
            setTaskTemplates(new java.util.ArrayList<TaskTemplateMetadata>(taskTemplates.length));
        }
        for (TaskTemplateMetadata ele : taskTemplates) {
            this.taskTemplates.add(ele);
        }
        return this;
    }
<p>
Provides details about a list of task templates belonging to an instance.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTaskTemplates(java.util.Collection)} or {@link #withTaskTemplates(java.util.Collection)} if you want
to override the existing values.
</p>

@param taskTemplates
       Provides details about a list of task templates belonging to an instance.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListTaskTemplatesResult.java