public ValidateTemplateRequest withTemplateURL(String templateURL) {
        setTemplateURL(templateURL);
        return this;
    }
<p>
Location of file containing the template body. The URL must point to a template (max size: 460,800 bytes) that is
located in an Amazon S3 bucket or a Systems Manager document. For more information, go to <a
href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html">Template Anatomy</a>
in the <i>CloudFormation User Guide</i>. The location for an Amazon S3 bucket must start with
<code>https://</code>.
</p>
<p>
Conditional: You must pass <code>TemplateURL</code> or <code>TemplateBody</code>. If both are passed, only
<code>TemplateBody</code> is used.
</p>

@param templateURL
       Location of file containing the template body. The URL must point to a template (max size: 460,800 bytes)
       that is located in an Amazon S3 bucket or a Systems Manager document. For more information, go to <a
       href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html">Template
       Anatomy</a> in the <i>CloudFormation User Guide</i>. The location for an Amazon S3 bucket must start with
       <code>https://</code>.</p>
       <p>
       Conditional: You must pass <code>TemplateURL</code> or <code>TemplateBody</code>. If both are passed, only
       <code>TemplateBody</code> is used.
@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/ValidateTemplateRequest.java