AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const AuthenticationType& GetAuthType() const{ return m_authType; }
48 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
49 inline void SetAuthType(const AuthenticationType& value) { m_authTypeHasBeenSet = true; m_authType = value; }
50 inline void SetAuthType(AuthenticationType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
51 inline AuthProvider& WithAuthType(const AuthenticationType& value) { SetAuthType(value); return *this;}
52 inline AuthProvider& WithAuthType(AuthenticationType&& value) { SetAuthType(std::move(value)); return *this;}
54
56
59 inline const CognitoConfig& GetCognitoConfig() const{ return m_cognitoConfig; }
60 inline bool CognitoConfigHasBeenSet() const { return m_cognitoConfigHasBeenSet; }
61 inline void SetCognitoConfig(const CognitoConfig& value) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = value; }
62 inline void SetCognitoConfig(CognitoConfig&& value) { m_cognitoConfigHasBeenSet = true; m_cognitoConfig = std::move(value); }
63 inline AuthProvider& WithCognitoConfig(const CognitoConfig& value) { SetCognitoConfig(value); return *this;}
64 inline AuthProvider& WithCognitoConfig(CognitoConfig&& value) { SetCognitoConfig(std::move(value)); return *this;}
66
68
69 inline const OpenIDConnectConfig& GetOpenIDConnectConfig() const{ return m_openIDConnectConfig; }
70 inline bool OpenIDConnectConfigHasBeenSet() const { return m_openIDConnectConfigHasBeenSet; }
71 inline void SetOpenIDConnectConfig(const OpenIDConnectConfig& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = value; }
72 inline void SetOpenIDConnectConfig(OpenIDConnectConfig&& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = std::move(value); }
74 inline AuthProvider& WithOpenIDConnectConfig(OpenIDConnectConfig&& value) { SetOpenIDConnectConfig(std::move(value)); return *this;}
76
78
79 inline const LambdaAuthorizerConfig& GetLambdaAuthorizerConfig() const{ return m_lambdaAuthorizerConfig; }
80 inline bool LambdaAuthorizerConfigHasBeenSet() const { return m_lambdaAuthorizerConfigHasBeenSet; }
81 inline void SetLambdaAuthorizerConfig(const LambdaAuthorizerConfig& value) { m_lambdaAuthorizerConfigHasBeenSet = true; m_lambdaAuthorizerConfig = value; }
82 inline void SetLambdaAuthorizerConfig(LambdaAuthorizerConfig&& value) { m_lambdaAuthorizerConfigHasBeenSet = true; m_lambdaAuthorizerConfig = std::move(value); }
86 private:
87
88 AuthenticationType m_authType;
89 bool m_authTypeHasBeenSet = false;
90
91 CognitoConfig m_cognitoConfig;
92 bool m_cognitoConfigHasBeenSet = false;
93
94 OpenIDConnectConfig m_openIDConnectConfig;
95 bool m_openIDConnectConfigHasBeenSet = false;
96
97 LambdaAuthorizerConfig m_lambdaAuthorizerConfig;
98 bool m_lambdaAuthorizerConfigHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace AppSync
103} // namespace Aws
const CognitoConfig & GetCognitoConfig() const
AWS_APPSYNC_API AuthProvider(Aws::Utils::Json::JsonView jsonValue)
AuthProvider & WithLambdaAuthorizerConfig(const LambdaAuthorizerConfig &value)
void SetLambdaAuthorizerConfig(LambdaAuthorizerConfig &&value)
const AuthenticationType & GetAuthType() const
AuthProvider & WithLambdaAuthorizerConfig(LambdaAuthorizerConfig &&value)
void SetOpenIDConnectConfig(OpenIDConnectConfig &&value)
void SetLambdaAuthorizerConfig(const LambdaAuthorizerConfig &value)
AuthProvider & WithAuthType(AuthenticationType &&value)
void SetOpenIDConnectConfig(const OpenIDConnectConfig &value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
AuthProvider & WithCognitoConfig(const CognitoConfig &value)
const OpenIDConnectConfig & GetOpenIDConnectConfig() const
AuthProvider & WithCognitoConfig(CognitoConfig &&value)
void SetAuthType(const AuthenticationType &value)
void SetCognitoConfig(const CognitoConfig &value)
const LambdaAuthorizerConfig & GetLambdaAuthorizerConfig() const
void SetCognitoConfig(CognitoConfig &&value)
AuthProvider & WithOpenIDConnectConfig(OpenIDConnectConfig &&value)
void SetAuthType(AuthenticationType &&value)
AuthProvider & WithOpenIDConnectConfig(const OpenIDConnectConfig &value)
bool LambdaAuthorizerConfigHasBeenSet() const
AWS_APPSYNC_API AuthProvider & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthProvider & WithAuthType(const AuthenticationType &value)
Aws::Utils::Json::JsonValue JsonValue