public void setResources(java.util.Collection<ResourceDefinition> resources) {
        if (resources == null) {
            this.resources = null;
            return;
        }

        this.resources = new com.amazonaws.internal.SdkInternalList<ResourceDefinition>(resources);
    }
<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.
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/model/CreateGeneratedTemplateRequest.java