public StackEvent withHookFailureMode(String hookFailureMode) {
        setHookFailureMode(hookFailureMode);
        return this;
    }
<p>
Specify the hook failure mode for non-compliant resources in the followings ways.
</p>
<ul>
<li>
<p>
<code>FAIL</code> Stops provisioning resources.
</p>
</li>
<li>
<p>
<code>WARN</code> Allows provisioning to continue with a warning message.
</p>
</li>
</ul>

@param hookFailureMode
       Specify the hook failure mode for non-compliant resources in the followings ways.</p>
       <ul>
       <li>
       <p>
       <code>FAIL</code> Stops provisioning resources.
       </p>
       </li>
       <li>
       <p>
       <code>WARN</code> Allows provisioning to continue with a warning message.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see HookFailureMode
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/model/StackEvent.java