AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AuthProvider.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/AuthenticationType.h>
9#include <aws/appsync/model/CognitoConfig.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
31 public:
32 AWS_APPSYNC_API AuthProvider() = default;
33 AWS_APPSYNC_API AuthProvider(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline AuthenticationType GetAuthType() const { return m_authType; }
42 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
43 inline void SetAuthType(AuthenticationType value) {
44 m_authTypeHasBeenSet = true;
45 m_authType = value;
46 }
48 SetAuthType(value);
49 return *this;
50 }
52
54
57 inline const CognitoConfig& GetCognitoConfig() const { return m_cognitoConfig; }
58 inline bool CognitoConfigHasBeenSet() const { return m_cognitoConfigHasBeenSet; }
59 template <typename CognitoConfigT = CognitoConfig>
60 void SetCognitoConfig(CognitoConfigT&& value) {
61 m_cognitoConfigHasBeenSet = true;
62 m_cognitoConfig = std::forward<CognitoConfigT>(value);
63 }
64 template <typename CognitoConfigT = CognitoConfig>
65 AuthProvider& WithCognitoConfig(CognitoConfigT&& value) {
66 SetCognitoConfig(std::forward<CognitoConfigT>(value));
67 return *this;
68 }
70
72
73 inline const OpenIDConnectConfig& GetOpenIDConnectConfig() const { return m_openIDConnectConfig; }
74 inline bool OpenIDConnectConfigHasBeenSet() const { return m_openIDConnectConfigHasBeenSet; }
75 template <typename OpenIDConnectConfigT = OpenIDConnectConfig>
76 void SetOpenIDConnectConfig(OpenIDConnectConfigT&& value) {
77 m_openIDConnectConfigHasBeenSet = true;
78 m_openIDConnectConfig = std::forward<OpenIDConnectConfigT>(value);
79 }
80 template <typename OpenIDConnectConfigT = OpenIDConnectConfig>
81 AuthProvider& WithOpenIDConnectConfig(OpenIDConnectConfigT&& value) {
82 SetOpenIDConnectConfig(std::forward<OpenIDConnectConfigT>(value));
83 return *this;
84 }
86
88
89 inline const LambdaAuthorizerConfig& GetLambdaAuthorizerConfig() const { return m_lambdaAuthorizerConfig; }
90 inline bool LambdaAuthorizerConfigHasBeenSet() const { return m_lambdaAuthorizerConfigHasBeenSet; }
91 template <typename LambdaAuthorizerConfigT = LambdaAuthorizerConfig>
92 void SetLambdaAuthorizerConfig(LambdaAuthorizerConfigT&& value) {
93 m_lambdaAuthorizerConfigHasBeenSet = true;
94 m_lambdaAuthorizerConfig = std::forward<LambdaAuthorizerConfigT>(value);
95 }
96 template <typename LambdaAuthorizerConfigT = LambdaAuthorizerConfig>
97 AuthProvider& WithLambdaAuthorizerConfig(LambdaAuthorizerConfigT&& value) {
98 SetLambdaAuthorizerConfig(std::forward<LambdaAuthorizerConfigT>(value));
99 return *this;
100 }
102 private:
104
105 CognitoConfig m_cognitoConfig;
106
107 OpenIDConnectConfig m_openIDConnectConfig;
108
109 LambdaAuthorizerConfig m_lambdaAuthorizerConfig;
110 bool m_authTypeHasBeenSet = false;
111 bool m_cognitoConfigHasBeenSet = false;
112 bool m_openIDConnectConfigHasBeenSet = false;
113 bool m_lambdaAuthorizerConfigHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace AppSync
118} // namespace Aws
void SetLambdaAuthorizerConfig(LambdaAuthorizerConfigT &&value)
const CognitoConfig & GetCognitoConfig() const
AWS_APPSYNC_API AuthProvider(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API AuthProvider()=default
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
AuthProvider & WithLambdaAuthorizerConfig(LambdaAuthorizerConfigT &&value)
void SetOpenIDConnectConfig(OpenIDConnectConfigT &&value)
void SetCognitoConfig(CognitoConfigT &&value)
const OpenIDConnectConfig & GetOpenIDConnectConfig() const
AuthProvider & WithCognitoConfig(CognitoConfigT &&value)
void SetAuthType(AuthenticationType value)
AuthProvider & WithAuthType(AuthenticationType value)
const LambdaAuthorizerConfig & GetLambdaAuthorizerConfig() const
AuthProvider & WithOpenIDConnectConfig(OpenIDConnectConfigT &&value)
AuthenticationType GetAuthType() const
bool LambdaAuthorizerConfigHasBeenSet() const
AWS_APPSYNC_API AuthProvider & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue