public CreateGeneratedTemplateRequest withResources(java.util.Collection<ResourceDefinition> resources) {
        setResources(resources);
        return this;
    }
<p>
An optional list of resources to be included in the generated template.
</p>
<p>
If no resources are specified,the template will be created without any resources. Resources can be added to the
template using the <code>UpdateGeneratedTemplate</code> API action.
</p>

@param resources
       An optional list of resources to be included in the generated template.</p>
       <p>
       If no resources are specified,the template will be created without any resources. Resources can be added
       to the template using the <code>UpdateGeneratedTemplate</code> API action.
@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/CreateGeneratedTemplateRequest.java