AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
Authorization.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/model/CognitoConfig.h>
9#include <aws/apigatewayv2/model/None.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ApiGatewayV2 {
21namespace Model {
22
30 public:
31 AWS_APIGATEWAYV2_API Authorization() = default;
32 AWS_APIGATEWAYV2_API Authorization(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APIGATEWAYV2_API Authorization& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const CognitoConfig& GetCognitoConfig() const { return m_cognitoConfig; }
41 inline bool CognitoConfigHasBeenSet() const { return m_cognitoConfigHasBeenSet; }
42 template <typename CognitoConfigT = CognitoConfig>
43 void SetCognitoConfig(CognitoConfigT&& value) {
44 m_cognitoConfigHasBeenSet = true;
45 m_cognitoConfig = std::forward<CognitoConfigT>(value);
46 }
47 template <typename CognitoConfigT = CognitoConfig>
48 Authorization& WithCognitoConfig(CognitoConfigT&& value) {
49 SetCognitoConfig(std::forward<CognitoConfigT>(value));
50 return *this;
51 }
53
55
59 inline const None& GetNone() const { return m_none; }
60 inline bool NoneHasBeenSet() const { return m_noneHasBeenSet; }
61 template <typename NoneT = None>
62 void SetNone(NoneT&& value) {
63 m_noneHasBeenSet = true;
64 m_none = std::forward<NoneT>(value);
65 }
66 template <typename NoneT = None>
67 Authorization& WithNone(NoneT&& value) {
68 SetNone(std::forward<NoneT>(value));
69 return *this;
70 }
72 private:
73 CognitoConfig m_cognitoConfig;
74
75 None m_none;
76 bool m_cognitoConfigHasBeenSet = false;
77 bool m_noneHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace ApiGatewayV2
82} // namespace Aws
Authorization & WithCognitoConfig(CognitoConfigT &&value)
AWS_APIGATEWAYV2_API Authorization & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAYV2_API Authorization(Aws::Utils::Json::JsonView jsonValue)
Authorization & WithNone(NoneT &&value)
AWS_APIGATEWAYV2_API Authorization()=default
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
const CognitoConfig & GetCognitoConfig() const
void SetCognitoConfig(CognitoConfigT &&value)
Aws::Utils::Json::JsonValue JsonValue