AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/OpenIDConnectConfig.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
35 {
36 public:
37 AWS_APPSYNC_API AuthProvider() = default;
38 AWS_APPSYNC_API AuthProvider(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline AuthenticationType GetAuthType() const { return m_authType; }
48 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
49 inline void SetAuthType(AuthenticationType value) { m_authTypeHasBeenSet = true; m_authType = value; }
50 inline AuthProvider& WithAuthType(AuthenticationType value) { SetAuthType(value); return *this;}
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) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = std::forward<CognitoConfigT>(value); }
61 template<typename CognitoConfigT = CognitoConfig>
62 AuthProvider& WithCognitoConfig(CognitoConfigT&& value) { SetCognitoConfig(std::forward<CognitoConfigT>(value)); return *this;}
64
66
67 inline const OpenIDConnectConfig& GetOpenIDConnectConfig() const { return m_openIDConnectConfig; }
68 inline bool OpenIDConnectConfigHasBeenSet() const { return m_openIDConnectConfigHasBeenSet; }
69 template<typename OpenIDConnectConfigT = OpenIDConnectConfig>
70 void SetOpenIDConnectConfig(OpenIDConnectConfigT&& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = std::forward<OpenIDConnectConfigT>(value); }
71 template<typename OpenIDConnectConfigT = OpenIDConnectConfig>
72 AuthProvider& WithOpenIDConnectConfig(OpenIDConnectConfigT&& value) { SetOpenIDConnectConfig(std::forward<OpenIDConnectConfigT>(value)); return *this;}
74
76
77 inline const LambdaAuthorizerConfig& GetLambdaAuthorizerConfig() const { return m_lambdaAuthorizerConfig; }
78 inline bool LambdaAuthorizerConfigHasBeenSet() const { return m_lambdaAuthorizerConfigHasBeenSet; }
79 template<typename LambdaAuthorizerConfigT = LambdaAuthorizerConfig>
80 void SetLambdaAuthorizerConfig(LambdaAuthorizerConfigT&& value) { m_lambdaAuthorizerConfigHasBeenSet = true; m_lambdaAuthorizerConfig = std::forward<LambdaAuthorizerConfigT>(value); }
81 template<typename LambdaAuthorizerConfigT = LambdaAuthorizerConfig>
82 AuthProvider& WithLambdaAuthorizerConfig(LambdaAuthorizerConfigT&& value) { SetLambdaAuthorizerConfig(std::forward<LambdaAuthorizerConfigT>(value)); return *this;}
84 private:
85
87 bool m_authTypeHasBeenSet = false;
88
89 CognitoConfig m_cognitoConfig;
90 bool m_cognitoConfigHasBeenSet = false;
91
92 OpenIDConnectConfig m_openIDConnectConfig;
93 bool m_openIDConnectConfigHasBeenSet = false;
94
95 LambdaAuthorizerConfig m_lambdaAuthorizerConfig;
96 bool m_lambdaAuthorizerConfigHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace AppSync
101} // 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