AWS SDK for C++  0.12.9
AWS SDK for C++
TestInvokeMethodRequest.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 TestInvokeMethodRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
61 
65  inline TestInvokeMethodRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
66 
70  inline TestInvokeMethodRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
71 
75  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
76 
80  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
81 
85  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
86 
90  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
91 
95  inline TestInvokeMethodRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
96 
100  inline TestInvokeMethodRequest& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
101 
105  inline TestInvokeMethodRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
106 
110  inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
111 
115  inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
116 
120  inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
121 
125  inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
126 
130  inline TestInvokeMethodRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
131 
135  inline TestInvokeMethodRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(value); return *this;}
136 
140  inline TestInvokeMethodRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
141 
146  inline const Aws::String& GetPathWithQueryString() const{ return m_pathWithQueryString; }
147 
152  inline void SetPathWithQueryString(const Aws::String& value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString = value; }
153 
158  inline void SetPathWithQueryString(Aws::String&& value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString = value; }
159 
164  inline void SetPathWithQueryString(const char* value) { m_pathWithQueryStringHasBeenSet = true; m_pathWithQueryString.assign(value); }
165 
170  inline TestInvokeMethodRequest& WithPathWithQueryString(const Aws::String& value) { SetPathWithQueryString(value); return *this;}
171 
176  inline TestInvokeMethodRequest& WithPathWithQueryString(Aws::String&& value) { SetPathWithQueryString(value); return *this;}
177 
182  inline TestInvokeMethodRequest& WithPathWithQueryString(const char* value) { SetPathWithQueryString(value); return *this;}
183 
189  inline const Aws::String& GetClientCertificateId() const{ return m_clientCertificateId; }
190 
196  inline void SetClientCertificateId(const Aws::String& value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId = value; }
197 
203  inline void SetClientCertificateId(Aws::String&& value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId = value; }
204 
210  inline void SetClientCertificateId(const char* value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId.assign(value); }
211 
217  inline TestInvokeMethodRequest& WithClientCertificateId(const Aws::String& value) { SetClientCertificateId(value); return *this;}
218 
224  inline TestInvokeMethodRequest& WithClientCertificateId(Aws::String&& value) { SetClientCertificateId(value); return *this;}
225 
231  inline TestInvokeMethodRequest& WithClientCertificateId(const char* value) { SetClientCertificateId(value); return *this;}
232 
237  inline const Aws::Map<Aws::String, Aws::String>& GetStageVariables() const{ return m_stageVariables; }
238 
243  inline void SetStageVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_stageVariablesHasBeenSet = true; m_stageVariables = value; }
244 
249  inline void SetStageVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables = value; }
250 
255  inline TestInvokeMethodRequest& WithStageVariables(const Aws::Map<Aws::String, Aws::String>& value) { SetStageVariables(value); return *this;}
256 
261  inline TestInvokeMethodRequest& WithStageVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetStageVariables(value); return *this;}
262 
267  inline TestInvokeMethodRequest& AddStageVariables(const Aws::String& key, const Aws::String& value) { m_stageVariablesHasBeenSet = true; m_stageVariables[key] = value; return *this; }
268 
273  inline TestInvokeMethodRequest& AddStageVariables(Aws::String&& key, const Aws::String& value) { m_stageVariablesHasBeenSet = true; m_stageVariables[key] = value; return *this; }
274 
279  inline TestInvokeMethodRequest& AddStageVariables(const Aws::String& key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables[key] = value; return *this; }
280 
285  inline TestInvokeMethodRequest& AddStageVariables(Aws::String&& key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables[key] = value; return *this; }
286 
291  inline TestInvokeMethodRequest& AddStageVariables(const char* key, Aws::String&& value) { m_stageVariablesHasBeenSet = true; m_stageVariables[key] = value; return *this; }
292 
297  inline TestInvokeMethodRequest& AddStageVariables(Aws::String&& key, const char* value) { m_stageVariablesHasBeenSet = true; m_stageVariables[key] = value; return *this; }
298 
303  inline TestInvokeMethodRequest& AddStageVariables(const char* key, const char* value) { m_stageVariablesHasBeenSet = true; m_stageVariables[key] = value; return *this; }
304 
308  inline const Aws::String& GetRequestBody() const{ return m_requestBody; }
309 
313  inline void SetRequestBody(const Aws::String& value) { m_requestBodyHasBeenSet = true; m_requestBody = value; }
314 
318  inline void SetRequestBody(Aws::String&& value) { m_requestBodyHasBeenSet = true; m_requestBody = value; }
319 
323  inline void SetRequestBody(const char* value) { m_requestBodyHasBeenSet = true; m_requestBody.assign(value); }
324 
328  inline TestInvokeMethodRequest& WithRequestBody(const Aws::String& value) { SetRequestBody(value); return *this;}
329 
333  inline TestInvokeMethodRequest& WithRequestBody(Aws::String&& value) { SetRequestBody(value); return *this;}
334 
338  inline TestInvokeMethodRequest& WithRequestBody(const char* value) { SetRequestBody(value); return *this;}
339 
343  inline const Aws::Map<Aws::String, Aws::String>& GetRequestHeaders() const{ return m_requestHeaders; }
344 
348  inline void SetRequestHeaders(const Aws::Map<Aws::String, Aws::String>& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders = value; }
349 
353  inline void SetRequestHeaders(Aws::Map<Aws::String, Aws::String>&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders = value; }
354 
358  inline TestInvokeMethodRequest& WithRequestHeaders(const Aws::Map<Aws::String, Aws::String>& value) { SetRequestHeaders(value); return *this;}
359 
363  inline TestInvokeMethodRequest& WithRequestHeaders(Aws::Map<Aws::String, Aws::String>&& value) { SetRequestHeaders(value); return *this;}
364 
368  inline TestInvokeMethodRequest& AddRequestHeaders(const Aws::String& key, const Aws::String& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders[key] = value; return *this; }
369 
373  inline TestInvokeMethodRequest& AddRequestHeaders(Aws::String&& key, const Aws::String& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders[key] = value; return *this; }
374 
378  inline TestInvokeMethodRequest& AddRequestHeaders(const Aws::String& key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders[key] = value; return *this; }
379 
383  inline TestInvokeMethodRequest& AddRequestHeaders(Aws::String&& key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders[key] = value; return *this; }
384 
388  inline TestInvokeMethodRequest& AddRequestHeaders(const char* key, Aws::String&& value) { m_requestHeadersHasBeenSet = true; m_requestHeaders[key] = value; return *this; }
389 
393  inline TestInvokeMethodRequest& AddRequestHeaders(Aws::String&& key, const char* value) { m_requestHeadersHasBeenSet = true; m_requestHeaders[key] = value; return *this; }
394 
398  inline TestInvokeMethodRequest& 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_resourceId;
404  bool m_resourceIdHasBeenSet;
405  Aws::String m_httpMethod;
406  bool m_httpMethodHasBeenSet;
407  Aws::String m_pathWithQueryString;
408  bool m_pathWithQueryStringHasBeenSet;
409  Aws::String m_clientCertificateId;
410  bool m_clientCertificateIdHasBeenSet;
411  Aws::Map<Aws::String, Aws::String> m_stageVariables;
412  bool m_stageVariablesHasBeenSet;
413  Aws::String m_requestBody;
414  bool m_requestBodyHasBeenSet;
415  Aws::Map<Aws::String, Aws::String> m_requestHeaders;
416  bool m_requestHeadersHasBeenSet;
417  };
418 
419 } // namespace Model
420 } // namespace APIGateway
421 } // namespace Aws
TestInvokeMethodRequest & WithClientCertificateId(const Aws::String &value)
TestInvokeMethodRequest & AddStageVariables(Aws::String &&key, const Aws::String &value)
TestInvokeMethodRequest & AddStageVariables(const char *key, Aws::String &&value)
TestInvokeMethodRequest & AddRequestHeaders(const char *key, const char *value)
TestInvokeMethodRequest & AddRequestHeaders(Aws::String &&key, const Aws::String &value)
TestInvokeMethodRequest & WithHttpMethod(const char *value)
TestInvokeMethodRequest & WithHttpMethod(const Aws::String &value)
TestInvokeMethodRequest & WithRestApiId(Aws::String &&value)
void SetRequestHeaders(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeMethodRequest & AddRequestHeaders(const Aws::String &key, const Aws::String &value)
TestInvokeMethodRequest & WithResourceId(const Aws::String &value)
TestInvokeMethodRequest & WithResourceId(const char *value)
TestInvokeMethodRequest & WithRequestBody(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
TestInvokeMethodRequest & WithHttpMethod(Aws::String &&value)
TestInvokeMethodRequest & WithRequestHeaders(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeMethodRequest & WithRestApiId(const char *value)
TestInvokeMethodRequest & AddStageVariables(const char *key, const char *value)
TestInvokeMethodRequest & WithStageVariables(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeMethodRequest & WithPathWithQueryString(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetStageVariables() const
TestInvokeMethodRequest & AddRequestHeaders(const char *key, Aws::String &&value)
TestInvokeMethodRequest & WithPathWithQueryString(Aws::String &&value)
void SetRequestHeaders(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeMethodRequest & WithStageVariables(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetRequestHeaders() const
TestInvokeMethodRequest & WithResourceId(Aws::String &&value)
void SetStageVariables(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeMethodRequest & AddStageVariables(Aws::String &&key, const char *value)
TestInvokeMethodRequest & AddRequestHeaders(Aws::String &&key, Aws::String &&value)
TestInvokeMethodRequest & WithPathWithQueryString(const char *value)
TestInvokeMethodRequest & WithRequestHeaders(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeMethodRequest & WithRequestBody(Aws::String &&value)
void SetStageVariables(Aws::Map< Aws::String, Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
TestInvokeMethodRequest & AddStageVariables(Aws::String &&key, Aws::String &&value)
TestInvokeMethodRequest & AddStageVariables(const Aws::String &key, const Aws::String &value)
TestInvokeMethodRequest & WithClientCertificateId(const char *value)
TestInvokeMethodRequest & AddRequestHeaders(Aws::String &&key, const char *value)
TestInvokeMethodRequest & AddRequestHeaders(const Aws::String &key, Aws::String &&value)
TestInvokeMethodRequest & WithRequestBody(const char *value)
TestInvokeMethodRequest & AddStageVariables(const Aws::String &key, Aws::String &&value)
JSON (JavaScript Object Notation).
TestInvokeMethodRequest & WithClientCertificateId(Aws::String &&value)
TestInvokeMethodRequest & WithRestApiId(const Aws::String &value)