AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MethodResponse.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace APIGateway
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_APIGATEWAY_API MethodResponse();
39 AWS_APIGATEWAY_API MethodResponse(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APIGATEWAY_API MethodResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
49 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
50 inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
51 inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
52 inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
53 inline MethodResponse& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
54 inline MethodResponse& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
55 inline MethodResponse& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
57
59
76 inline const Aws::Map<Aws::String, bool>& GetResponseParameters() const{ return m_responseParameters; }
77 inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
78 inline void SetResponseParameters(const Aws::Map<Aws::String, bool>& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; }
79 inline void SetResponseParameters(Aws::Map<Aws::String, bool>&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::move(value); }
82 inline MethodResponse& AddResponseParameters(const Aws::String& key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
83 inline MethodResponse& AddResponseParameters(Aws::String&& key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
84 inline MethodResponse& AddResponseParameters(const char* key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
86
88
93 inline const Aws::Map<Aws::String, Aws::String>& GetResponseModels() const{ return m_responseModels; }
94 inline bool ResponseModelsHasBeenSet() const { return m_responseModelsHasBeenSet; }
95 inline void SetResponseModels(const Aws::Map<Aws::String, Aws::String>& value) { m_responseModelsHasBeenSet = true; m_responseModels = value; }
96 inline void SetResponseModels(Aws::Map<Aws::String, Aws::String>&& value) { m_responseModelsHasBeenSet = true; m_responseModels = std::move(value); }
99 inline MethodResponse& AddResponseModels(const Aws::String& key, const Aws::String& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, value); return *this; }
100 inline MethodResponse& AddResponseModels(Aws::String&& key, const Aws::String& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), value); return *this; }
101 inline MethodResponse& AddResponseModels(const Aws::String& key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, std::move(value)); return *this; }
102 inline MethodResponse& AddResponseModels(Aws::String&& key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), std::move(value)); return *this; }
103 inline MethodResponse& AddResponseModels(const char* key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, std::move(value)); return *this; }
104 inline MethodResponse& AddResponseModels(Aws::String&& key, const char* value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(std::move(key), value); return *this; }
105 inline MethodResponse& AddResponseModels(const char* key, const char* value) { m_responseModelsHasBeenSet = true; m_responseModels.emplace(key, value); return *this; }
107
109
110 inline const Aws::String& GetRequestId() const{ return m_requestId; }
111 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
112 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
113 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
114 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
115 inline MethodResponse& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
116 inline MethodResponse& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
117 inline MethodResponse& WithRequestId(const char* value) { SetRequestId(value); return *this;}
119 private:
120
121 Aws::String m_statusCode;
122 bool m_statusCodeHasBeenSet = false;
123
124 Aws::Map<Aws::String, bool> m_responseParameters;
125 bool m_responseParametersHasBeenSet = false;
126
127 Aws::Map<Aws::String, Aws::String> m_responseModels;
128 bool m_responseModelsHasBeenSet = false;
129
130 Aws::String m_requestId;
131 bool m_requestIdHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace APIGateway
136} // namespace Aws
const Aws::Map< Aws::String, bool > & GetResponseParameters() const
MethodResponse & AddResponseModels(const char *key, Aws::String &&value)
void SetResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
MethodResponse & AddResponseModels(const Aws::String &key, const Aws::String &value)
const Aws::String & GetStatusCode() const
MethodResponse & WithRequestId(const Aws::String &value)
MethodResponse & WithResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
MethodResponse & AddResponseModels(const Aws::String &key, Aws::String &&value)
void SetStatusCode(const char *value)
MethodResponse & AddResponseModels(const char *key, const char *value)
MethodResponse & AddResponseModels(Aws::String &&key, const Aws::String &value)
void SetStatusCode(Aws::String &&value)
MethodResponse & AddResponseModels(Aws::String &&key, Aws::String &&value)
void SetRequestId(Aws::String &&value)
const Aws::String & GetRequestId() const
MethodResponse & WithResponseParameters(const Aws::Map< Aws::String, bool > &value)
AWS_APIGATEWAY_API MethodResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
MethodResponse & AddResponseParameters(const char *key, bool value)
MethodResponse & WithRequestId(Aws::String &&value)
MethodResponse & AddResponseModels(Aws::String &&key, const char *value)
MethodResponse & WithStatusCode(const char *value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
MethodResponse & WithRequestId(const char *value)
MethodResponse & WithResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
MethodResponse & WithResponseParameters(Aws::Map< Aws::String, bool > &&value)
MethodResponse & AddResponseParameters(const Aws::String &key, bool value)
void SetResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
MethodResponse & WithStatusCode(const Aws::String &value)
void SetRequestId(const Aws::String &value)
AWS_APIGATEWAY_API MethodResponse(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetResponseModels() const
void SetStatusCode(const Aws::String &value)
void SetResponseParameters(const Aws::Map< Aws::String, bool > &value)
MethodResponse & WithStatusCode(Aws::String &&value)
void SetResponseParameters(Aws::Map< Aws::String, bool > &&value)
MethodResponse & AddResponseParameters(Aws::String &&key, bool value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue