public CreateRecommendationTemplateRequest withFormat(String format) {
        setFormat(format);
        return this;
    }
<p>
The format for the recommendation template.
</p>
<dl>
<dt>CfnJson</dt>
<dd>
<p>
The template is CloudFormation JSON.
</p>
</dd>
<dt>CfnYaml</dt>
<dd>
<p>
The template is CloudFormation YAML.
</p>
</dd>
</dl>

@param format
       The format for the recommendation template.</p>
       <dl>
       <dt>CfnJson</dt>
       <dd>
       <p>
       The template is CloudFormation JSON.
       </p>
       </dd>
       <dt>CfnYaml</dt>
       <dd>
       <p>
       The template is CloudFormation YAML.
       </p>
       </dd>
@return Returns a reference to this object so that method calls can be chained together.
@see TemplateFormat
aws-java-sdk-resiliencehub/src/main/java/com/amazonaws/services/resiliencehub/model/CreateRecommendationTemplateRequest.java