AWS SDK for C++  0.12.9
AWS SDK for C++
TestInvokeAuthorizerRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace APIGateway
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
41 
45  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
46 
50  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
51 
55  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
56 
60  inline TestInvokeAuthorizerRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
61 
65  inline TestInvokeAuthorizerRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
66 
70  inline TestInvokeAuthorizerRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
71 
75  inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; }
76 
80  inline void SetAuthorizerId(const Aws::String& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; }
81 
85  inline void SetAuthorizerId(Aws::String&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; }
86 
90  inline void SetAuthorizerId(const char* value) { m_authorizerIdHasBeenSet = true; m_authorizerId.assign(value); }
91 
95  inline TestInvokeAuthorizerRequest& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
96 
100  inline TestInvokeAuthorizerRequest& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(value); return *this;}
101 
105  inline TestInvokeAuthorizerRequest& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;}
106 
111  inline const Aws::String& GetPathWithQueryString() const{ return m_pathWithQueryString; }
112 
117  inline void SetPathWithQueryString(const Aws::String& value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString = value; }
118 
123  inline void SetPathWithQueryString(Aws::String&& value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString = value; }
124 
129  inline void SetPathWithQueryString(const char* value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString.assign(value); }
130 
135  inline TestInvokeAuthorizerRequest& WithPathWithQueryString(const Aws::String& value) { SetPathWithQueryString(value); return *this;}
136 
141  inline TestInvokeAuthorizerRequest& WithPathWithQueryString(Aws::String&& value) { SetPathWithQueryString(value); return *this;}
142 
147  inline TestInvokeAuthorizerRequest& WithPathWithQueryString(const char* value) { SetPathWithQueryString(value); return *this;}
148 
153  inline const Aws::Map<Aws::String, Aws::String>& GetStageVariables() const{ return m_stageVariables; }
154 
159  inline void SetStageVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_stageVariablesHasBeenSet = true; m_stageVariables = value; }
160 
165  inline void SetStageVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables = value; }
166 
171  inline TestInvokeAuthorizerRequest& WithStageVariables(const Aws::Map<Aws::String, Aws::String>& value) { SetStageVariables(value); return *this;}
172 
177  inline TestInvokeAuthorizerRequest& WithStageVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetStageVariables(value); return *this;}
178 
183  inline TestInvokeAuthorizerRequest& AddStageVariables(const Aws::String& key, const Aws::String& value) { m_stageVariablesHasBeenSet = true; m_stageVariables[key] = value; return *this; }
184 
189  inline TestInvokeAuthorizerRequest& AddStageVariables(Aws::String&& key, const Aws::String& value) { m_stageVariablesHasBeenSet = true; m_stageVariables[key] = value; return *this; }
190 
195  inline TestInvokeAuthorizerRequest& AddStageVariables(const Aws::String& key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables[key] = value; return *this; }
196 
201  inline TestInvokeAuthorizerRequest& AddStageVariables(Aws::String&& key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables[key] = value; return *this; }
202 
207  inline TestInvokeAuthorizerRequest& AddStageVariables(const char* key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables[key] = value; return *this; }
208 
213  inline TestInvokeAuthorizerRequest& AddStageVariables(Aws::String&& key, const char* value) { m_stageVariablesHasBeenSet = true; m_stageVariables[key] = value; return *this; }
214 
219  inline TestInvokeAuthorizerRequest& AddStageVariables(const char* key, const char* value) { m_stageVariablesHasBeenSet = true; m_stageVariables[key] = value; return *this; }
220 
224  inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalContext() const{ return m_additionalContext; }
225 
229  inline void SetAdditionalContext(const Aws::Map<Aws::String, Aws::String>& value) { m_additionalContextHasBeenSet = true; m_additionalContext = value; }
230 
234  inline void SetAdditionalContext(Aws::Map<Aws::String, Aws::String>&& value) { m_additionalContextHasBeenSet = true; m_additionalContext = value; }
235 
239  inline TestInvokeAuthorizerRequest& WithAdditionalContext(const Aws::Map<Aws::String, Aws::String>& value) { SetAdditionalContext(value); return *this;}
240 
244  inline TestInvokeAuthorizerRequest& WithAdditionalContext(Aws::Map<Aws::String, Aws::String>&& value) { SetAdditionalContext(value); return *this;}
245 
249  inline TestInvokeAuthorizerRequest& AddAdditionalContext(const Aws::String& key, const Aws::String& value) { m_additionalContextHasBeenSet = true; m_additionalContext[key] = value; return *this; }
250 
254  inline TestInvokeAuthorizerRequest& AddAdditionalContext(Aws::String&& key, const Aws::String& value) { m_additionalContextHasBeenSet = true; m_additionalContext[key] = value; return *this; }
255 
259  inline TestInvokeAuthorizerRequest& AddAdditionalContext(const Aws::String& key, Aws::String&& value) { m_additionalContextHasBeenSet = true; m_additionalContext[key] = value; return *this; }
260 
264  inline TestInvokeAuthorizerRequest& AddAdditionalContext(Aws::String&& key, Aws::String&& value) { m_additionalContextHasBeenSet = true; m_additionalContext[key] = value; return *this; }
265 
269  inline TestInvokeAuthorizerRequest& AddAdditionalContext(const char* key, Aws::String&& value) { m_additionalContextHasBeenSet = true; m_additionalContext[key] = value; return *this; }
270 
274  inline TestInvokeAuthorizerRequest& AddAdditionalContext(Aws::String&& key, const char* value) { m_additionalContextHasBeenSet = true; m_additionalContext[key] = value; return *this; }
275 
279  inline TestInvokeAuthorizerRequest& AddAdditionalContext(const char* key, const char* value) { m_additionalContextHasBeenSet = true; m_additionalContext[key] = value; return *this; }
280 
284  inline const Aws::String& GetRequestBody() const{ return m_requestBody; }
285 
289  inline void SetRequestBody(const Aws::String& value) { m_requestBodyHasBeenSet = true; m_requestBody = value; }
290 
294  inline void SetRequestBody(Aws::String&& value) { m_requestBodyHasBeenSet = true; m_requestBody = value; }
295 
299  inline void SetRequestBody(const char* value) { m_requestBodyHasBeenSet = true; m_requestBody.assign(value); }
300 
304  inline TestInvokeAuthorizerRequest& WithRequestBody(const Aws::String& value) { SetRequestBody(value); return *this;}
305 
309  inline TestInvokeAuthorizerRequest& WithRequestBody(Aws::String&& value) { SetRequestBody(value); return *this;}
310 
314  inline TestInvokeAuthorizerRequest& WithRequestBody(const char* value) { SetRequestBody(value); return *this;}
315 
321  inline const Aws::Map<Aws::String, Aws::String>& GetRequestHeaders() const{ return m_requestHeaders; }
322 
328  inline void SetRequestHeaders(const Aws::Map<Aws::String, Aws::String>& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders = value; }
329 
335  inline void SetRequestHeaders(Aws::Map<Aws::String, Aws::String>&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders = value; }
336 
342  inline TestInvokeAuthorizerRequest& WithRequestHeaders(const Aws::Map<Aws::String, Aws::String>& value) { SetRequestHeaders(value); return *this;}
343 
349  inline TestInvokeAuthorizerRequest& WithRequestHeaders(Aws::Map<Aws::String, Aws::String>&& value) { SetRequestHeaders(value); return *this;}
350 
356  inline TestInvokeAuthorizerRequest& AddRequestHeaders(const Aws::String& key, const Aws::String& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders[key] = value; return *this; }
357 
363  inline TestInvokeAuthorizerRequest& AddRequestHeaders(Aws::String&& key, const Aws::String& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders[key] = value; return *this; }
364 
370  inline TestInvokeAuthorizerRequest& AddRequestHeaders(const Aws::String& key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders[key] = value; return *this; }
371 
377  inline TestInvokeAuthorizerRequest& AddRequestHeaders(Aws::String&& key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders[key] = value; return *this; }
378 
384  inline TestInvokeAuthorizerRequest& AddRequestHeaders(const char* key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders[key] = value; return *this; }
385 
391  inline TestInvokeAuthorizerRequest& AddRequestHeaders(Aws::String&& key, const char* value) { m_requestHeadersHasBeenSet = true; m_requestHeaders[key] = value; return *this; }
392 
398  inline TestInvokeAuthorizerRequest& AddRequestHeaders(const char* key, const char* value) { m_requestHeadersHasBeenSet = true; m_requestHeaders[key] = value; return *this; }
399 
400  private:
401  Aws::String m_restApiId;
402  bool m_restApiIdHasBeenSet;
403  Aws::String m_authorizerId;
404  bool m_authorizerIdHasBeenSet;
405  Aws::String m_pathWithQueryString;
406  bool m_pathWithQueryStringHasBeenSet;
407  Aws::Map<Aws::String, Aws::String> m_stageVariables;
408  bool m_stageVariablesHasBeenSet;
409  Aws::Map<Aws::String, Aws::String> m_additionalContext;
410  bool m_additionalContextHasBeenSet;
411  Aws::String m_requestBody;
412  bool m_requestBodyHasBeenSet;
413  Aws::Map<Aws::String, Aws::String> m_requestHeaders;
414  bool m_requestHeadersHasBeenSet;
415  };
416 
417 } // namespace Model
418 } // namespace APIGateway
419 } // namespace Aws
TestInvokeAuthorizerRequest & AddRequestHeaders(Aws::String &&key, const char *value)
TestInvokeAuthorizerRequest & WithStageVariables(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeAuthorizerRequest & AddStageVariables(const Aws::String &key, Aws::String &&value)
TestInvokeAuthorizerRequest & AddAdditionalContext(const char *key, Aws::String &&value)
TestInvokeAuthorizerRequest & AddRequestHeaders(const Aws::String &key, const Aws::String &value)
TestInvokeAuthorizerRequest & WithRequestBody(Aws::String &&value)
TestInvokeAuthorizerRequest & AddAdditionalContext(const Aws::String &key, Aws::String &&value)
void SetAdditionalContext(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeAuthorizerRequest & AddRequestHeaders(Aws::String &&key, const Aws::String &value)
TestInvokeAuthorizerRequest & WithRequestHeaders(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeAuthorizerRequest & WithPathWithQueryString(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestHeaders() const
void SetRequestHeaders(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeAuthorizerRequest & WithAuthorizerId(const char *value)
TestInvokeAuthorizerRequest & AddRequestHeaders(Aws::String &&key, Aws::String &&value)
TestInvokeAuthorizerRequest & AddAdditionalContext(Aws::String &&key, const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
TestInvokeAuthorizerRequest & AddStageVariables(const char *key, const char *value)
TestInvokeAuthorizerRequest & WithPathWithQueryString(const char *value)
TestInvokeAuthorizerRequest & WithAdditionalContext(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeAuthorizerRequest & AddRequestHeaders(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalContext() const
TestInvokeAuthorizerRequest & WithAuthorizerId(const Aws::String &value)
TestInvokeAuthorizerRequest & WithRestApiId(Aws::String &&value)
TestInvokeAuthorizerRequest & AddAdditionalContext(const char *key, const char *value)
TestInvokeAuthorizerRequest & WithRequestBody(const char *value)
TestInvokeAuthorizerRequest & AddStageVariables(Aws::String &&key, const char *value)
TestInvokeAuthorizerRequest & AddAdditionalContext(Aws::String &&key, Aws::String &&value)
TestInvokeAuthorizerRequest & WithRestApiId(const char *value)
TestInvokeAuthorizerRequest & WithAdditionalContext(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeAuthorizerRequest & AddRequestHeaders(const Aws::String &key, Aws::String &&value)
TestInvokeAuthorizerRequest & WithStageVariables(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeAuthorizerRequest & AddStageVariables(Aws::String &&key, const Aws::String &value)
void SetRequestHeaders(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeAuthorizerRequest & WithRequestBody(const Aws::String &value)
TestInvokeAuthorizerRequest & AddStageVariables(const Aws::String &key, const Aws::String &value)
void SetStageVariables(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeAuthorizerRequest & WithRestApiId(const Aws::String &value)
TestInvokeAuthorizerRequest & AddRequestHeaders(const char *key, const char *value)
TestInvokeAuthorizerRequest & WithRequestHeaders(const Aws::Map< Aws::String, Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TestInvokeAuthorizerRequest & AddStageVariables(const char *key, Aws::String &&value)
TestInvokeAuthorizerRequest & WithPathWithQueryString(const Aws::String &value)
void SetAdditionalContext(Aws::Map< Aws::String, Aws::String > &&value)
#define AWS_APIGATEWAY_API
void SetStageVariables(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeAuthorizerRequest & AddAdditionalContext(Aws::String &&key, const Aws::String &value)
TestInvokeAuthorizerRequest & WithAuthorizerId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetStageVariables() const
TestInvokeAuthorizerRequest & AddAdditionalContext(const Aws::String &key, const Aws::String &value)
TestInvokeAuthorizerRequest & AddStageVariables(Aws::String &&key, Aws::String &&value)
JSON (JavaScript Object Notation).