AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
AuthorizationConfig.h
1
6#pragma once
7#include <aws/apiportal/APIPortal_EXPORTS.h>
8#include <aws/apiportal/model/CognitoConfig.h>
9#include <aws/apiportal/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 APIPortal {
21namespace Model {
22
31 public:
32 AWS_APIPORTAL_API AuthorizationConfig() = default;
33 AWS_APIPORTAL_API AuthorizationConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const None& GetNone() const { return m_none; }
42 inline bool NoneHasBeenSet() const { return m_noneHasBeenSet; }
43 template <typename NoneT = None>
44 void SetNone(NoneT&& value) {
45 m_noneHasBeenSet = true;
46 m_none = std::forward<NoneT>(value);
47 }
48 template <typename NoneT = None>
49 AuthorizationConfig& WithNone(NoneT&& value) {
50 SetNone(std::forward<NoneT>(value));
51 return *this;
52 }
54
56
59 inline const CognitoConfig& GetCognitoConfig() const { return m_cognitoConfig; }
60 inline bool CognitoConfigHasBeenSet() const { return m_cognitoConfigHasBeenSet; }
61 template <typename CognitoConfigT = CognitoConfig>
62 void SetCognitoConfig(CognitoConfigT&& value) {
63 m_cognitoConfigHasBeenSet = true;
64 m_cognitoConfig = std::forward<CognitoConfigT>(value);
65 }
66 template <typename CognitoConfigT = CognitoConfig>
67 AuthorizationConfig& WithCognitoConfig(CognitoConfigT&& value) {
68 SetCognitoConfig(std::forward<CognitoConfigT>(value));
69 return *this;
70 }
72 private:
73 None m_none;
74
75 CognitoConfig m_cognitoConfig;
76 bool m_noneHasBeenSet = false;
77 bool m_cognitoConfigHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace APIPortal
82} // namespace Aws
AuthorizationConfig & WithNone(NoneT &&value)
AWS_APIPORTAL_API AuthorizationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthorizationConfig & WithCognitoConfig(CognitoConfigT &&value)
AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APIPORTAL_API AuthorizationConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_APIPORTAL_API AuthorizationConfig()=default
const CognitoConfig & GetCognitoConfig() const
void SetCognitoConfig(CognitoConfigT &&value)
Aws::Utils::Json::JsonValue JsonValue