AWS SDK for C++  1.9.16
AWS SDK for C++
PutMethodResponseRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace APIGateway
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "PutMethodResponse"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
44 
48  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
49 
53  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
54 
58  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
59 
63  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
64 
68  inline PutMethodResponseRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
69 
73  inline PutMethodResponseRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
74 
78  inline PutMethodResponseRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
79 
80 
84  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
85 
89  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
90 
94  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
95 
99  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
100 
104  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
105 
109  inline PutMethodResponseRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
110 
114  inline PutMethodResponseRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
115 
119  inline PutMethodResponseRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
120 
121 
125  inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
126 
130  inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
131 
135  inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
136 
140  inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
141 
145  inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
146 
150  inline PutMethodResponseRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
151 
155  inline PutMethodResponseRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
156 
160  inline PutMethodResponseRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
161 
162 
166  inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
167 
171  inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
172 
176  inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
177 
181  inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
182 
186  inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
187 
191  inline PutMethodResponseRequest& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
192 
196  inline PutMethodResponseRequest& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
197 
201  inline PutMethodResponseRequest& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
202 
203 
220  inline const Aws::Map<Aws::String, bool>& GetResponseParameters() const{ return m_responseParameters; }
221 
238  inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
239 
256  inline void SetResponseParameters(const Aws::Map<Aws::String, bool>& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; }
257 
274  inline void SetResponseParameters(Aws::Map<Aws::String, bool>&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::move(value); }
275 
292  inline PutMethodResponseRequest& WithResponseParameters(const Aws::Map<Aws::String, bool>& value) { SetResponseParameters(value); return *this;}
293 
310  inline PutMethodResponseRequest& WithResponseParameters(Aws::Map<Aws::String, bool>&& value) { SetResponseParameters(std::move(value)); return *this;}
311 
328  inline PutMethodResponseRequest& AddResponseParameters(const Aws::String& key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
329 
346  inline PutMethodResponseRequest& AddResponseParameters(Aws::String&& key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
347 
364  inline PutMethodResponseRequest& AddResponseParameters(const char* key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
365 
366 
372  inline const Aws::Map<Aws::String, Aws::String>& GetResponseModels() const{ return m_responseModels; }
373 
379  inline bool ResponseModelsHasBeenSet() const { return m_responseModelsHasBeenSet; }
380 
386  inline void SetResponseModels(const Aws::Map<Aws::String, Aws::String>& value) { m_responseModelsHasBeenSet = true; m_responseModels = value; }
387 
393  inline void SetResponseModels(Aws::Map<Aws::String, Aws::String>&& value) { m_responseModelsHasBeenSet = true; m_responseModels = std::move(value); }
394 
400  inline PutMethodResponseRequest& WithResponseModels(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseModels(value); return *this;}
401 
407  inline PutMethodResponseRequest& WithResponseModels(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseModels(std::move(value)); return *this;}
408 
414  inline PutMethodResponseRequest& AddResponseModels(const Aws::String& key, const Aws::String& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, value); return *this; }
415 
421  inline PutMethodResponseRequest& AddResponseModels(Aws::String&& key, const Aws::String& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), value); return *this; }
422 
428  inline PutMethodResponseRequest& AddResponseModels(const Aws::String& key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, std::move(value)); return *this; }
429 
435  inline PutMethodResponseRequest& AddResponseModels(Aws::String&& key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), std::move(value)); return *this; }
436 
442  inline PutMethodResponseRequest& AddResponseModels(const char* key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, std::move(value)); return *this; }
443 
449  inline PutMethodResponseRequest& AddResponseModels(Aws::String&& key, const char* value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), value); return *this; }
450 
456  inline PutMethodResponseRequest& AddResponseModels(const char* key, const char* value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, value); return *this; }
457 
458  private:
459 
460  Aws::String m_restApiId;
461  bool m_restApiIdHasBeenSet;
462 
463  Aws::String m_resourceId;
464  bool m_resourceIdHasBeenSet;
465 
466  Aws::String m_httpMethod;
467  bool m_httpMethodHasBeenSet;
468 
469  Aws::String m_statusCode;
470  bool m_statusCodeHasBeenSet;
471 
472  Aws::Map<Aws::String, bool> m_responseParameters;
473  bool m_responseParametersHasBeenSet;
474 
475  Aws::Map<Aws::String, Aws::String> m_responseModels;
476  bool m_responseModelsHasBeenSet;
477  };
478 
479 } // namespace Model
480 } // namespace APIGateway
481 } // namespace Aws
Aws::APIGateway::Model::PutMethodResponseRequest::GetStatusCode
const Aws::String & GetStatusCode() const
Definition: PutMethodResponseRequest.h:166
Aws::APIGateway::Model::PutMethodResponseRequest::SetHttpMethod
void SetHttpMethod(const char *value)
Definition: PutMethodResponseRequest.h:145
Aws::APIGateway::Model::PutMethodResponseRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: PutMethodResponseRequest.h:58
Aws::APIGateway::Model::PutMethodResponseRequest::SetHttpMethod
void SetHttpMethod(const Aws::String &value)
Definition: PutMethodResponseRequest.h:135
Aws::APIGateway::Model::PutMethodResponseRequest::AddResponseModels
PutMethodResponseRequest & AddResponseModels(const Aws::String &key, Aws::String &&value)
Definition: PutMethodResponseRequest.h:428
Aws::APIGateway::Model::PutMethodResponseRequest::WithRestApiId
PutMethodResponseRequest & WithRestApiId(const char *value)
Definition: PutMethodResponseRequest.h:78
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::PutMethodResponseRequest::WithResponseModels
PutMethodResponseRequest & WithResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutMethodResponseRequest.h:407
Aws::APIGateway::Model::PutMethodResponseRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: PutMethodResponseRequest.h:63
Aws::APIGateway::Model::PutMethodResponseRequest::WithStatusCode
PutMethodResponseRequest & WithStatusCode(const Aws::String &value)
Definition: PutMethodResponseRequest.h:191
Aws::APIGateway::Model::PutMethodResponseRequest::SetResourceId
void SetResourceId(const char *value)
Definition: PutMethodResponseRequest.h:104
Aws::APIGateway::Model::PutMethodResponseRequest::SetStatusCode
void SetStatusCode(Aws::String &&value)
Definition: PutMethodResponseRequest.h:181
Aws::APIGateway::Model::PutMethodResponseRequest::HttpMethodHasBeenSet
bool HttpMethodHasBeenSet() const
Definition: PutMethodResponseRequest.h:130
Aws::APIGateway::Model::PutMethodResponseRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: PutMethodResponseRequest.h:48
Aws::APIGateway::Model::PutMethodResponseRequest::WithHttpMethod
PutMethodResponseRequest & WithHttpMethod(const Aws::String &value)
Definition: PutMethodResponseRequest.h:150
Aws::APIGateway::Model::PutMethodResponseRequest
Definition: PutMethodResponseRequest.h:27
Aws::APIGateway::Model::PutMethodResponseRequest::WithResourceId
PutMethodResponseRequest & WithResourceId(const char *value)
Definition: PutMethodResponseRequest.h:119
APIGateway_EXPORTS.h
Aws::APIGateway::Model::PutMethodResponseRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::PutMethodResponseRequest::StatusCodeHasBeenSet
bool StatusCodeHasBeenSet() const
Definition: PutMethodResponseRequest.h:171
Aws::APIGateway::Model::PutMethodResponseRequest::WithRestApiId
PutMethodResponseRequest & WithRestApiId(Aws::String &&value)
Definition: PutMethodResponseRequest.h:73
Aws::APIGateway::Model::PutMethodResponseRequest::GetResponseParameters
const Aws::Map< Aws::String, bool > & GetResponseParameters() const
Definition: PutMethodResponseRequest.h:220
Aws::APIGateway::Model::PutMethodResponseRequest::AddResponseModels
PutMethodResponseRequest & AddResponseModels(const char *key, Aws::String &&value)
Definition: PutMethodResponseRequest.h:442
Aws::APIGateway::Model::PutMethodResponseRequest::AddResponseModels
PutMethodResponseRequest & AddResponseModels(Aws::String &&key, const Aws::String &value)
Definition: PutMethodResponseRequest.h:421
APIGatewayRequest.h
Aws::APIGateway::Model::PutMethodResponseRequest::WithResponseModels
PutMethodResponseRequest & WithResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutMethodResponseRequest.h:400
Aws::APIGateway::Model::PutMethodResponseRequest::ResponseModelsHasBeenSet
bool ResponseModelsHasBeenSet() const
Definition: PutMethodResponseRequest.h:379
Aws::APIGateway::Model::PutMethodResponseRequest::ResponseParametersHasBeenSet
bool ResponseParametersHasBeenSet() const
Definition: PutMethodResponseRequest.h:238
Aws::APIGateway::Model::PutMethodResponseRequest::SetResponseParameters
void SetResponseParameters(Aws::Map< Aws::String, bool > &&value)
Definition: PutMethodResponseRequest.h:274
Aws::APIGateway::Model::PutMethodResponseRequest::SetHttpMethod
void SetHttpMethod(Aws::String &&value)
Definition: PutMethodResponseRequest.h:140
Aws::APIGateway::Model::PutMethodResponseRequest::AddResponseParameters
PutMethodResponseRequest & AddResponseParameters(const char *key, bool value)
Definition: PutMethodResponseRequest.h:364
Aws::APIGateway::Model::PutMethodResponseRequest::GetResponseModels
const Aws::Map< Aws::String, Aws::String > & GetResponseModels() const
Definition: PutMethodResponseRequest.h:372
Aws::APIGateway::Model::PutMethodResponseRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: PutMethodResponseRequest.h:94
Aws::APIGateway::Model::PutMethodResponseRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutMethodResponseRequest.h:35
Aws::APIGateway::Model::PutMethodResponseRequest::SetStatusCode
void SetStatusCode(const Aws::String &value)
Definition: PutMethodResponseRequest.h:176
Aws::APIGateway::Model::PutMethodResponseRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: PutMethodResponseRequest.h:84
Aws::APIGateway::Model::PutMethodResponseRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: PutMethodResponseRequest.h:43
Aws::APIGateway::Model::PutMethodResponseRequest::WithResourceId
PutMethodResponseRequest & WithResourceId(Aws::String &&value)
Definition: PutMethodResponseRequest.h:114
AWSString.h
Aws::APIGateway::Model::PutMethodResponseRequest::AddResponseParameters
PutMethodResponseRequest & AddResponseParameters(const Aws::String &key, bool value)
Definition: PutMethodResponseRequest.h:328
Aws::APIGateway::Model::PutMethodResponseRequest::WithStatusCode
PutMethodResponseRequest & WithStatusCode(const char *value)
Definition: PutMethodResponseRequest.h:201
Aws::APIGateway::Model::PutMethodResponseRequest::AddResponseParameters
PutMethodResponseRequest & AddResponseParameters(Aws::String &&key, bool value)
Definition: PutMethodResponseRequest.h:346
Aws::APIGateway::Model::PutMethodResponseRequest::GetHttpMethod
const Aws::String & GetHttpMethod() const
Definition: PutMethodResponseRequest.h:125
Aws::APIGateway::Model::PutMethodResponseRequest::WithStatusCode
PutMethodResponseRequest & WithStatusCode(Aws::String &&value)
Definition: PutMethodResponseRequest.h:196
Aws::APIGateway::Model::PutMethodResponseRequest::WithResponseParameters
PutMethodResponseRequest & WithResponseParameters(Aws::Map< Aws::String, bool > &&value)
Definition: PutMethodResponseRequest.h:310
Aws::APIGateway::Model::PutMethodResponseRequest::AddResponseModels
PutMethodResponseRequest & AddResponseModels(const char *key, const char *value)
Definition: PutMethodResponseRequest.h:456
Aws::APIGateway::Model::PutMethodResponseRequest::WithResponseParameters
PutMethodResponseRequest & WithResponseParameters(const Aws::Map< Aws::String, bool > &value)
Definition: PutMethodResponseRequest.h:292
Aws::APIGateway::Model::PutMethodResponseRequest::PutMethodResponseRequest
PutMethodResponseRequest()
Aws::APIGateway::Model::PutMethodResponseRequest::AddResponseModels
PutMethodResponseRequest & AddResponseModels(Aws::String &&key, Aws::String &&value)
Definition: PutMethodResponseRequest.h:435
Aws::APIGateway::Model::PutMethodResponseRequest::SetResponseModels
void SetResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutMethodResponseRequest.h:386
Aws::APIGateway::Model::PutMethodResponseRequest::WithHttpMethod
PutMethodResponseRequest & WithHttpMethod(const char *value)
Definition: PutMethodResponseRequest.h:160
Aws::APIGateway::Model::PutMethodResponseRequest::WithRestApiId
PutMethodResponseRequest & WithRestApiId(const Aws::String &value)
Definition: PutMethodResponseRequest.h:68
Aws::APIGateway::Model::PutMethodResponseRequest::AddResponseModels
PutMethodResponseRequest & AddResponseModels(const Aws::String &key, const Aws::String &value)
Definition: PutMethodResponseRequest.h:414
Aws::APIGateway::Model::PutMethodResponseRequest::SetResponseParameters
void SetResponseParameters(const Aws::Map< Aws::String, bool > &value)
Definition: PutMethodResponseRequest.h:256
Aws::APIGateway::Model::PutMethodResponseRequest::WithResourceId
PutMethodResponseRequest & WithResourceId(const Aws::String &value)
Definition: PutMethodResponseRequest.h:109
Aws::APIGateway::Model::PutMethodResponseRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: PutMethodResponseRequest.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::PutMethodResponseRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: PutMethodResponseRequest.h:99
Aws::APIGateway::Model::PutMethodResponseRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: PutMethodResponseRequest.h:89
Aws::APIGateway::Model::PutMethodResponseRequest::SetStatusCode
void SetStatusCode(const char *value)
Definition: PutMethodResponseRequest.h:186
Aws::APIGateway::Model::PutMethodResponseRequest::SetResponseModels
void SetResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutMethodResponseRequest.h:393
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::PutMethodResponseRequest::WithHttpMethod
PutMethodResponseRequest & WithHttpMethod(Aws::String &&value)
Definition: PutMethodResponseRequest.h:155
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
AWSMap.h
Aws::APIGateway::Model::PutMethodResponseRequest::AddResponseModels
PutMethodResponseRequest & AddResponseModels(Aws::String &&key, const char *value)
Definition: PutMethodResponseRequest.h:449
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19