AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AdditionalAuthenticationProvider.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/AuthenticationType.h>
9#include <aws/appsync/model/OpenIDConnectConfig.h>
10#include <aws/appsync/model/CognitoUserPoolConfig.h>
11#include <aws/appsync/model/LambdaAuthorizerConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppSync
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_APPSYNC_API AdditionalAuthenticationProvider() = default;
41 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
50 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
51 inline void SetAuthenticationType(AuthenticationType value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
54
56
59 inline const OpenIDConnectConfig& GetOpenIDConnectConfig() const { return m_openIDConnectConfig; }
60 inline bool OpenIDConnectConfigHasBeenSet() const { return m_openIDConnectConfigHasBeenSet; }
61 template<typename OpenIDConnectConfigT = OpenIDConnectConfig>
62 void SetOpenIDConnectConfig(OpenIDConnectConfigT&& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = std::forward<OpenIDConnectConfigT>(value); }
63 template<typename OpenIDConnectConfigT = OpenIDConnectConfig>
64 AdditionalAuthenticationProvider& WithOpenIDConnectConfig(OpenIDConnectConfigT&& value) { SetOpenIDConnectConfig(std::forward<OpenIDConnectConfigT>(value)); return *this;}
66
68
71 inline const CognitoUserPoolConfig& GetUserPoolConfig() const { return m_userPoolConfig; }
72 inline bool UserPoolConfigHasBeenSet() const { return m_userPoolConfigHasBeenSet; }
73 template<typename UserPoolConfigT = CognitoUserPoolConfig>
74 void SetUserPoolConfig(UserPoolConfigT&& value) { m_userPoolConfigHasBeenSet = true; m_userPoolConfig = std::forward<UserPoolConfigT>(value); }
75 template<typename UserPoolConfigT = CognitoUserPoolConfig>
76 AdditionalAuthenticationProvider& WithUserPoolConfig(UserPoolConfigT&& value) { SetUserPoolConfig(std::forward<UserPoolConfigT>(value)); return *this;}
78
80
83 inline const LambdaAuthorizerConfig& GetLambdaAuthorizerConfig() const { return m_lambdaAuthorizerConfig; }
84 inline bool LambdaAuthorizerConfigHasBeenSet() const { return m_lambdaAuthorizerConfigHasBeenSet; }
85 template<typename LambdaAuthorizerConfigT = LambdaAuthorizerConfig>
86 void SetLambdaAuthorizerConfig(LambdaAuthorizerConfigT&& value) { m_lambdaAuthorizerConfigHasBeenSet = true; m_lambdaAuthorizerConfig = std::forward<LambdaAuthorizerConfigT>(value); }
87 template<typename LambdaAuthorizerConfigT = LambdaAuthorizerConfig>
88 AdditionalAuthenticationProvider& WithLambdaAuthorizerConfig(LambdaAuthorizerConfigT&& value) { SetLambdaAuthorizerConfig(std::forward<LambdaAuthorizerConfigT>(value)); return *this;}
90 private:
91
93 bool m_authenticationTypeHasBeenSet = false;
94
95 OpenIDConnectConfig m_openIDConnectConfig;
96 bool m_openIDConnectConfigHasBeenSet = false;
97
98 CognitoUserPoolConfig m_userPoolConfig;
99 bool m_userPoolConfigHasBeenSet = false;
100
101 LambdaAuthorizerConfig m_lambdaAuthorizerConfig;
102 bool m_lambdaAuthorizerConfigHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace AppSync
107} // namespace Aws
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPSYNC_API AdditionalAuthenticationProvider & operator=(Aws::Utils::Json::JsonView jsonValue)
AdditionalAuthenticationProvider & WithAuthenticationType(AuthenticationType value)
AWS_APPSYNC_API AdditionalAuthenticationProvider(Aws::Utils::Json::JsonView jsonValue)
AdditionalAuthenticationProvider & WithLambdaAuthorizerConfig(LambdaAuthorizerConfigT &&value)
AdditionalAuthenticationProvider & WithOpenIDConnectConfig(OpenIDConnectConfigT &&value)
AdditionalAuthenticationProvider & WithUserPoolConfig(UserPoolConfigT &&value)
AWS_APPSYNC_API AdditionalAuthenticationProvider()=default
Aws::Utils::Json::JsonValue JsonValue