AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
AuthorizerDescription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/AuthorizerStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT {
23namespace Model {
24
31 public:
32 AWS_IOT_API AuthorizerDescription() = default;
36
38
41 inline const Aws::String& GetAuthorizerName() const { return m_authorizerName; }
42 inline bool AuthorizerNameHasBeenSet() const { return m_authorizerNameHasBeenSet; }
43 template <typename AuthorizerNameT = Aws::String>
44 void SetAuthorizerName(AuthorizerNameT&& value) {
45 m_authorizerNameHasBeenSet = true;
46 m_authorizerName = std::forward<AuthorizerNameT>(value);
47 }
48 template <typename AuthorizerNameT = Aws::String>
49 AuthorizerDescription& WithAuthorizerName(AuthorizerNameT&& value) {
50 SetAuthorizerName(std::forward<AuthorizerNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAuthorizerArn() const { return m_authorizerArn; }
60 inline bool AuthorizerArnHasBeenSet() const { return m_authorizerArnHasBeenSet; }
61 template <typename AuthorizerArnT = Aws::String>
62 void SetAuthorizerArn(AuthorizerArnT&& value) {
63 m_authorizerArnHasBeenSet = true;
64 m_authorizerArn = std::forward<AuthorizerArnT>(value);
65 }
66 template <typename AuthorizerArnT = Aws::String>
67 AuthorizerDescription& WithAuthorizerArn(AuthorizerArnT&& value) {
68 SetAuthorizerArn(std::forward<AuthorizerArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetAuthorizerFunctionArn() const { return m_authorizerFunctionArn; }
78 inline bool AuthorizerFunctionArnHasBeenSet() const { return m_authorizerFunctionArnHasBeenSet; }
79 template <typename AuthorizerFunctionArnT = Aws::String>
80 void SetAuthorizerFunctionArn(AuthorizerFunctionArnT&& value) {
81 m_authorizerFunctionArnHasBeenSet = true;
82 m_authorizerFunctionArn = std::forward<AuthorizerFunctionArnT>(value);
83 }
84 template <typename AuthorizerFunctionArnT = Aws::String>
85 AuthorizerDescription& WithAuthorizerFunctionArn(AuthorizerFunctionArnT&& value) {
86 SetAuthorizerFunctionArn(std::forward<AuthorizerFunctionArnT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetTokenKeyName() const { return m_tokenKeyName; }
96 inline bool TokenKeyNameHasBeenSet() const { return m_tokenKeyNameHasBeenSet; }
97 template <typename TokenKeyNameT = Aws::String>
98 void SetTokenKeyName(TokenKeyNameT&& value) {
99 m_tokenKeyNameHasBeenSet = true;
100 m_tokenKeyName = std::forward<TokenKeyNameT>(value);
101 }
102 template <typename TokenKeyNameT = Aws::String>
103 AuthorizerDescription& WithTokenKeyName(TokenKeyNameT&& value) {
104 SetTokenKeyName(std::forward<TokenKeyNameT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Map<Aws::String, Aws::String>& GetTokenSigningPublicKeys() const { return m_tokenSigningPublicKeys; }
115 inline bool TokenSigningPublicKeysHasBeenSet() const { return m_tokenSigningPublicKeysHasBeenSet; }
116 template <typename TokenSigningPublicKeysT = Aws::Map<Aws::String, Aws::String>>
117 void SetTokenSigningPublicKeys(TokenSigningPublicKeysT&& value) {
118 m_tokenSigningPublicKeysHasBeenSet = true;
119 m_tokenSigningPublicKeys = std::forward<TokenSigningPublicKeysT>(value);
120 }
121 template <typename TokenSigningPublicKeysT = Aws::Map<Aws::String, Aws::String>>
122 AuthorizerDescription& WithTokenSigningPublicKeys(TokenSigningPublicKeysT&& value) {
123 SetTokenSigningPublicKeys(std::forward<TokenSigningPublicKeysT>(value));
124 return *this;
125 }
126 template <typename TokenSigningPublicKeysKeyT = Aws::String, typename TokenSigningPublicKeysValueT = Aws::String>
127 AuthorizerDescription& AddTokenSigningPublicKeys(TokenSigningPublicKeysKeyT&& key, TokenSigningPublicKeysValueT&& value) {
128 m_tokenSigningPublicKeysHasBeenSet = true;
129 m_tokenSigningPublicKeys.emplace(std::forward<TokenSigningPublicKeysKeyT>(key), std::forward<TokenSigningPublicKeysValueT>(value));
130 return *this;
131 }
133
135
138 inline AuthorizerStatus GetStatus() const { return m_status; }
139 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
140 inline void SetStatus(AuthorizerStatus value) {
141 m_statusHasBeenSet = true;
142 m_status = value;
143 }
145 SetStatus(value);
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
155 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
156 template <typename CreationDateT = Aws::Utils::DateTime>
157 void SetCreationDate(CreationDateT&& value) {
158 m_creationDateHasBeenSet = true;
159 m_creationDate = std::forward<CreationDateT>(value);
160 }
161 template <typename CreationDateT = Aws::Utils::DateTime>
162 AuthorizerDescription& WithCreationDate(CreationDateT&& value) {
163 SetCreationDate(std::forward<CreationDateT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
173 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
174 template <typename LastModifiedDateT = Aws::Utils::DateTime>
175 void SetLastModifiedDate(LastModifiedDateT&& value) {
176 m_lastModifiedDateHasBeenSet = true;
177 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
178 }
179 template <typename LastModifiedDateT = Aws::Utils::DateTime>
180 AuthorizerDescription& WithLastModifiedDate(LastModifiedDateT&& value) {
181 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
182 return *this;
183 }
185
187
191 inline bool GetSigningDisabled() const { return m_signingDisabled; }
192 inline bool SigningDisabledHasBeenSet() const { return m_signingDisabledHasBeenSet; }
193 inline void SetSigningDisabled(bool value) {
194 m_signingDisabledHasBeenSet = true;
195 m_signingDisabled = value;
196 }
198 SetSigningDisabled(value);
199 return *this;
200 }
202
204
209 inline bool GetEnableCachingForHttp() const { return m_enableCachingForHttp; }
210 inline bool EnableCachingForHttpHasBeenSet() const { return m_enableCachingForHttpHasBeenSet; }
211 inline void SetEnableCachingForHttp(bool value) {
212 m_enableCachingForHttpHasBeenSet = true;
213 m_enableCachingForHttp = value;
214 }
217 return *this;
218 }
220 private:
221 Aws::String m_authorizerName;
222
223 Aws::String m_authorizerArn;
224
225 Aws::String m_authorizerFunctionArn;
226
227 Aws::String m_tokenKeyName;
228
229 Aws::Map<Aws::String, Aws::String> m_tokenSigningPublicKeys;
230
232
233 Aws::Utils::DateTime m_creationDate{};
234
235 Aws::Utils::DateTime m_lastModifiedDate{};
236
237 bool m_signingDisabled{false};
238
239 bool m_enableCachingForHttp{false};
240 bool m_authorizerNameHasBeenSet = false;
241 bool m_authorizerArnHasBeenSet = false;
242 bool m_authorizerFunctionArnHasBeenSet = false;
243 bool m_tokenKeyNameHasBeenSet = false;
244 bool m_tokenSigningPublicKeysHasBeenSet = false;
245 bool m_statusHasBeenSet = false;
246 bool m_creationDateHasBeenSet = false;
247 bool m_lastModifiedDateHasBeenSet = false;
248 bool m_signingDisabledHasBeenSet = false;
249 bool m_enableCachingForHttpHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace IoT
254} // namespace Aws
AuthorizerDescription & WithEnableCachingForHttp(bool value)
void SetAuthorizerArn(AuthorizerArnT &&value)
AuthorizerDescription & WithStatus(AuthorizerStatus value)
void SetTokenKeyName(TokenKeyNameT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTokenSigningPublicKeys() const
void SetTokenSigningPublicKeys(TokenSigningPublicKeysT &&value)
AuthorizerDescription & WithTokenSigningPublicKeys(TokenSigningPublicKeysT &&value)
const Aws::String & GetAuthorizerArn() const
AuthorizerDescription & WithAuthorizerArn(AuthorizerArnT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API AuthorizerDescription()=default
void SetAuthorizerFunctionArn(AuthorizerFunctionArnT &&value)
const Aws::String & GetAuthorizerFunctionArn() const
const Aws::Utils::DateTime & GetLastModifiedDate() const
AWS_IOT_API AuthorizerDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthorizerDescription & WithLastModifiedDate(LastModifiedDateT &&value)
AuthorizerDescription & WithAuthorizerFunctionArn(AuthorizerFunctionArnT &&value)
void SetAuthorizerName(AuthorizerNameT &&value)
const Aws::String & GetAuthorizerName() const
AuthorizerDescription & AddTokenSigningPublicKeys(TokenSigningPublicKeysKeyT &&key, TokenSigningPublicKeysValueT &&value)
AuthorizerDescription & WithTokenKeyName(TokenKeyNameT &&value)
AuthorizerDescription & WithSigningDisabled(bool value)
AuthorizerDescription & WithCreationDate(CreationDateT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
AuthorizerDescription & WithAuthorizerName(AuthorizerNameT &&value)
AWS_IOT_API AuthorizerDescription(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTokenKeyName() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue