public TemplateConfiguration withUpdateReplacePolicy(String updateReplacePolicy) {
        setUpdateReplacePolicy(updateReplacePolicy);
        return this;
    }
<p>
The <code>UpdateReplacePolicy</code> assigned to resources in the generated template. Supported values are:
</p>
<ul>
<li>
<p>
<code>DELETE</code> - delete all resources when the resource is replaced during an update operation.
</p>
</li>
<li>
<p>
<code>RETAIN</code> - retain all resources when the resource is replaced during an update operation.
</p>
</li>
</ul>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatereplacepolicy.html"
>UpdateReplacePolicy attribute</a> in the <i>CloudFormation User Guide</i>.
</p>

@param updateReplacePolicy
       The <code>UpdateReplacePolicy</code> assigned to resources in the generated template. Supported values
       are:</p>
       <ul>
       <li>
       <p>
       <code>DELETE</code> - delete all resources when the resource is replaced during an update operation.
       </p>
       </li>
       <li>
       <p>
       <code>RETAIN</code> - retain all resources when the resource is replaced during an update operation.
       </p>
       </li>
       </ul>
       <p>
       For more information, see <a href=
       "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatereplacepolicy.html"
       >UpdateReplacePolicy attribute</a> in the <i>CloudFormation User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
@see GeneratedTemplateUpdateReplacePolicy
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/model/TemplateConfiguration.java