public ListTemplatesResult withTemplateSummary(TemplateSummary... templateSummary) {
        if (this.templateSummary == null) {
            setTemplateSummary(new java.util.ArrayList<TemplateSummary>(templateSummary.length));
        }
        for (TemplateSummary ele : templateSummary) {
            this.templateSummary.add(ele);
        }
        return this;
    }
<p>
The summary of the template.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTemplateSummary(java.util.Collection)} or {@link #withTemplateSummary(java.util.Collection)} if you
want to override the existing values.
</p>

@param templateSummary
       The summary of the template.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-migrationhuborchestrator/src/main/java/com/amazonaws/services/migrationhuborchestrator/model/ListTemplatesResult.java