public void setDefinition(TemplateVersionDefinition definition) {
        this.definition = definition;
    }
<p>
The definition of a template.
</p>
<p>
A definition is the data model of all features in a Dashboard, Template, or Analysis.
</p>
<p>
Either a <code>SourceEntity</code> or a <code>Definition</code> must be provided in order for the request to be
valid.
</p>

@param definition
       The definition of a template.</p>
       <p>
       A definition is the data model of all features in a Dashboard, Template, or Analysis.
       </p>
       <p>
       Either a <code>SourceEntity</code> or a <code>Definition</code> must be provided in order for the request
       to be valid.
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/CreateTemplateRequest.java