public UpdateGeneratedTemplateRequest withAddResources(ResourceDefinition... addResources) {
        if (this.addResources == null) {
            setAddResources(new com.amazonaws.internal.SdkInternalList<ResourceDefinition>(addResources.length));
        }
        for (ResourceDefinition ele : addResources) {
            this.addResources.add(ele);
        }
        return this;
    }
<p>
An optional list of resources to be added to the generated template.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAddResources(java.util.Collection)} or {@link #withAddResources(java.util.Collection)} if you want to
override the existing values.
</p>

@param addResources
       An optional list of resources to be added to the generated template.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/model/UpdateGeneratedTemplateRequest.java