AWS SDK for C++  1.9.18
AWS SDK for C++
PutGatewayResponseRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace APIGateway
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "PutGatewayResponse"; }
37 
38  Aws::String SerializePayload() const override;
39 
40 
44  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
45 
49  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
50 
54  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
55 
59  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
60 
64  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
65 
69  inline PutGatewayResponseRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
70 
74  inline PutGatewayResponseRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
75 
79  inline PutGatewayResponseRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
80 
81 
90  inline const GatewayResponseType& GetResponseType() const{ return m_responseType; }
91 
100  inline bool ResponseTypeHasBeenSet() const { return m_responseTypeHasBeenSet; }
101 
110  inline void SetResponseType(const GatewayResponseType& value) { m_responseTypeHasBeenSet = true; m_responseType = value; }
111 
120  inline void SetResponseType(GatewayResponseType&& value) { m_responseTypeHasBeenSet = true; m_responseType = std::move(value); }
121 
130  inline PutGatewayResponseRequest& WithResponseType(const GatewayResponseType& value) { SetResponseType(value); return *this;}
131 
140  inline PutGatewayResponseRequest& WithResponseType(GatewayResponseType&& value) { SetResponseType(std::move(value)); return *this;}
141 
142 
146  inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
147 
151  inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
152 
156  inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
157 
161  inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
162 
166  inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
167 
171  inline PutGatewayResponseRequest& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
172 
176  inline PutGatewayResponseRequest& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
177 
181  inline PutGatewayResponseRequest& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
182 
183 
188  inline const Aws::Map<Aws::String, Aws::String>& GetResponseParameters() const{ return m_responseParameters; }
189 
194  inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
195 
200  inline void SetResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; }
201 
206  inline void SetResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::move(value); }
207 
212  inline PutGatewayResponseRequest& WithResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseParameters(value); return *this;}
213 
218  inline PutGatewayResponseRequest& WithResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseParameters(std::move(value)); return *this;}
219 
224  inline PutGatewayResponseRequest& AddResponseParameters(const Aws::String& key, const Aws::String& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
225 
230  inline PutGatewayResponseRequest& AddResponseParameters(Aws::String&& key, const Aws::String& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
231 
236  inline PutGatewayResponseRequest& AddResponseParameters(const Aws::String& key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
237 
242  inline PutGatewayResponseRequest& AddResponseParameters(Aws::String&& key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), std::move(value)); return *this; }
243 
248  inline PutGatewayResponseRequest& AddResponseParameters(const char* key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
249 
254  inline PutGatewayResponseRequest& AddResponseParameters(Aws::String&& key, const char* value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
255 
260  inline PutGatewayResponseRequest& AddResponseParameters(const char* key, const char* value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
261 
262 
267  inline const Aws::Map<Aws::String, Aws::String>& GetResponseTemplates() const{ return m_responseTemplates; }
268 
273  inline bool ResponseTemplatesHasBeenSet() const { return m_responseTemplatesHasBeenSet; }
274 
279  inline void SetResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = value; }
280 
285  inline void SetResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = std::move(value); }
286 
291  inline PutGatewayResponseRequest& WithResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseTemplates(value); return *this;}
292 
297  inline PutGatewayResponseRequest& WithResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseTemplates(std::move(value)); return *this;}
298 
303  inline PutGatewayResponseRequest& AddResponseTemplates(const Aws::String& key, const Aws::String& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, value); return *this; }
304 
309  inline PutGatewayResponseRequest& AddResponseTemplates(Aws::String&& key, const Aws::String& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), value); return *this; }
310 
315  inline PutGatewayResponseRequest& AddResponseTemplates(const Aws::String& key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, std::move(value)); return *this; }
316 
321  inline PutGatewayResponseRequest& AddResponseTemplates(Aws::String&& key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), std::move(value)); return *this; }
322 
327  inline PutGatewayResponseRequest& AddResponseTemplates(const char* key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, std::move(value)); return *this; }
328 
333  inline PutGatewayResponseRequest& AddResponseTemplates(Aws::String&& key, const char* value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), value); return *this; }
334 
339  inline PutGatewayResponseRequest& AddResponseTemplates(const char* key, const char* value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, value); return *this; }
340 
341  private:
342 
343  Aws::String m_restApiId;
344  bool m_restApiIdHasBeenSet;
345 
346  GatewayResponseType m_responseType;
347  bool m_responseTypeHasBeenSet;
348 
349  Aws::String m_statusCode;
350  bool m_statusCodeHasBeenSet;
351 
352  Aws::Map<Aws::String, Aws::String> m_responseParameters;
353  bool m_responseParametersHasBeenSet;
354 
355  Aws::Map<Aws::String, Aws::String> m_responseTemplates;
356  bool m_responseTemplatesHasBeenSet;
357  };
358 
359 } // namespace Model
360 } // namespace APIGateway
361 } // namespace Aws
Aws::APIGateway::Model::PutGatewayResponseRequest::SetResponseType
void SetResponseType(const GatewayResponseType &value)
Definition: PutGatewayResponseRequest.h:110
GatewayResponseType.h
Aws::APIGateway::Model::PutGatewayResponseRequest::AddResponseTemplates
PutGatewayResponseRequest & AddResponseTemplates(const Aws::String &key, Aws::String &&value)
Definition: PutGatewayResponseRequest.h:315
Aws::APIGateway::Model::PutGatewayResponseRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: PutGatewayResponseRequest.h:54
Aws::APIGateway::Model::PutGatewayResponseRequest::GetResponseTemplates
const Aws::Map< Aws::String, Aws::String > & GetResponseTemplates() const
Definition: PutGatewayResponseRequest.h:267
Aws::APIGateway::Model::PutGatewayResponseRequest::SetStatusCode
void SetStatusCode(const char *value)
Definition: PutGatewayResponseRequest.h:166
Aws::APIGateway::Model::PutGatewayResponseRequest::GetStatusCode
const Aws::String & GetStatusCode() const
Definition: PutGatewayResponseRequest.h:146
Aws::APIGateway::Model::PutGatewayResponseRequest::ResponseTypeHasBeenSet
bool ResponseTypeHasBeenSet() const
Definition: PutGatewayResponseRequest.h:100
Aws::APIGateway::Model::PutGatewayResponseRequest::AddResponseParameters
PutGatewayResponseRequest & AddResponseParameters(const Aws::String &key, Aws::String &&value)
Definition: PutGatewayResponseRequest.h:236
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::PutGatewayResponseRequest::SetResponseType
void SetResponseType(GatewayResponseType &&value)
Definition: PutGatewayResponseRequest.h:120
Aws::APIGateway::Model::PutGatewayResponseRequest::AddResponseTemplates
PutGatewayResponseRequest & AddResponseTemplates(const Aws::String &key, const Aws::String &value)
Definition: PutGatewayResponseRequest.h:303
Aws::APIGateway::Model::PutGatewayResponseRequest::AddResponseParameters
PutGatewayResponseRequest & AddResponseParameters(Aws::String &&key, const Aws::String &value)
Definition: PutGatewayResponseRequest.h:230
Aws::APIGateway::Model::PutGatewayResponseRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: PutGatewayResponseRequest.h:64
Aws::APIGateway::Model::PutGatewayResponseRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: PutGatewayResponseRequest.h:59
Aws::APIGateway::Model::PutGatewayResponseRequest::GetResponseType
const GatewayResponseType & GetResponseType() const
Definition: PutGatewayResponseRequest.h:90
Aws::APIGateway::Model::PutGatewayResponseRequest::SetResponseTemplates
void SetResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutGatewayResponseRequest.h:285
Aws::APIGateway::Model::PutGatewayResponseRequest::AddResponseTemplates
PutGatewayResponseRequest & AddResponseTemplates(Aws::String &&key, const Aws::String &value)
Definition: PutGatewayResponseRequest.h:309
Aws::APIGateway::Model::PutGatewayResponseRequest::WithResponseParameters
PutGatewayResponseRequest & WithResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutGatewayResponseRequest.h:218
Aws::APIGateway::Model::PutGatewayResponseRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::PutGatewayResponseRequest::WithResponseType
PutGatewayResponseRequest & WithResponseType(GatewayResponseType &&value)
Definition: PutGatewayResponseRequest.h:140
APIGateway_EXPORTS.h
Aws::APIGateway::Model::PutGatewayResponseRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutGatewayResponseRequest.h:36
Aws::APIGateway::Model::PutGatewayResponseRequest::ResponseTemplatesHasBeenSet
bool ResponseTemplatesHasBeenSet() const
Definition: PutGatewayResponseRequest.h:273
Aws::APIGateway::Model::PutGatewayResponseRequest::SetStatusCode
void SetStatusCode(Aws::String &&value)
Definition: PutGatewayResponseRequest.h:161
Aws::APIGateway::Model::PutGatewayResponseRequest::AddResponseParameters
PutGatewayResponseRequest & AddResponseParameters(Aws::String &&key, Aws::String &&value)
Definition: PutGatewayResponseRequest.h:242
Aws::APIGateway::Model::PutGatewayResponseRequest::SetResponseTemplates
void SetResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutGatewayResponseRequest.h:279
APIGatewayRequest.h
Aws::APIGateway::Model::PutGatewayResponseRequest::WithRestApiId
PutGatewayResponseRequest & WithRestApiId(const Aws::String &value)
Definition: PutGatewayResponseRequest.h:69
Aws::APIGateway::Model::PutGatewayResponseRequest::StatusCodeHasBeenSet
bool StatusCodeHasBeenSet() const
Definition: PutGatewayResponseRequest.h:151
Aws::APIGateway::Model::PutGatewayResponseRequest::WithResponseTemplates
PutGatewayResponseRequest & WithResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutGatewayResponseRequest.h:291
Aws::APIGateway::Model::PutGatewayResponseRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: PutGatewayResponseRequest.h:49
Aws::APIGateway::Model::PutGatewayResponseRequest::AddResponseTemplates
PutGatewayResponseRequest & AddResponseTemplates(const char *key, Aws::String &&value)
Definition: PutGatewayResponseRequest.h:327
Aws::APIGateway::Model::PutGatewayResponseRequest::WithStatusCode
PutGatewayResponseRequest & WithStatusCode(const char *value)
Definition: PutGatewayResponseRequest.h:181
Aws::APIGateway::Model::PutGatewayResponseRequest::AddResponseParameters
PutGatewayResponseRequest & AddResponseParameters(const char *key, Aws::String &&value)
Definition: PutGatewayResponseRequest.h:248
Aws::APIGateway::Model::PutGatewayResponseRequest::WithStatusCode
PutGatewayResponseRequest & WithStatusCode(Aws::String &&value)
Definition: PutGatewayResponseRequest.h:176
AWSString.h
Aws::APIGateway::Model::PutGatewayResponseRequest::AddResponseParameters
PutGatewayResponseRequest & AddResponseParameters(Aws::String &&key, const char *value)
Definition: PutGatewayResponseRequest.h:254
Aws::APIGateway::Model::PutGatewayResponseRequest::GetResponseParameters
const Aws::Map< Aws::String, Aws::String > & GetResponseParameters() const
Definition: PutGatewayResponseRequest.h:188
Aws::APIGateway::Model::PutGatewayResponseRequest::AddResponseTemplates
PutGatewayResponseRequest & AddResponseTemplates(const char *key, const char *value)
Definition: PutGatewayResponseRequest.h:339
Aws::APIGateway::Model::PutGatewayResponseRequest::WithResponseParameters
PutGatewayResponseRequest & WithResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutGatewayResponseRequest.h:212
Aws::APIGateway::Model::PutGatewayResponseRequest::WithResponseTemplates
PutGatewayResponseRequest & WithResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutGatewayResponseRequest.h:297
Aws::APIGateway::Model::GatewayResponseType
GatewayResponseType
Definition: GatewayResponseType.h:17
Aws::APIGateway::Model::PutGatewayResponseRequest::WithRestApiId
PutGatewayResponseRequest & WithRestApiId(const char *value)
Definition: PutGatewayResponseRequest.h:79
Aws::APIGateway::Model::PutGatewayResponseRequest::SetResponseParameters
void SetResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutGatewayResponseRequest.h:200
Aws::APIGateway::Model::PutGatewayResponseRequest::WithStatusCode
PutGatewayResponseRequest & WithStatusCode(const Aws::String &value)
Definition: PutGatewayResponseRequest.h:171
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::PutGatewayResponseRequest::AddResponseTemplates
PutGatewayResponseRequest & AddResponseTemplates(Aws::String &&key, const char *value)
Definition: PutGatewayResponseRequest.h:333
Aws::APIGateway::Model::PutGatewayResponseRequest::AddResponseParameters
PutGatewayResponseRequest & AddResponseParameters(const Aws::String &key, const Aws::String &value)
Definition: PutGatewayResponseRequest.h:224
Aws::APIGateway::Model::PutGatewayResponseRequest::SetResponseParameters
void SetResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutGatewayResponseRequest.h:206
Aws::APIGateway::Model::PutGatewayResponseRequest::PutGatewayResponseRequest
PutGatewayResponseRequest()
Aws::APIGateway::Model::PutGatewayResponseRequest::WithResponseType
PutGatewayResponseRequest & WithResponseType(const GatewayResponseType &value)
Definition: PutGatewayResponseRequest.h:130
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::PutGatewayResponseRequest::WithRestApiId
PutGatewayResponseRequest & WithRestApiId(Aws::String &&value)
Definition: PutGatewayResponseRequest.h:74
Aws::APIGateway::Model::PutGatewayResponseRequest::AddResponseTemplates
PutGatewayResponseRequest & AddResponseTemplates(Aws::String &&key, Aws::String &&value)
Definition: PutGatewayResponseRequest.h:321
Aws::APIGateway::Model::PutGatewayResponseRequest
Definition: PutGatewayResponseRequest.h:28
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
AWSMap.h
Aws::APIGateway::Model::PutGatewayResponseRequest::ResponseParametersHasBeenSet
bool ResponseParametersHasBeenSet() const
Definition: PutGatewayResponseRequest.h:194
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::APIGateway::Model::PutGatewayResponseRequest::SetStatusCode
void SetStatusCode(const Aws::String &value)
Definition: PutGatewayResponseRequest.h:156
Aws::APIGateway::Model::PutGatewayResponseRequest::AddResponseParameters
PutGatewayResponseRequest & AddResponseParameters(const char *key, const char *value)
Definition: PutGatewayResponseRequest.h:260
Aws::APIGateway::Model::PutGatewayResponseRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: PutGatewayResponseRequest.h:44