AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/CognitoUserPoolConfig.h>
10#include <aws/appsync/model/LambdaAuthorizerConfig.h>
11#include <aws/appsync/model/OpenIDConnectConfig.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppSync {
23namespace Model {
24
32 public:
33 AWS_APPSYNC_API AdditionalAuthenticationProvider() = default;
36 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
44 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
46 m_authenticationTypeHasBeenSet = true;
47 m_authenticationType = value;
48 }
51 return *this;
52 }
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) {
63 m_openIDConnectConfigHasBeenSet = true;
64 m_openIDConnectConfig = std::forward<OpenIDConnectConfigT>(value);
65 }
66 template <typename OpenIDConnectConfigT = OpenIDConnectConfig>
68 SetOpenIDConnectConfig(std::forward<OpenIDConnectConfigT>(value));
69 return *this;
70 }
72
74
77 inline const CognitoUserPoolConfig& GetUserPoolConfig() const { return m_userPoolConfig; }
78 inline bool UserPoolConfigHasBeenSet() const { return m_userPoolConfigHasBeenSet; }
79 template <typename UserPoolConfigT = CognitoUserPoolConfig>
80 void SetUserPoolConfig(UserPoolConfigT&& value) {
81 m_userPoolConfigHasBeenSet = true;
82 m_userPoolConfig = std::forward<UserPoolConfigT>(value);
83 }
84 template <typename UserPoolConfigT = CognitoUserPoolConfig>
86 SetUserPoolConfig(std::forward<UserPoolConfigT>(value));
87 return *this;
88 }
90
92
95 inline const LambdaAuthorizerConfig& GetLambdaAuthorizerConfig() const { return m_lambdaAuthorizerConfig; }
96 inline bool LambdaAuthorizerConfigHasBeenSet() const { return m_lambdaAuthorizerConfigHasBeenSet; }
97 template <typename LambdaAuthorizerConfigT = LambdaAuthorizerConfig>
98 void SetLambdaAuthorizerConfig(LambdaAuthorizerConfigT&& value) {
99 m_lambdaAuthorizerConfigHasBeenSet = true;
100 m_lambdaAuthorizerConfig = std::forward<LambdaAuthorizerConfigT>(value);
101 }
102 template <typename LambdaAuthorizerConfigT = LambdaAuthorizerConfig>
104 SetLambdaAuthorizerConfig(std::forward<LambdaAuthorizerConfigT>(value));
105 return *this;
106 }
108 private:
110
111 OpenIDConnectConfig m_openIDConnectConfig;
112
113 CognitoUserPoolConfig m_userPoolConfig;
114
115 LambdaAuthorizerConfig m_lambdaAuthorizerConfig;
116 bool m_authenticationTypeHasBeenSet = false;
117 bool m_openIDConnectConfigHasBeenSet = false;
118 bool m_userPoolConfigHasBeenSet = false;
119 bool m_lambdaAuthorizerConfigHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace AppSync
124} // 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