/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppSync { namespace Model { /** *

Describes an additional authentication provider.

See Also:

* AWS * API Reference

*/ class AdditionalAuthenticationProvider { public: AWS_APPSYNC_API AdditionalAuthenticationProvider(); AWS_APPSYNC_API AdditionalAuthenticationProvider(Aws::Utils::Json::JsonView jsonValue); AWS_APPSYNC_API AdditionalAuthenticationProvider& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The authentication type: API key, Identity and Access Management (IAM), * OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.

*/ inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; } /** *

The authentication type: API key, Identity and Access Management (IAM), * OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.

*/ inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; } /** *

The authentication type: API key, Identity and Access Management (IAM), * OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.

*/ inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; } /** *

The authentication type: API key, Identity and Access Management (IAM), * OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.

*/ inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); } /** *

The authentication type: API key, Identity and Access Management (IAM), * OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.

*/ inline AdditionalAuthenticationProvider& WithAuthenticationType(const AuthenticationType& value) { SetAuthenticationType(value); return *this;} /** *

The authentication type: API key, Identity and Access Management (IAM), * OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.

*/ inline AdditionalAuthenticationProvider& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;} /** *

The OIDC configuration.

*/ inline const OpenIDConnectConfig& GetOpenIDConnectConfig() const{ return m_openIDConnectConfig; } /** *

The OIDC configuration.

*/ inline bool OpenIDConnectConfigHasBeenSet() const { return m_openIDConnectConfigHasBeenSet; } /** *

The OIDC configuration.

*/ inline void SetOpenIDConnectConfig(const OpenIDConnectConfig& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = value; } /** *

The OIDC configuration.

*/ inline void SetOpenIDConnectConfig(OpenIDConnectConfig&& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = std::move(value); } /** *

The OIDC configuration.

*/ inline AdditionalAuthenticationProvider& WithOpenIDConnectConfig(const OpenIDConnectConfig& value) { SetOpenIDConnectConfig(value); return *this;} /** *

The OIDC configuration.

*/ inline AdditionalAuthenticationProvider& WithOpenIDConnectConfig(OpenIDConnectConfig&& value) { SetOpenIDConnectConfig(std::move(value)); return *this;} /** *

The Amazon Cognito user pool configuration.

*/ inline const CognitoUserPoolConfig& GetUserPoolConfig() const{ return m_userPoolConfig; } /** *

The Amazon Cognito user pool configuration.

*/ inline bool UserPoolConfigHasBeenSet() const { return m_userPoolConfigHasBeenSet; } /** *

The Amazon Cognito user pool configuration.

*/ inline void SetUserPoolConfig(const CognitoUserPoolConfig& value) { m_userPoolConfigHasBeenSet = true; m_userPoolConfig = value; } /** *

The Amazon Cognito user pool configuration.

*/ inline void SetUserPoolConfig(CognitoUserPoolConfig&& value) { m_userPoolConfigHasBeenSet = true; m_userPoolConfig = std::move(value); } /** *

The Amazon Cognito user pool configuration.

*/ inline AdditionalAuthenticationProvider& WithUserPoolConfig(const CognitoUserPoolConfig& value) { SetUserPoolConfig(value); return *this;} /** *

The Amazon Cognito user pool configuration.

*/ inline AdditionalAuthenticationProvider& WithUserPoolConfig(CognitoUserPoolConfig&& value) { SetUserPoolConfig(std::move(value)); return *this;} /** *

Configuration for Lambda function authorization.

*/ inline const LambdaAuthorizerConfig& GetLambdaAuthorizerConfig() const{ return m_lambdaAuthorizerConfig; } /** *

Configuration for Lambda function authorization.

*/ inline bool LambdaAuthorizerConfigHasBeenSet() const { return m_lambdaAuthorizerConfigHasBeenSet; } /** *

Configuration for Lambda function authorization.

*/ inline void SetLambdaAuthorizerConfig(const LambdaAuthorizerConfig& value) { m_lambdaAuthorizerConfigHasBeenSet = true; m_lambdaAuthorizerConfig = value; } /** *

Configuration for Lambda function authorization.

*/ inline void SetLambdaAuthorizerConfig(LambdaAuthorizerConfig&& value) { m_lambdaAuthorizerConfigHasBeenSet = true; m_lambdaAuthorizerConfig = std::move(value); } /** *

Configuration for Lambda function authorization.

*/ inline AdditionalAuthenticationProvider& WithLambdaAuthorizerConfig(const LambdaAuthorizerConfig& value) { SetLambdaAuthorizerConfig(value); return *this;} /** *

Configuration for Lambda function authorization.

*/ inline AdditionalAuthenticationProvider& WithLambdaAuthorizerConfig(LambdaAuthorizerConfig&& value) { SetLambdaAuthorizerConfig(std::move(value)); return *this;} private: AuthenticationType m_authenticationType; bool m_authenticationTypeHasBeenSet = false; OpenIDConnectConfig m_openIDConnectConfig; bool m_openIDConnectConfigHasBeenSet = false; CognitoUserPoolConfig m_userPoolConfig; bool m_userPoolConfigHasBeenSet = false; LambdaAuthorizerConfig m_lambdaAuthorizerConfig; bool m_lambdaAuthorizerConfigHasBeenSet = false; }; } // namespace Model } // namespace AppSync } // namespace Aws