AWS SDK for C++  1.9.158
AWS SDK for C++
MethodResponse.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace APIGateway
23 {
24 namespace Model
25 {
26 
58  {
59  public:
64 
65 
69  inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
70 
74  inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
75 
79  inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
80 
84  inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
85 
89  inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
90 
94  inline MethodResponse& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
95 
99  inline MethodResponse& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
100 
104  inline MethodResponse& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
105 
106 
124  inline const Aws::Map<Aws::String, bool>& GetResponseParameters() const{ return m_responseParameters; }
125 
143  inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
144 
162  inline void SetResponseParameters(const Aws::Map<Aws::String, bool>& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; }
163 
181  inline void SetResponseParameters(Aws::Map<Aws::String, bool>&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::move(value); }
182 
200  inline MethodResponse& WithResponseParameters(const Aws::Map<Aws::String, bool>& value) { SetResponseParameters(value); return *this;}
201 
219  inline MethodResponse& WithResponseParameters(Aws::Map<Aws::String, bool>&& value) { SetResponseParameters(std::move(value)); return *this;}
220 
238  inline MethodResponse& AddResponseParameters(const Aws::String& key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
239 
257  inline MethodResponse& AddResponseParameters(Aws::String&& key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
258 
276  inline MethodResponse& AddResponseParameters(const char* key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
277 
278 
284  inline const Aws::Map<Aws::String, Aws::String>& GetResponseModels() const{ return m_responseModels; }
285 
291  inline bool ResponseModelsHasBeenSet() const { return m_responseModelsHasBeenSet; }
292 
298  inline void SetResponseModels(const Aws::Map<Aws::String, Aws::String>& value) { m_responseModelsHasBeenSet = true; m_responseModels = value; }
299 
305  inline void SetResponseModels(Aws::Map<Aws::String, Aws::String>&& value) { m_responseModelsHasBeenSet = true; m_responseModels = std::move(value); }
306 
312  inline MethodResponse& WithResponseModels(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseModels(value); return *this;}
313 
319  inline MethodResponse& WithResponseModels(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseModels(std::move(value)); return *this;}
320 
326  inline MethodResponse& AddResponseModels(const Aws::String& key, const Aws::String& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, value); return *this; }
327 
333  inline MethodResponse& AddResponseModels(Aws::String&& key, const Aws::String& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), value); return *this; }
334 
340  inline MethodResponse& AddResponseModels(const Aws::String& key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, std::move(value)); return *this; }
341 
347  inline MethodResponse& AddResponseModels(Aws::String&& key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), std::move(value)); return *this; }
348 
354  inline MethodResponse& AddResponseModels(const char* key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, std::move(value)); return *this; }
355 
361  inline MethodResponse& AddResponseModels(Aws::String&& key, const char* value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), value); return *this; }
362 
368  inline MethodResponse& AddResponseModels(const char* key, const char* value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, value); return *this; }
369 
370  private:
371 
372  Aws::String m_statusCode;
373  bool m_statusCodeHasBeenSet;
374 
375  Aws::Map<Aws::String, bool> m_responseParameters;
376  bool m_responseParametersHasBeenSet;
377 
378  Aws::Map<Aws::String, Aws::String> m_responseModels;
379  bool m_responseModelsHasBeenSet;
380  };
381 
382 } // namespace Model
383 } // namespace APIGateway
384 } // namespace Aws
Aws::APIGateway::Model::MethodResponse::AddResponseModels
MethodResponse & AddResponseModels(Aws::String &&key, const Aws::String &value)
Definition: MethodResponse.h:333
Aws::APIGateway::Model::MethodResponse::WithResponseModels
MethodResponse & WithResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
Definition: MethodResponse.h:312
Aws::APIGateway::Model::MethodResponse::AddResponseModels
MethodResponse & AddResponseModels(const char *key, const char *value)
Definition: MethodResponse.h:368
Aws::APIGateway::Model::MethodResponse::WithStatusCode
MethodResponse & WithStatusCode(const char *value)
Definition: MethodResponse.h:104
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::MethodResponse::AddResponseParameters
MethodResponse & AddResponseParameters(Aws::String &&key, bool value)
Definition: MethodResponse.h:257
Aws::APIGateway::Model::MethodResponse::SetStatusCode
void SetStatusCode(Aws::String &&value)
Definition: MethodResponse.h:84
Aws::APIGateway::Model::MethodResponse::SetStatusCode
void SetStatusCode(const char *value)
Definition: MethodResponse.h:89
Aws::APIGateway::Model::MethodResponse::MethodResponse
MethodResponse()
Aws::APIGateway::Model::MethodResponse::SetResponseParameters
void SetResponseParameters(Aws::Map< Aws::String, bool > &&value)
Definition: MethodResponse.h:181
Aws::APIGateway::Model::MethodResponse::SetResponseModels
void SetResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
Definition: MethodResponse.h:298
Aws::APIGateway::Model::MethodResponse::AddResponseModels
MethodResponse & AddResponseModels(Aws::String &&key, const char *value)
Definition: MethodResponse.h:361
APIGateway_EXPORTS.h
Aws::APIGateway::Model::MethodResponse::WithResponseModels
MethodResponse & WithResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
Definition: MethodResponse.h:319
Aws::APIGateway::Model::MethodResponse::ResponseModelsHasBeenSet
bool ResponseModelsHasBeenSet() const
Definition: MethodResponse.h:291
Aws::APIGateway::Model::MethodResponse::WithResponseParameters
MethodResponse & WithResponseParameters(Aws::Map< Aws::String, bool > &&value)
Definition: MethodResponse.h:219
Aws::APIGateway::Model::MethodResponse::WithResponseParameters
MethodResponse & WithResponseParameters(const Aws::Map< Aws::String, bool > &value)
Definition: MethodResponse.h:200
Aws::APIGateway::Model::MethodResponse::WithStatusCode
MethodResponse & WithStatusCode(Aws::String &&value)
Definition: MethodResponse.h:99
Aws::APIGateway::Model::MethodResponse::AddResponseParameters
MethodResponse & AddResponseParameters(const Aws::String &key, bool value)
Definition: MethodResponse.h:238
Aws::APIGateway::Model::MethodResponse::AddResponseModels
MethodResponse & AddResponseModels(Aws::String &&key, Aws::String &&value)
Definition: MethodResponse.h:347
Aws::APIGateway::Model::MethodResponse::ResponseParametersHasBeenSet
bool ResponseParametersHasBeenSet() const
Definition: MethodResponse.h:143
Aws::APIGateway::Model::MethodResponse::WithStatusCode
MethodResponse & WithStatusCode(const Aws::String &value)
Definition: MethodResponse.h:94
Aws::APIGateway::Model::MethodResponse::SetResponseParameters
void SetResponseParameters(const Aws::Map< Aws::String, bool > &value)
Definition: MethodResponse.h:162
Aws::APIGateway::Model::MethodResponse::AddResponseModels
MethodResponse & AddResponseModels(const Aws::String &key, const Aws::String &value)
Definition: MethodResponse.h:326
Aws::APIGateway::Model::MethodResponse::AddResponseModels
MethodResponse & AddResponseModels(const char *key, Aws::String &&value)
Definition: MethodResponse.h:354
Aws::APIGateway::Model::MethodResponse::SetResponseModels
void SetResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
Definition: MethodResponse.h:305
Aws::APIGateway::Model::MethodResponse
Definition: MethodResponse.h:58
Aws::APIGateway::Model::MethodResponse::GetResponseModels
const Aws::Map< Aws::String, Aws::String > & GetResponseModels() const
Definition: MethodResponse.h:284
Aws::APIGateway::Model::MethodResponse::StatusCodeHasBeenSet
bool StatusCodeHasBeenSet() const
Definition: MethodResponse.h:74
Aws::APIGateway::Model::MethodResponse::AddResponseParameters
MethodResponse & AddResponseParameters(const char *key, bool value)
Definition: MethodResponse.h:276
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::APIGateway::Model::MethodResponse::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::MethodResponse::SetStatusCode
void SetStatusCode(const Aws::String &value)
Definition: MethodResponse.h:79
Aws::APIGateway::Model::MethodResponse::GetResponseParameters
const Aws::Map< Aws::String, bool > & GetResponseParameters() const
Definition: MethodResponse.h:124
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::MethodResponse::GetStatusCode
const Aws::String & GetStatusCode() const
Definition: MethodResponse.h:69
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::MethodResponse::MethodResponse
MethodResponse(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::MethodResponse::AddResponseModels
MethodResponse & AddResponseModels(const Aws::String &key, Aws::String &&value)
Definition: MethodResponse.h:340
AWSMap.h
Aws::APIGateway::Model::MethodResponse::operator=
MethodResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19