public AuthenticateCognitoActionConfig withOnUnauthenticatedRequest(String onUnauthenticatedRequest) {
        setOnUnauthenticatedRequest(onUnauthenticatedRequest);
        return this;
    }
<p>
The behavior if the user is not authenticated. The following are possible values:
</p>
<ul>
<li>
<p>
deny<code/> - Return an HTTP 401 Unauthorized error.
</p>
</li>
<li>
<p>
allow<code/> - Allow the request to be forwarded to the target.
</p>
</li>
<li>
<p>
authenticate<code/> - Redirect the request to the IdP authorization endpoint. This is the default value.
</p>
</li>
</ul>

@param onUnauthenticatedRequest
       The behavior if the user is not authenticated. The following are possible values:</p>
       <ul>
       <li>
       <p>
       deny<code/> - Return an HTTP 401 Unauthorized error.
       </p>
       </li>
       <li>
       <p>
       allow<code/> - Allow the request to be forwarded to the target.
       </p>
       </li>
       <li>
       <p>
       authenticate<code/> - Redirect the request to the IdP authorization endpoint. This is the default value.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see AuthenticateCognitoActionConditionalBehaviorEnum
aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/model/AuthenticateCognitoActionConfig.java