AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAuthorizerRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/iot/model/AuthorizerStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/iot/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace IoT
19{
20namespace 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_IOT_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetAuthorizerName() const{ return m_authorizerName; }
44 inline bool AuthorizerNameHasBeenSet() const { return m_authorizerNameHasBeenSet; }
45 inline void SetAuthorizerName(const Aws::String& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = value; }
46 inline void SetAuthorizerName(Aws::String&& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = std::move(value); }
47 inline void SetAuthorizerName(const char* value) { m_authorizerNameHasBeenSet = true; m_authorizerName.assign(value); }
48 inline CreateAuthorizerRequest& WithAuthorizerName(const Aws::String& value) { SetAuthorizerName(value); return *this;}
49 inline CreateAuthorizerRequest& WithAuthorizerName(Aws::String&& value) { SetAuthorizerName(std::move(value)); return *this;}
50 inline CreateAuthorizerRequest& WithAuthorizerName(const char* value) { SetAuthorizerName(value); return *this;}
52
54
57 inline const Aws::String& GetAuthorizerFunctionArn() const{ return m_authorizerFunctionArn; }
58 inline bool AuthorizerFunctionArnHasBeenSet() const { return m_authorizerFunctionArnHasBeenSet; }
59 inline void SetAuthorizerFunctionArn(const Aws::String& value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn = value; }
60 inline void SetAuthorizerFunctionArn(Aws::String&& value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn = std::move(value); }
61 inline void SetAuthorizerFunctionArn(const char* value) { m_authorizerFunctionArnHasBeenSet = true; m_authorizerFunctionArn.assign(value); }
64 inline CreateAuthorizerRequest& WithAuthorizerFunctionArn(const char* value) { SetAuthorizerFunctionArn(value); return *this;}
66
68
72 inline const Aws::String& GetTokenKeyName() const{ return m_tokenKeyName; }
73 inline bool TokenKeyNameHasBeenSet() const { return m_tokenKeyNameHasBeenSet; }
74 inline void SetTokenKeyName(const Aws::String& value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName = value; }
75 inline void SetTokenKeyName(Aws::String&& value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName = std::move(value); }
76 inline void SetTokenKeyName(const char* value) { m_tokenKeyNameHasBeenSet = true; m_tokenKeyName.assign(value); }
77 inline CreateAuthorizerRequest& WithTokenKeyName(const Aws::String& value) { SetTokenKeyName(value); return *this;}
78 inline CreateAuthorizerRequest& WithTokenKeyName(Aws::String&& value) { SetTokenKeyName(std::move(value)); return *this;}
79 inline CreateAuthorizerRequest& WithTokenKeyName(const char* value) { SetTokenKeyName(value); return *this;}
81
83
87 inline const Aws::Map<Aws::String, Aws::String>& GetTokenSigningPublicKeys() const{ return m_tokenSigningPublicKeys; }
88 inline bool TokenSigningPublicKeysHasBeenSet() const { return m_tokenSigningPublicKeysHasBeenSet; }
89 inline void SetTokenSigningPublicKeys(const Aws::Map<Aws::String, Aws::String>& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys = value; }
90 inline void SetTokenSigningPublicKeys(Aws::Map<Aws::String, Aws::String>&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys = std::move(value); }
93 inline CreateAuthorizerRequest& AddTokenSigningPublicKeys(const Aws::String& key, const Aws::String& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, value); return *this; }
94 inline CreateAuthorizerRequest& AddTokenSigningPublicKeys(Aws::String&& key, const Aws::String& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), value); return *this; }
95 inline CreateAuthorizerRequest& AddTokenSigningPublicKeys(const Aws::String& key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, std::move(value)); return *this; }
96 inline CreateAuthorizerRequest& AddTokenSigningPublicKeys(Aws::String&& key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), std::move(value)); return *this; }
97 inline CreateAuthorizerRequest& AddTokenSigningPublicKeys(const char* key, Aws::String&& value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, std::move(value)); return *this; }
98 inline CreateAuthorizerRequest& AddTokenSigningPublicKeys(Aws::String&& key, const char* value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(std::move(key), value); return *this; }
99 inline CreateAuthorizerRequest& AddTokenSigningPublicKeys(const char* key, const char* value) { m_tokenSigningPublicKeysHasBeenSet = true; m_tokenSigningPublicKeys.emplace(key, value); return *this; }
101
103
106 inline const AuthorizerStatus& GetStatus() const{ return m_status; }
107 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
108 inline void SetStatus(const AuthorizerStatus& value) { m_statusHasBeenSet = true; m_status = value; }
109 inline void SetStatus(AuthorizerStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
110 inline CreateAuthorizerRequest& WithStatus(const AuthorizerStatus& value) { SetStatus(value); return *this;}
111 inline CreateAuthorizerRequest& WithStatus(AuthorizerStatus&& value) { SetStatus(std::move(value)); return *this;}
113
115
122 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
125 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
126 inline CreateAuthorizerRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
127 inline CreateAuthorizerRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
128 inline CreateAuthorizerRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
129 inline CreateAuthorizerRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
131
133
137 inline bool GetSigningDisabled() const{ return m_signingDisabled; }
138 inline bool SigningDisabledHasBeenSet() const { return m_signingDisabledHasBeenSet; }
139 inline void SetSigningDisabled(bool value) { m_signingDisabledHasBeenSet = true; m_signingDisabled = value; }
140 inline CreateAuthorizerRequest& WithSigningDisabled(bool value) { SetSigningDisabled(value); return *this;}
142
144
152 inline bool GetEnableCachingForHttp() const{ return m_enableCachingForHttp; }
153 inline bool EnableCachingForHttpHasBeenSet() const { return m_enableCachingForHttpHasBeenSet; }
154 inline void SetEnableCachingForHttp(bool value) { m_enableCachingForHttpHasBeenSet = true; m_enableCachingForHttp = value; }
157 private:
158
159 Aws::String m_authorizerName;
160 bool m_authorizerNameHasBeenSet = false;
161
162 Aws::String m_authorizerFunctionArn;
163 bool m_authorizerFunctionArnHasBeenSet = false;
164
165 Aws::String m_tokenKeyName;
166 bool m_tokenKeyNameHasBeenSet = false;
167
168 Aws::Map<Aws::String, Aws::String> m_tokenSigningPublicKeys;
169 bool m_tokenSigningPublicKeysHasBeenSet = false;
170
171 AuthorizerStatus m_status;
172 bool m_statusHasBeenSet = false;
173
174 Aws::Vector<Tag> m_tags;
175 bool m_tagsHasBeenSet = false;
176
177 bool m_signingDisabled;
178 bool m_signingDisabledHasBeenSet = false;
179
180 bool m_enableCachingForHttp;
181 bool m_enableCachingForHttpHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace IoT
186} // namespace Aws
CreateAuthorizerRequest & WithAuthorizerName(const char *value)
void SetTokenKeyName(const Aws::String &value)
CreateAuthorizerRequest & WithTokenKeyName(Aws::String &&value)
CreateAuthorizerRequest & AddTokenSigningPublicKeys(const char *key, const char *value)
CreateAuthorizerRequest & AddTags(Tag &&value)
CreateAuthorizerRequest & WithStatus(const AuthorizerStatus &value)
const Aws::Vector< Tag > & GetTags() const
CreateAuthorizerRequest & WithTokenKeyName(const char *value)
CreateAuthorizerRequest & AddTokenSigningPublicKeys(const Aws::String &key, const Aws::String &value)
void SetTokenSigningPublicKeys(const Aws::Map< Aws::String, Aws::String > &value)
CreateAuthorizerRequest & AddTokenSigningPublicKeys(Aws::String &&key, const Aws::String &value)
CreateAuthorizerRequest & WithAuthorizerFunctionArn(const Aws::String &value)
CreateAuthorizerRequest & WithAuthorizerName(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateAuthorizerRequest & AddTags(const Tag &value)
const Aws::Map< Aws::String, Aws::String > & GetTokenSigningPublicKeys() const
CreateAuthorizerRequest & WithEnableCachingForHttp(bool value)
CreateAuthorizerRequest & WithTokenKeyName(const Aws::String &value)
CreateAuthorizerRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTokenSigningPublicKeys(Aws::Map< Aws::String, Aws::String > &&value)
CreateAuthorizerRequest & AddTokenSigningPublicKeys(const char *key, Aws::String &&value)
void SetStatus(const AuthorizerStatus &value)
virtual const char * GetServiceRequestName() const override
CreateAuthorizerRequest & WithAuthorizerFunctionArn(const char *value)
CreateAuthorizerRequest & WithSigningDisabled(bool value)
CreateAuthorizerRequest & WithTokenSigningPublicKeys(const Aws::Map< Aws::String, Aws::String > &value)
CreateAuthorizerRequest & AddTokenSigningPublicKeys(const Aws::String &key, Aws::String &&value)
CreateAuthorizerRequest & WithAuthorizerFunctionArn(Aws::String &&value)
CreateAuthorizerRequest & WithAuthorizerName(Aws::String &&value)
CreateAuthorizerRequest & AddTokenSigningPublicKeys(Aws::String &&key, Aws::String &&value)
CreateAuthorizerRequest & WithStatus(AuthorizerStatus &&value)
CreateAuthorizerRequest & WithTokenSigningPublicKeys(Aws::Map< Aws::String, Aws::String > &&value)
void SetAuthorizerName(const Aws::String &value)
CreateAuthorizerRequest & WithTags(Aws::Vector< Tag > &&value)
CreateAuthorizerRequest & AddTokenSigningPublicKeys(Aws::String &&key, const char *value)
AWS_IOT_API Aws::String SerializePayload() const override
const Aws::String & GetAuthorizerFunctionArn() const
void SetAuthorizerFunctionArn(const Aws::String &value)
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
std::vector< T, Aws::Allocator< T > > Vector