AWS SDK for C++  1.9.15
AWS SDK for C++
TestInvokeAuthorizerRequest.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 <utility>
14 
15 namespace Aws
16 {
17 namespace IoT
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "TestInvokeAuthorizer"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetAuthorizerName() const{ return m_authorizerName; }
42 
46  inline bool AuthorizerNameHasBeenSet() const { return m_authorizerNameHasBeenSet; }
47 
51  inline void SetAuthorizerName(const Aws::String& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = value; }
52 
56  inline void SetAuthorizerName(Aws::String&& value) { m_authorizerNameHasBeenSet = true; m_authorizerName = std::move(value); }
57 
61  inline void SetAuthorizerName(const char* value) { m_authorizerNameHasBeenSet = true; m_authorizerName.assign(value); }
62 
66  inline TestInvokeAuthorizerRequest& WithAuthorizerName(const Aws::String& value) { SetAuthorizerName(value); return *this;}
67 
71  inline TestInvokeAuthorizerRequest& WithAuthorizerName(Aws::String&& value) { SetAuthorizerName(std::move(value)); return *this;}
72 
76  inline TestInvokeAuthorizerRequest& WithAuthorizerName(const char* value) { SetAuthorizerName(value); return *this;}
77 
78 
82  inline const Aws::String& GetToken() const{ return m_token; }
83 
87  inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
88 
92  inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
93 
97  inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
98 
102  inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
103 
107  inline TestInvokeAuthorizerRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
108 
112  inline TestInvokeAuthorizerRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
113 
117  inline TestInvokeAuthorizerRequest& WithToken(const char* value) { SetToken(value); return *this;}
118 
119 
124  inline const Aws::String& GetTokenSignature() const{ return m_tokenSignature; }
125 
130  inline bool TokenSignatureHasBeenSet() const { return m_tokenSignatureHasBeenSet; }
131 
136  inline void SetTokenSignature(const Aws::String& value) { m_tokenSignatureHasBeenSet = true; m_tokenSignature = value; }
137 
142  inline void SetTokenSignature(Aws::String&& value) { m_tokenSignatureHasBeenSet = true; m_tokenSignature = std::move(value); }
143 
148  inline void SetTokenSignature(const char* value) { m_tokenSignatureHasBeenSet = true; m_tokenSignature.assign(value); }
149 
154  inline TestInvokeAuthorizerRequest& WithTokenSignature(const Aws::String& value) { SetTokenSignature(value); return *this;}
155 
160  inline TestInvokeAuthorizerRequest& WithTokenSignature(Aws::String&& value) { SetTokenSignature(std::move(value)); return *this;}
161 
166  inline TestInvokeAuthorizerRequest& WithTokenSignature(const char* value) { SetTokenSignature(value); return *this;}
167 
168 
172  inline const HttpContext& GetHttpContext() const{ return m_httpContext; }
173 
177  inline bool HttpContextHasBeenSet() const { return m_httpContextHasBeenSet; }
178 
182  inline void SetHttpContext(const HttpContext& value) { m_httpContextHasBeenSet = true; m_httpContext = value; }
183 
187  inline void SetHttpContext(HttpContext&& value) { m_httpContextHasBeenSet = true; m_httpContext = std::move(value); }
188 
192  inline TestInvokeAuthorizerRequest& WithHttpContext(const HttpContext& value) { SetHttpContext(value); return *this;}
193 
197  inline TestInvokeAuthorizerRequest& WithHttpContext(HttpContext&& value) { SetHttpContext(std::move(value)); return *this;}
198 
199 
203  inline const MqttContext& GetMqttContext() const{ return m_mqttContext; }
204 
208  inline bool MqttContextHasBeenSet() const { return m_mqttContextHasBeenSet; }
209 
213  inline void SetMqttContext(const MqttContext& value) { m_mqttContextHasBeenSet = true; m_mqttContext = value; }
214 
218  inline void SetMqttContext(MqttContext&& value) { m_mqttContextHasBeenSet = true; m_mqttContext = std::move(value); }
219 
223  inline TestInvokeAuthorizerRequest& WithMqttContext(const MqttContext& value) { SetMqttContext(value); return *this;}
224 
228  inline TestInvokeAuthorizerRequest& WithMqttContext(MqttContext&& value) { SetMqttContext(std::move(value)); return *this;}
229 
230 
234  inline const TlsContext& GetTlsContext() const{ return m_tlsContext; }
235 
239  inline bool TlsContextHasBeenSet() const { return m_tlsContextHasBeenSet; }
240 
244  inline void SetTlsContext(const TlsContext& value) { m_tlsContextHasBeenSet = true; m_tlsContext = value; }
245 
249  inline void SetTlsContext(TlsContext&& value) { m_tlsContextHasBeenSet = true; m_tlsContext = std::move(value); }
250 
254  inline TestInvokeAuthorizerRequest& WithTlsContext(const TlsContext& value) { SetTlsContext(value); return *this;}
255 
259  inline TestInvokeAuthorizerRequest& WithTlsContext(TlsContext&& value) { SetTlsContext(std::move(value)); return *this;}
260 
261  private:
262 
263  Aws::String m_authorizerName;
264  bool m_authorizerNameHasBeenSet;
265 
266  Aws::String m_token;
267  bool m_tokenHasBeenSet;
268 
269  Aws::String m_tokenSignature;
270  bool m_tokenSignatureHasBeenSet;
271 
272  HttpContext m_httpContext;
273  bool m_httpContextHasBeenSet;
274 
275  MqttContext m_mqttContext;
276  bool m_mqttContextHasBeenSet;
277 
278  TlsContext m_tlsContext;
279  bool m_tlsContextHasBeenSet;
280  };
281 
282 } // namespace Model
283 } // namespace IoT
284 } // namespace Aws
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithAuthorizerName
TestInvokeAuthorizerRequest & WithAuthorizerName(const char *value)
Definition: TestInvokeAuthorizerRequest.h:76
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetAuthorizerName
void SetAuthorizerName(const Aws::String &value)
Definition: TestInvokeAuthorizerRequest.h:51
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetTokenSignature
void SetTokenSignature(const char *value)
Definition: TestInvokeAuthorizerRequest.h:148
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithMqttContext
TestInvokeAuthorizerRequest & WithMqttContext(const MqttContext &value)
Definition: TestInvokeAuthorizerRequest.h:223
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetMqttContext
void SetMqttContext(MqttContext &&value)
Definition: TestInvokeAuthorizerRequest.h:218
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetTokenSignature
void SetTokenSignature(const Aws::String &value)
Definition: TestInvokeAuthorizerRequest.h:136
Aws::IoT::Model::TestInvokeAuthorizerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::TestInvokeAuthorizerRequest::GetAuthorizerName
const Aws::String & GetAuthorizerName() const
Definition: TestInvokeAuthorizerRequest.h:41
Aws::IoT::Model::TestInvokeAuthorizerRequest::MqttContextHasBeenSet
bool MqttContextHasBeenSet() const
Definition: TestInvokeAuthorizerRequest.h:208
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetHttpContext
void SetHttpContext(const HttpContext &value)
Definition: TestInvokeAuthorizerRequest.h:182
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithHttpContext
TestInvokeAuthorizerRequest & WithHttpContext(const HttpContext &value)
Definition: TestInvokeAuthorizerRequest.h:192
Aws::IoT::Model::TestInvokeAuthorizerRequest::AuthorizerNameHasBeenSet
bool AuthorizerNameHasBeenSet() const
Definition: TestInvokeAuthorizerRequest.h:46
MqttContext.h
Aws::IoT::Model::TestInvokeAuthorizerRequest::TokenHasBeenSet
bool TokenHasBeenSet() const
Definition: TestInvokeAuthorizerRequest.h:87
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetHttpContext
void SetHttpContext(HttpContext &&value)
Definition: TestInvokeAuthorizerRequest.h:187
Aws::IoT::Model::TestInvokeAuthorizerRequest::GetHttpContext
const HttpContext & GetHttpContext() const
Definition: TestInvokeAuthorizerRequest.h:172
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetTlsContext
void SetTlsContext(const TlsContext &value)
Definition: TestInvokeAuthorizerRequest.h:244
Aws::IoT::Model::TestInvokeAuthorizerRequest::GetMqttContext
const MqttContext & GetMqttContext() const
Definition: TestInvokeAuthorizerRequest.h:203
Aws::IoT::Model::TlsContext
Definition: TlsContext.h:33
Aws::IoT::Model::TestInvokeAuthorizerRequest::TestInvokeAuthorizerRequest
TestInvokeAuthorizerRequest()
Aws::IoT::Model::HttpContext
Definition: HttpContext.h:34
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithTokenSignature
TestInvokeAuthorizerRequest & WithTokenSignature(const char *value)
Definition: TestInvokeAuthorizerRequest.h:166
Aws::IoT::Model::TestInvokeAuthorizerRequest::HttpContextHasBeenSet
bool HttpContextHasBeenSet() const
Definition: TestInvokeAuthorizerRequest.h:177
TlsContext.h
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithTokenSignature
TestInvokeAuthorizerRequest & WithTokenSignature(const Aws::String &value)
Definition: TestInvokeAuthorizerRequest.h:154
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithTlsContext
TestInvokeAuthorizerRequest & WithTlsContext(const TlsContext &value)
Definition: TestInvokeAuthorizerRequest.h:254
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithToken
TestInvokeAuthorizerRequest & WithToken(const char *value)
Definition: TestInvokeAuthorizerRequest.h:117
Aws::IoT::Model::MqttContext
Definition: MqttContext.h:34
HttpContext.h
AWSString.h
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetToken
void SetToken(Aws::String &&value)
Definition: TestInvokeAuthorizerRequest.h:97
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithToken
TestInvokeAuthorizerRequest & WithToken(const Aws::String &value)
Definition: TestInvokeAuthorizerRequest.h:107
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetTokenSignature
void SetTokenSignature(Aws::String &&value)
Definition: TestInvokeAuthorizerRequest.h:142
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithHttpContext
TestInvokeAuthorizerRequest & WithHttpContext(HttpContext &&value)
Definition: TestInvokeAuthorizerRequest.h:197
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithToken
TestInvokeAuthorizerRequest & WithToken(Aws::String &&value)
Definition: TestInvokeAuthorizerRequest.h:112
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithTlsContext
TestInvokeAuthorizerRequest & WithTlsContext(TlsContext &&value)
Definition: TestInvokeAuthorizerRequest.h:259
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetMqttContext
void SetMqttContext(const MqttContext &value)
Definition: TestInvokeAuthorizerRequest.h:213
Aws::IoT::Model::TestInvokeAuthorizerRequest::TokenSignatureHasBeenSet
bool TokenSignatureHasBeenSet() const
Definition: TestInvokeAuthorizerRequest.h:130
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithAuthorizerName
TestInvokeAuthorizerRequest & WithAuthorizerName(const Aws::String &value)
Definition: TestInvokeAuthorizerRequest.h:66
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithMqttContext
TestInvokeAuthorizerRequest & WithMqttContext(MqttContext &&value)
Definition: TestInvokeAuthorizerRequest.h:228
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetTlsContext
void SetTlsContext(TlsContext &&value)
Definition: TestInvokeAuthorizerRequest.h:249
Aws::IoT::Model::TestInvokeAuthorizerRequest::GetToken
const Aws::String & GetToken() const
Definition: TestInvokeAuthorizerRequest.h:82
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetAuthorizerName
void SetAuthorizerName(const char *value)
Definition: TestInvokeAuthorizerRequest.h:61
Aws::IoT::Model::TestInvokeAuthorizerRequest::GetTlsContext
const TlsContext & GetTlsContext() const
Definition: TestInvokeAuthorizerRequest.h:234
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetToken
void SetToken(const Aws::String &value)
Definition: TestInvokeAuthorizerRequest.h:92
Aws::IoT::Model::TestInvokeAuthorizerRequest::GetTokenSignature
const Aws::String & GetTokenSignature() const
Definition: TestInvokeAuthorizerRequest.h:124
Aws::IoT::Model::TestInvokeAuthorizerRequest
Definition: TestInvokeAuthorizerRequest.h:25
IoTRequest.h
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithTokenSignature
TestInvokeAuthorizerRequest & WithTokenSignature(Aws::String &&value)
Definition: TestInvokeAuthorizerRequest.h:160
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetAuthorizerName
void SetAuthorizerName(Aws::String &&value)
Definition: TestInvokeAuthorizerRequest.h:56
Aws::IoT::Model::TestInvokeAuthorizerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TestInvokeAuthorizerRequest.h:33
Aws::IoT::Model::TestInvokeAuthorizerRequest::SetToken
void SetToken(const char *value)
Definition: TestInvokeAuthorizerRequest.h:102
Aws::IoT::Model::TestInvokeAuthorizerRequest::TlsContextHasBeenSet
bool TlsContextHasBeenSet() const
Definition: TestInvokeAuthorizerRequest.h:239
Aws::IoT::Model::TestInvokeAuthorizerRequest::WithAuthorizerName
TestInvokeAuthorizerRequest & WithAuthorizerName(Aws::String &&value)
Definition: TestInvokeAuthorizerRequest.h:71
IoT_EXPORTS.h