public ListJobTemplatesResult withTemplates(JobTemplate... templates) {
        if (this.templates == null) {
            setTemplates(new java.util.ArrayList<JobTemplate>(templates.length));
        }
        for (JobTemplate ele : templates) {
            this.templates.add(ele);
        }
        return this;
    }
<p>
This output lists information about the specified job templates.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTemplates(java.util.Collection)} or {@link #withTemplates(java.util.Collection)} if you want to
override the existing values.
</p>

@param templates
       This output lists information about the specified job templates.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/ListJobTemplatesResult.java