/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.elasticloadbalancingv2.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Request parameters to use when integrating with Amazon Cognito to authenticate users. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AuthenticateCognitoActionConfig implements Serializable, Cloneable { /** ** The Amazon Resource Name (ARN) of the Amazon Cognito user pool. *
*/ private String userPoolArn; /** ** The ID of the Amazon Cognito user pool client. *
*/ private String userPoolClientId; /** ** The domain prefix or fully-qualified domain name of the Amazon Cognito user pool. *
*/ private String userPoolDomain; /** ** The name of the cookie used to maintain session information. The default is AWSELBAuthSessionCookie. *
*/ private String sessionCookieName; /** *
* The set of user claims to be requested from the IdP. The default is openid
.
*
* To verify which scope values your IdP supports and how to separate multiple values, see the documentation for * your IdP. *
*/ private String scope; /** ** The maximum duration of the authentication session, in seconds. The default is 604800 seconds (7 days). *
*/ private Long sessionTimeout; /** ** The query parameters (up to 10) to include in the redirect request to the authorization endpoint. *
*/ private java.util.Map* The behavior if the user is not authenticated. The following are possible values: *
*
* deny - Return an HTTP 401 Unauthorized error.
*
* allow - Allow the request to be forwarded to the target.
*
* authenticate - Redirect the request to the IdP authorization endpoint. This is the default value.
*
* The Amazon Resource Name (ARN) of the Amazon Cognito user pool. *
* * @param userPoolArn * The Amazon Resource Name (ARN) of the Amazon Cognito user pool. */ public void setUserPoolArn(String userPoolArn) { this.userPoolArn = userPoolArn; } /** ** The Amazon Resource Name (ARN) of the Amazon Cognito user pool. *
* * @return The Amazon Resource Name (ARN) of the Amazon Cognito user pool. */ public String getUserPoolArn() { return this.userPoolArn; } /** ** The Amazon Resource Name (ARN) of the Amazon Cognito user pool. *
* * @param userPoolArn * The Amazon Resource Name (ARN) of the Amazon Cognito user pool. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthenticateCognitoActionConfig withUserPoolArn(String userPoolArn) { setUserPoolArn(userPoolArn); return this; } /** ** The ID of the Amazon Cognito user pool client. *
* * @param userPoolClientId * The ID of the Amazon Cognito user pool client. */ public void setUserPoolClientId(String userPoolClientId) { this.userPoolClientId = userPoolClientId; } /** ** The ID of the Amazon Cognito user pool client. *
* * @return The ID of the Amazon Cognito user pool client. */ public String getUserPoolClientId() { return this.userPoolClientId; } /** ** The ID of the Amazon Cognito user pool client. *
* * @param userPoolClientId * The ID of the Amazon Cognito user pool client. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthenticateCognitoActionConfig withUserPoolClientId(String userPoolClientId) { setUserPoolClientId(userPoolClientId); return this; } /** ** The domain prefix or fully-qualified domain name of the Amazon Cognito user pool. *
* * @param userPoolDomain * The domain prefix or fully-qualified domain name of the Amazon Cognito user pool. */ public void setUserPoolDomain(String userPoolDomain) { this.userPoolDomain = userPoolDomain; } /** ** The domain prefix or fully-qualified domain name of the Amazon Cognito user pool. *
* * @return The domain prefix or fully-qualified domain name of the Amazon Cognito user pool. */ public String getUserPoolDomain() { return this.userPoolDomain; } /** ** The domain prefix or fully-qualified domain name of the Amazon Cognito user pool. *
* * @param userPoolDomain * The domain prefix or fully-qualified domain name of the Amazon Cognito user pool. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthenticateCognitoActionConfig withUserPoolDomain(String userPoolDomain) { setUserPoolDomain(userPoolDomain); return this; } /** ** The name of the cookie used to maintain session information. The default is AWSELBAuthSessionCookie. *
* * @param sessionCookieName * The name of the cookie used to maintain session information. The default is AWSELBAuthSessionCookie. */ public void setSessionCookieName(String sessionCookieName) { this.sessionCookieName = sessionCookieName; } /** ** The name of the cookie used to maintain session information. The default is AWSELBAuthSessionCookie. *
* * @return The name of the cookie used to maintain session information. The default is AWSELBAuthSessionCookie. */ public String getSessionCookieName() { return this.sessionCookieName; } /** ** The name of the cookie used to maintain session information. The default is AWSELBAuthSessionCookie. *
* * @param sessionCookieName * The name of the cookie used to maintain session information. The default is AWSELBAuthSessionCookie. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthenticateCognitoActionConfig withSessionCookieName(String sessionCookieName) { setSessionCookieName(sessionCookieName); return this; } /** *
* The set of user claims to be requested from the IdP. The default is openid
.
*
* To verify which scope values your IdP supports and how to separate multiple values, see the documentation for * your IdP. *
* * @param scope * The set of user claims to be requested from the IdP. The default isopenid
.
* * To verify which scope values your IdP supports and how to separate multiple values, see the documentation * for your IdP. */ public void setScope(String scope) { this.scope = scope; } /** *
* The set of user claims to be requested from the IdP. The default is openid
.
*
* To verify which scope values your IdP supports and how to separate multiple values, see the documentation for * your IdP. *
* * @return The set of user claims to be requested from the IdP. The default isopenid
.
* * To verify which scope values your IdP supports and how to separate multiple values, see the documentation * for your IdP. */ public String getScope() { return this.scope; } /** *
* The set of user claims to be requested from the IdP. The default is openid
.
*
* To verify which scope values your IdP supports and how to separate multiple values, see the documentation for * your IdP. *
* * @param scope * The set of user claims to be requested from the IdP. The default isopenid
.
* * To verify which scope values your IdP supports and how to separate multiple values, see the documentation * for your IdP. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthenticateCognitoActionConfig withScope(String scope) { setScope(scope); return this; } /** *
* The maximum duration of the authentication session, in seconds. The default is 604800 seconds (7 days). *
* * @param sessionTimeout * The maximum duration of the authentication session, in seconds. The default is 604800 seconds (7 days). */ public void setSessionTimeout(Long sessionTimeout) { this.sessionTimeout = sessionTimeout; } /** ** The maximum duration of the authentication session, in seconds. The default is 604800 seconds (7 days). *
* * @return The maximum duration of the authentication session, in seconds. The default is 604800 seconds (7 days). */ public Long getSessionTimeout() { return this.sessionTimeout; } /** ** The maximum duration of the authentication session, in seconds. The default is 604800 seconds (7 days). *
* * @param sessionTimeout * The maximum duration of the authentication session, in seconds. The default is 604800 seconds (7 days). * @return Returns a reference to this object so that method calls can be chained together. */ public AuthenticateCognitoActionConfig withSessionTimeout(Long sessionTimeout) { setSessionTimeout(sessionTimeout); return this; } /** ** The query parameters (up to 10) to include in the redirect request to the authorization endpoint. *
* * @return The query parameters (up to 10) to include in the redirect request to the authorization endpoint. */ public java.util.Map* The query parameters (up to 10) to include in the redirect request to the authorization endpoint. *
* * @param authenticationRequestExtraParams * The query parameters (up to 10) to include in the redirect request to the authorization endpoint. */ public void setAuthenticationRequestExtraParams(java.util.Map* The query parameters (up to 10) to include in the redirect request to the authorization endpoint. *
* * @param authenticationRequestExtraParams * The query parameters (up to 10) to include in the redirect request to the authorization endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthenticateCognitoActionConfig withAuthenticationRequestExtraParams(java.util.Map* The behavior if the user is not authenticated. The following are possible values: *
*
* deny - Return an HTTP 401 Unauthorized error.
*
* allow - Allow the request to be forwarded to the target.
*
* authenticate - Redirect the request to the IdP authorization endpoint. This is the default value.
*
* deny - Return an HTTP 401 Unauthorized error.
*
* allow - Allow the request to be forwarded to the target.
*
* authenticate - Redirect the request to the IdP authorization endpoint. This is the default value.
*
* The behavior if the user is not authenticated. The following are possible values: *
*
* deny - Return an HTTP 401 Unauthorized error.
*
* allow - Allow the request to be forwarded to the target.
*
* authenticate - Redirect the request to the IdP authorization endpoint. This is the default value.
*
* deny - Return an HTTP 401 Unauthorized error.
*
* allow - Allow the request to be forwarded to the target.
*
* authenticate - Redirect the request to the IdP authorization endpoint. This is the default value.
*
* The behavior if the user is not authenticated. The following are possible values: *
*
* deny - Return an HTTP 401 Unauthorized error.
*
* allow - Allow the request to be forwarded to the target.
*
* authenticate - Redirect the request to the IdP authorization endpoint. This is the default value.
*
* deny - Return an HTTP 401 Unauthorized error.
*
* allow - Allow the request to be forwarded to the target.
*
* authenticate - Redirect the request to the IdP authorization endpoint. This is the default value.
*
* The behavior if the user is not authenticated. The following are possible values: *
*
* deny - Return an HTTP 401 Unauthorized error.
*
* allow - Allow the request to be forwarded to the target.
*
* authenticate - Redirect the request to the IdP authorization endpoint. This is the default value.
*
* deny - Return an HTTP 401 Unauthorized error.
*
* allow - Allow the request to be forwarded to the target.
*
* authenticate - Redirect the request to the IdP authorization endpoint. This is the default value.
*