AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CreateAuthorizerRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot/IoTRequest.h>
11#include <aws/iot/IoT_EXPORTS.h>
12#include <aws/iot/model/AuthorizerStatus.h>
13#include <aws/iot/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace IoT {
19namespace Model {
20
24 public:
25 AWS_IOT_API CreateAuthorizerRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAuthorizer"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetAuthorizerName() const { return m_authorizerName; }
40 inline bool AuthorizerNameHasBeenSet() const { return m_authorizerNameHasBeenSet; }
41 template <typename AuthorizerNameT = Aws::String>
42 void SetAuthorizerName(AuthorizerNameT&& value) {
43 m_authorizerNameHasBeenSet = true;
44 m_authorizerName = std::forward<AuthorizerNameT>(value);
45 }
46 template <typename AuthorizerNameT = Aws::String>
47 CreateAuthorizerRequest& WithAuthorizerName(AuthorizerNameT&& value) {
48 SetAuthorizerName(std::forward<AuthorizerNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAuthorizerFunctionArn() const { return m_authorizerFunctionArn; }
58 inline bool AuthorizerFunctionArnHasBeenSet() const { return m_authorizerFunctionArnHasBeenSet; }
59 template <typename AuthorizerFunctionArnT = Aws::String>
60 void SetAuthorizerFunctionArn(AuthorizerFunctionArnT&& value) {
61 m_authorizerFunctionArnHasBeenSet = true;
62 m_authorizerFunctionArn = std::forward<AuthorizerFunctionArnT>(value);
63 }
64 template <typename AuthorizerFunctionArnT = Aws::String>
65 CreateAuthorizerRequest& WithAuthorizerFunctionArn(AuthorizerFunctionArnT&& value) {
66 SetAuthorizerFunctionArn(std::forward<AuthorizerFunctionArnT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetTokenKeyName() const { return m_tokenKeyName; }
77 inline bool TokenKeyNameHasBeenSet() const { return m_tokenKeyNameHasBeenSet; }
78 template <typename TokenKeyNameT = Aws::String>
79 void SetTokenKeyName(TokenKeyNameT&& value) {
80 m_tokenKeyNameHasBeenSet = true;
81 m_tokenKeyName = std::forward<TokenKeyNameT>(value);
82 }
83 template <typename TokenKeyNameT = Aws::String>
84 CreateAuthorizerRequest& WithTokenKeyName(TokenKeyNameT&& value) {
85 SetTokenKeyName(std::forward<TokenKeyNameT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Map<Aws::String, Aws::String>& GetTokenSigningPublicKeys() const { return m_tokenSigningPublicKeys; }
96 inline bool TokenSigningPublicKeysHasBeenSet() const { return m_tokenSigningPublicKeysHasBeenSet; }
97 template <typename TokenSigningPublicKeysT = Aws::Map<Aws::String, Aws::String>>
98 void SetTokenSigningPublicKeys(TokenSigningPublicKeysT&& value) {
99 m_tokenSigningPublicKeysHasBeenSet = true;
100 m_tokenSigningPublicKeys = std::forward<TokenSigningPublicKeysT>(value);
101 }
102 template <typename TokenSigningPublicKeysT = Aws::Map<Aws::String, Aws::String>>
103 CreateAuthorizerRequest& WithTokenSigningPublicKeys(TokenSigningPublicKeysT&& value) {
104 SetTokenSigningPublicKeys(std::forward<TokenSigningPublicKeysT>(value));
105 return *this;
106 }
107 template <typename TokenSigningPublicKeysKeyT = Aws::String, typename TokenSigningPublicKeysValueT = Aws::String>
108 CreateAuthorizerRequest& AddTokenSigningPublicKeys(TokenSigningPublicKeysKeyT&& key, TokenSigningPublicKeysValueT&& value) {
109 m_tokenSigningPublicKeysHasBeenSet = true;
110 m_tokenSigningPublicKeys.emplace(std::forward<TokenSigningPublicKeysKeyT>(key), std::forward<TokenSigningPublicKeysValueT>(value));
111 return *this;
112 }
114
116
119 inline AuthorizerStatus GetStatus() const { return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(AuthorizerStatus value) {
122 m_statusHasBeenSet = true;
123 m_status = value;
124 }
126 SetStatus(value);
127 return *this;
128 }
130
132
139 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 template <typename TagsT = Aws::Vector<Tag>>
142 void SetTags(TagsT&& value) {
143 m_tagsHasBeenSet = true;
144 m_tags = std::forward<TagsT>(value);
145 }
146 template <typename TagsT = Aws::Vector<Tag>>
148 SetTags(std::forward<TagsT>(value));
149 return *this;
150 }
151 template <typename TagsT = Tag>
153 m_tagsHasBeenSet = true;
154 m_tags.emplace_back(std::forward<TagsT>(value));
155 return *this;
156 }
158
160
164 inline bool GetSigningDisabled() const { return m_signingDisabled; }
165 inline bool SigningDisabledHasBeenSet() const { return m_signingDisabledHasBeenSet; }
166 inline void SetSigningDisabled(bool value) {
167 m_signingDisabledHasBeenSet = true;
168 m_signingDisabled = value;
169 }
171 SetSigningDisabled(value);
172 return *this;
173 }
175
177
185 inline bool GetEnableCachingForHttp() const { return m_enableCachingForHttp; }
186 inline bool EnableCachingForHttpHasBeenSet() const { return m_enableCachingForHttpHasBeenSet; }
187 inline void SetEnableCachingForHttp(bool value) {
188 m_enableCachingForHttpHasBeenSet = true;
189 m_enableCachingForHttp = value;
190 }
193 return *this;
194 }
196 private:
197 Aws::String m_authorizerName;
198 bool m_authorizerNameHasBeenSet = false;
199
200 Aws::String m_authorizerFunctionArn;
201 bool m_authorizerFunctionArnHasBeenSet = false;
202
203 Aws::String m_tokenKeyName;
204 bool m_tokenKeyNameHasBeenSet = false;
205
206 Aws::Map<Aws::String, Aws::String> m_tokenSigningPublicKeys;
207 bool m_tokenSigningPublicKeysHasBeenSet = false;
208
210 bool m_statusHasBeenSet = false;
211
212 Aws::Vector<Tag> m_tags;
213 bool m_tagsHasBeenSet = false;
214
215 bool m_signingDisabled{false};
216 bool m_signingDisabledHasBeenSet = false;
217
218 bool m_enableCachingForHttp{false};
219 bool m_enableCachingForHttpHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace IoT
224} // namespace Aws
void SetAuthorizerName(AuthorizerNameT &&value)
CreateAuthorizerRequest & AddTokenSigningPublicKeys(TokenSigningPublicKeysKeyT &&key, TokenSigningPublicKeysValueT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateAuthorizerRequest & WithAuthorizerFunctionArn(AuthorizerFunctionArnT &&value)
void SetAuthorizerFunctionArn(AuthorizerFunctionArnT &&value)
CreateAuthorizerRequest & WithStatus(AuthorizerStatus value)
CreateAuthorizerRequest & WithTokenSigningPublicKeys(TokenSigningPublicKeysT &&value)
CreateAuthorizerRequest & WithTokenKeyName(TokenKeyNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTokenSigningPublicKeys() const
CreateAuthorizerRequest & WithEnableCachingForHttp(bool value)
CreateAuthorizerRequest & WithAuthorizerName(AuthorizerNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateAuthorizerRequest & WithSigningDisabled(bool value)
AWS_IOT_API CreateAuthorizerRequest()=default
CreateAuthorizerRequest & AddTags(TagsT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
void SetTokenSigningPublicKeys(TokenSigningPublicKeysT &&value)
const Aws::String & GetAuthorizerFunctionArn() const
CreateAuthorizerRequest & WithTags(TagsT &&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