AWS SDK for C++  1.9.129
AWS SDK for C++
CreateAuthorizerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
13 #include <aws/iot/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace IoT
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateAuthorizer"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetAuthorizerName() const{ return m_authorizerName; }
43 
47  inline bool AuthorizerNameHasBeenSet() const { return m_authorizerNameHasBeenSet; }
48 
52  inline void SetAuthorizerName(const Aws::String& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = value; }
53 
57  inline void SetAuthorizerName(Aws::String&& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = std::move(value); }
58 
62  inline void SetAuthorizerName(const char* value) { m_authorizerNameHasBeenSet = true; m_authorizerName.assign(value); }
63 
67  inline CreateAuthorizerRequest& WithAuthorizerName(const Aws::String& value) { SetAuthorizerName(value); return *this;}
68 
72  inline CreateAuthorizerRequest& WithAuthorizerName(Aws::String&& value) { SetAuthorizerName(std::move(value)); return *this;}
73 
77  inline CreateAuthorizerRequest& WithAuthorizerName(const char* value) { SetAuthorizerName(value); return *this;}
78 
79 
83  inline const Aws::String& GetAuthorizerFunctionArn() const{ return m_authorizerFunctionArn; }
84 
88  inline bool AuthorizerFunctionArnHasBeenSet() const { return m_authorizerFunctionArnHasBeenSet; }
89 
93  inline void SetAuthorizerFunctionArn(const Aws::String& value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn = value; }
94 
98  inline void SetAuthorizerFunctionArn(Aws::String&& value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn = std::move(value); }
99 
103  inline void SetAuthorizerFunctionArn(const char* value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn.assign(value); }
104 
108  inline CreateAuthorizerRequest& WithAuthorizerFunctionArn(const Aws::String& value) { SetAuthorizerFunctionArn(value); return *this;}
109 
113  inline CreateAuthorizerRequest& WithAuthorizerFunctionArn(Aws::String&& value) { SetAuthorizerFunctionArn(std::move(value)); return *this;}
114 
118  inline CreateAuthorizerRequest& WithAuthorizerFunctionArn(const char* value) { SetAuthorizerFunctionArn(value); return *this;}
119 
120 
125  inline const Aws::String& GetTokenKeyName() const{ return m_tokenKeyName; }
126 
131  inline bool TokenKeyNameHasBeenSet() const { return m_tokenKeyNameHasBeenSet; }
132 
137  inline void SetTokenKeyName(const Aws::String& value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName = value; }
138 
143  inline void SetTokenKeyName(Aws::String&& value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName = std::move(value); }
144 
149  inline void SetTokenKeyName(const char* value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName.assign(value); }
150 
155  inline CreateAuthorizerRequest& WithTokenKeyName(const Aws::String& value) { SetTokenKeyName(value); return *this;}
156 
161  inline CreateAuthorizerRequest& WithTokenKeyName(Aws::String&& value) { SetTokenKeyName(std::move(value)); return *this;}
162 
167  inline CreateAuthorizerRequest& WithTokenKeyName(const char* value) { SetTokenKeyName(value); return *this;}
168 
169 
174  inline const Aws::Map<Aws::String, Aws::String>& GetTokenSigningPublicKeys() const{ return m_tokenSigningPublicKeys; }
175 
180  inline bool TokenSigningPublicKeysHasBeenSet() const { return m_tokenSigningPublicKeysHasBeenSet; }
181 
186  inline void SetTokenSigningPublicKeys(const Aws::Map<Aws::String, Aws::String>& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys = value; }
187 
192  inline void SetTokenSigningPublicKeys(Aws::Map<Aws::String, Aws::String>&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys = std::move(value); }
193 
198  inline CreateAuthorizerRequest& WithTokenSigningPublicKeys(const Aws::Map<Aws::String, Aws::String>& value) { SetTokenSigningPublicKeys(value); return *this;}
199 
204  inline CreateAuthorizerRequest& WithTokenSigningPublicKeys(Aws::Map<Aws::String, Aws::String>&& value) { SetTokenSigningPublicKeys(std::move(value)); return *this;}
205 
210  inline CreateAuthorizerRequest& AddTokenSigningPublicKeys(const Aws::String& key, const Aws::String& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, value); return *this; }
211 
216  inline CreateAuthorizerRequest& AddTokenSigningPublicKeys(Aws::String&& key, const Aws::String& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), value); return *this; }
217 
222  inline CreateAuthorizerRequest& AddTokenSigningPublicKeys(const Aws::String& key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, std::move(value)); return *this; }
223 
228  inline CreateAuthorizerRequest& AddTokenSigningPublicKeys(Aws::String&& key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), std::move(value)); return *this; }
229 
234  inline CreateAuthorizerRequest& AddTokenSigningPublicKeys(const char* key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, std::move(value)); return *this; }
235 
240  inline CreateAuthorizerRequest& AddTokenSigningPublicKeys(Aws::String&& key, const char* value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), value); return *this; }
241 
246  inline CreateAuthorizerRequest& AddTokenSigningPublicKeys(const char* key, const char* value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, value); return *this; }
247 
248 
252  inline const AuthorizerStatus& GetStatus() const{ return m_status; }
253 
257  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
258 
262  inline void SetStatus(const AuthorizerStatus& value) { m_statusHasBeenSet = true; m_status = value; }
263 
267  inline void SetStatus(AuthorizerStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
268 
272  inline CreateAuthorizerRequest& WithStatus(const AuthorizerStatus& value) { SetStatus(value); return *this;}
273 
277  inline CreateAuthorizerRequest& WithStatus(AuthorizerStatus&& value) { SetStatus(std::move(value)); return *this;}
278 
279 
287  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
288 
296  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
297 
305  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
306 
314  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
315 
323  inline CreateAuthorizerRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
324 
332  inline CreateAuthorizerRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
333 
341  inline CreateAuthorizerRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
342 
350  inline CreateAuthorizerRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
351 
352 
357  inline bool GetSigningDisabled() const{ return m_signingDisabled; }
358 
363  inline bool SigningDisabledHasBeenSet() const { return m_signingDisabledHasBeenSet; }
364 
369  inline void SetSigningDisabled(bool value) { m_signingDisabledHasBeenSet = true; m_signingDisabled = value; }
370 
375  inline CreateAuthorizerRequest& WithSigningDisabled(bool value) { SetSigningDisabled(value); return *this;}
376 
377  private:
378 
379  Aws::String m_authorizerName;
380  bool m_authorizerNameHasBeenSet;
381 
382  Aws::String m_authorizerFunctionArn;
383  bool m_authorizerFunctionArnHasBeenSet;
384 
385  Aws::String m_tokenKeyName;
386  bool m_tokenKeyNameHasBeenSet;
387 
388  Aws::Map<Aws::String, Aws::String> m_tokenSigningPublicKeys;
389  bool m_tokenSigningPublicKeysHasBeenSet;
390 
391  AuthorizerStatus m_status;
392  bool m_statusHasBeenSet;
393 
394  Aws::Vector<Tag> m_tags;
395  bool m_tagsHasBeenSet;
396 
397  bool m_signingDisabled;
398  bool m_signingDisabledHasBeenSet;
399  };
400 
401 } // namespace Model
402 } // namespace IoT
403 } // namespace Aws
Aws::IoT::Model::CreateAuthorizerRequest::GetAuthorizerName
const Aws::String & GetAuthorizerName() const
Definition: CreateAuthorizerRequest.h:42
Aws::IoT::Model::CreateAuthorizerRequest::WithStatus
CreateAuthorizerRequest & WithStatus(AuthorizerStatus &&value)
Definition: CreateAuthorizerRequest.h:277
Aws::IoT::Model::CreateAuthorizerRequest::WithTokenSigningPublicKeys
CreateAuthorizerRequest & WithTokenSigningPublicKeys(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAuthorizerRequest.h:204
Aws::IoT::Model::CreateAuthorizerRequest::TokenSigningPublicKeysHasBeenSet
bool TokenSigningPublicKeysHasBeenSet() const
Definition: CreateAuthorizerRequest.h:180
Aws::IoT::Model::CreateAuthorizerRequest::AddTokenSigningPublicKeys
CreateAuthorizerRequest & AddTokenSigningPublicKeys(Aws::String &&key, const char *value)
Definition: CreateAuthorizerRequest.h:240
Aws::IoT::Model::CreateAuthorizerRequest::GetStatus
const AuthorizerStatus & GetStatus() const
Definition: CreateAuthorizerRequest.h:252
Aws::IoT::Model::CreateAuthorizerRequest::SetStatus
void SetStatus(const AuthorizerStatus &value)
Definition: CreateAuthorizerRequest.h:262
Aws::IoT::Model::CreateAuthorizerRequest::WithAuthorizerFunctionArn
CreateAuthorizerRequest & WithAuthorizerFunctionArn(Aws::String &&value)
Definition: CreateAuthorizerRequest.h:113
Aws::IoT::Model::CreateAuthorizerRequest::SetAuthorizerFunctionArn
void SetAuthorizerFunctionArn(const Aws::String &value)
Definition: CreateAuthorizerRequest.h:93
Aws::IoT::Model::CreateAuthorizerRequest::AddTags
CreateAuthorizerRequest & AddTags(const Tag &value)
Definition: CreateAuthorizerRequest.h:341
Aws::IoT::Model::CreateAuthorizerRequest::WithSigningDisabled
CreateAuthorizerRequest & WithSigningDisabled(bool value)
Definition: CreateAuthorizerRequest.h:375
AuthorizerStatus.h
Aws::IoT::Model::CreateAuthorizerRequest::SetAuthorizerName
void SetAuthorizerName(Aws::String &&value)
Definition: CreateAuthorizerRequest.h:57
Aws::IoT::Model::CreateAuthorizerRequest::AddTokenSigningPublicKeys
CreateAuthorizerRequest & AddTokenSigningPublicKeys(const Aws::String &key, Aws::String &&value)
Definition: CreateAuthorizerRequest.h:222
Aws::IoT::Model::CreateAuthorizerRequest::WithAuthorizerName
CreateAuthorizerRequest & WithAuthorizerName(const char *value)
Definition: CreateAuthorizerRequest.h:77
Aws::IoT::Model::CreateAuthorizerRequest::WithTokenKeyName
CreateAuthorizerRequest & WithTokenKeyName(const Aws::String &value)
Definition: CreateAuthorizerRequest.h:155
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::CreateAuthorizerRequest::AddTokenSigningPublicKeys
CreateAuthorizerRequest & AddTokenSigningPublicKeys(const char *key, const char *value)
Definition: CreateAuthorizerRequest.h:246
AWSVector.h
Aws::IoT::Model::CreateAuthorizerRequest::GetSigningDisabled
bool GetSigningDisabled() const
Definition: CreateAuthorizerRequest.h:357
Aws::IoT::Model::CreateAuthorizerRequest::WithTags
CreateAuthorizerRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateAuthorizerRequest.h:323
Aws::IoT::Model::CreateAuthorizerRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateAuthorizerRequest.h:305
Aws::IoT::Model::CreateAuthorizerRequest::WithAuthorizerName
CreateAuthorizerRequest & WithAuthorizerName(Aws::String &&value)
Definition: CreateAuthorizerRequest.h:72
Aws::IoT::Model::CreateAuthorizerRequest
Definition: CreateAuthorizerRequest.h:26
Aws::IoT::Model::CreateAuthorizerRequest::AuthorizerFunctionArnHasBeenSet
bool AuthorizerFunctionArnHasBeenSet() const
Definition: CreateAuthorizerRequest.h:88
Aws::IoT::Model::Tag
Definition: Tag.h:33
Aws::IoT::Model::CreateAuthorizerRequest::SetStatus
void SetStatus(AuthorizerStatus &&value)
Definition: CreateAuthorizerRequest.h:267
Aws::IoT::Model::CreateAuthorizerRequest::SetTokenKeyName
void SetTokenKeyName(Aws::String &&value)
Definition: CreateAuthorizerRequest.h:143
Aws::IoT::Model::CreateAuthorizerRequest::AddTokenSigningPublicKeys
CreateAuthorizerRequest & AddTokenSigningPublicKeys(const char *key, Aws::String &&value)
Definition: CreateAuthorizerRequest.h:234
Aws::IoT::Model::CreateAuthorizerRequest::GetTokenKeyName
const Aws::String & GetTokenKeyName() const
Definition: CreateAuthorizerRequest.h:125
Aws::IoT::Model::CreateAuthorizerRequest::SetTokenSigningPublicKeys
void SetTokenSigningPublicKeys(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateAuthorizerRequest.h:192
Aws::IoT::Model::CreateAuthorizerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::CreateAuthorizerRequest::TokenKeyNameHasBeenSet
bool TokenKeyNameHasBeenSet() const
Definition: CreateAuthorizerRequest.h:131
Aws::IoT::Model::CreateAuthorizerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAuthorizerRequest.h:34
AWSString.h
Aws::IoT::Model::CreateAuthorizerRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateAuthorizerRequest.h:287
Aws::IoT::Model::CreateAuthorizerRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateAuthorizerRequest.h:296
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CreateAuthorizerRequest::GetTokenSigningPublicKeys
const Aws::Map< Aws::String, Aws::String > & GetTokenSigningPublicKeys() const
Definition: CreateAuthorizerRequest.h:174
Aws::IoT::Model::CreateAuthorizerRequest::SetTokenSigningPublicKeys
void SetTokenSigningPublicKeys(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateAuthorizerRequest.h:186
Aws::IoT::Model::CreateAuthorizerRequest::AddTokenSigningPublicKeys
CreateAuthorizerRequest & AddTokenSigningPublicKeys(Aws::String &&key, const Aws::String &value)
Definition: CreateAuthorizerRequest.h:216
Aws::IoT::Model::CreateAuthorizerRequest::SigningDisabledHasBeenSet
bool SigningDisabledHasBeenSet() const
Definition: CreateAuthorizerRequest.h:363
Aws::IoT::Model::CreateAuthorizerRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: CreateAuthorizerRequest.h:257
Aws::IoT::Model::CreateAuthorizerRequest::WithAuthorizerFunctionArn
CreateAuthorizerRequest & WithAuthorizerFunctionArn(const Aws::String &value)
Definition: CreateAuthorizerRequest.h:108
Aws::IoT::Model::CreateAuthorizerRequest::WithTags
CreateAuthorizerRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateAuthorizerRequest.h:332
Aws::IoT::Model::CreateAuthorizerRequest::SetSigningDisabled
void SetSigningDisabled(bool value)
Definition: CreateAuthorizerRequest.h:369
Aws::IoT::Model::CreateAuthorizerRequest::WithAuthorizerName
CreateAuthorizerRequest & WithAuthorizerName(const Aws::String &value)
Definition: CreateAuthorizerRequest.h:67
Aws::IoT::Model::CreateAuthorizerRequest::AuthorizerNameHasBeenSet
bool AuthorizerNameHasBeenSet() const
Definition: CreateAuthorizerRequest.h:47
Aws::IoT::Model::CreateAuthorizerRequest::WithStatus
CreateAuthorizerRequest & WithStatus(const AuthorizerStatus &value)
Definition: CreateAuthorizerRequest.h:272
Aws::IoT::Model::CreateAuthorizerRequest::CreateAuthorizerRequest
CreateAuthorizerRequest()
Aws::IoT::Model::CreateAuthorizerRequest::WithTokenKeyName
CreateAuthorizerRequest & WithTokenKeyName(Aws::String &&value)
Definition: CreateAuthorizerRequest.h:161
Aws::IoT::Model::CreateAuthorizerRequest::WithTokenSigningPublicKeys
CreateAuthorizerRequest & WithTokenSigningPublicKeys(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateAuthorizerRequest.h:198
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CreateAuthorizerRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateAuthorizerRequest.h:314
Aws::IoT::Model::CreateAuthorizerRequest::SetAuthorizerName
void SetAuthorizerName(const char *value)
Definition: CreateAuthorizerRequest.h:62
Aws::IoT::Model::CreateAuthorizerRequest::AddTags
CreateAuthorizerRequest & AddTags(Tag &&value)
Definition: CreateAuthorizerRequest.h:350
Aws::IoT::Model::CreateAuthorizerRequest::SetAuthorizerName
void SetAuthorizerName(const Aws::String &value)
Definition: CreateAuthorizerRequest.h:52
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::CreateAuthorizerRequest::AddTokenSigningPublicKeys
CreateAuthorizerRequest & AddTokenSigningPublicKeys(const Aws::String &key, const Aws::String &value)
Definition: CreateAuthorizerRequest.h:210
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::CreateAuthorizerRequest::WithTokenKeyName
CreateAuthorizerRequest & WithTokenKeyName(const char *value)
Definition: CreateAuthorizerRequest.h:167
IoTRequest.h
Aws::IoT::Model::CreateAuthorizerRequest::SetAuthorizerFunctionArn
void SetAuthorizerFunctionArn(const char *value)
Definition: CreateAuthorizerRequest.h:103
Aws::IoT::Model::AuthorizerStatus
AuthorizerStatus
Definition: AuthorizerStatus.h:17
AWSMap.h
Aws::IoT::Model::CreateAuthorizerRequest::GetAuthorizerFunctionArn
const Aws::String & GetAuthorizerFunctionArn() const
Definition: CreateAuthorizerRequest.h:83
Aws::IoT::Model::CreateAuthorizerRequest::WithAuthorizerFunctionArn
CreateAuthorizerRequest & WithAuthorizerFunctionArn(const char *value)
Definition: CreateAuthorizerRequest.h:118
Tag.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::IoT::Model::CreateAuthorizerRequest::SetTokenKeyName
void SetTokenKeyName(const Aws::String &value)
Definition: CreateAuthorizerRequest.h:137
Aws::IoT::Model::CreateAuthorizerRequest::SetAuthorizerFunctionArn
void SetAuthorizerFunctionArn(Aws::String &&value)
Definition: CreateAuthorizerRequest.h:98
IoT_EXPORTS.h
Aws::IoT::Model::CreateAuthorizerRequest::AddTokenSigningPublicKeys
CreateAuthorizerRequest & AddTokenSigningPublicKeys(Aws::String &&key, Aws::String &&value)
Definition: CreateAuthorizerRequest.h:228
Aws::IoT::Model::CreateAuthorizerRequest::SetTokenKeyName
void SetTokenKeyName(const char *value)
Definition: CreateAuthorizerRequest.h:149