AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutMethodResponseResult.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{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace APIGateway
25{
26namespace Model
27{
37 {
38 public:
39 AWS_APIGATEWAY_API PutMethodResponseResult();
42
43
45
48 inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
49 inline void SetStatusCode(const Aws::String& value) { m_statusCode = value; }
50 inline void SetStatusCode(Aws::String&& value) { m_statusCode = std::move(value); }
51 inline void SetStatusCode(const char* value) { m_statusCode.assign(value); }
52 inline PutMethodResponseResult& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
53 inline PutMethodResponseResult& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
54 inline PutMethodResponseResult& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
56
58
75 inline const Aws::Map<Aws::String, bool>& GetResponseParameters() const{ return m_responseParameters; }
76 inline void SetResponseParameters(const Aws::Map<Aws::String, bool>& value) { m_responseParameters = value; }
77 inline void SetResponseParameters(Aws::Map<Aws::String, bool>&& value) { m_responseParameters = std::move(value); }
80 inline PutMethodResponseResult& AddResponseParameters(const Aws::String& key, bool value) { m_responseParameters.emplace(key, value); return *this; }
81 inline PutMethodResponseResult& AddResponseParameters(Aws::String&& key, bool value) { m_responseParameters.emplace(std::move(key), value); return *this; }
82 inline PutMethodResponseResult& AddResponseParameters(const char* key, bool value) { m_responseParameters.emplace(key, value); return *this; }
84
86
91 inline const Aws::Map<Aws::String, Aws::String>& GetResponseModels() const{ return m_responseModels; }
92 inline void SetResponseModels(const Aws::Map<Aws::String, Aws::String>& value) { m_responseModels = value; }
93 inline void SetResponseModels(Aws::Map<Aws::String, Aws::String>&& value) { m_responseModels = std::move(value); }
96 inline PutMethodResponseResult& AddResponseModels(const Aws::String& key, const Aws::String& value) { m_responseModels.emplace(key, value); return *this; }
97 inline PutMethodResponseResult& AddResponseModels(Aws::String&& key, const Aws::String& value) { m_responseModels.emplace(std::move(key), value); return *this; }
98 inline PutMethodResponseResult& AddResponseModels(const Aws::String& key, Aws::String&& value) { m_responseModels.emplace(key, std::move(value)); return *this; }
99 inline PutMethodResponseResult& AddResponseModels(Aws::String&& key, Aws::String&& value) { m_responseModels.emplace(std::move(key), std::move(value)); return *this; }
100 inline PutMethodResponseResult& AddResponseModels(const char* key, Aws::String&& value) { m_responseModels.emplace(key, std::move(value)); return *this; }
101 inline PutMethodResponseResult& AddResponseModels(Aws::String&& key, const char* value) { m_responseModels.emplace(std::move(key), value); return *this; }
102 inline PutMethodResponseResult& AddResponseModels(const char* key, const char* value) { m_responseModels.emplace(key, value); return *this; }
104
106
107 inline const Aws::String& GetRequestId() const{ return m_requestId; }
108 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
109 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
110 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
111 inline PutMethodResponseResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
112 inline PutMethodResponseResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
113 inline PutMethodResponseResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
115 private:
116
117 Aws::String m_statusCode;
118
119 Aws::Map<Aws::String, bool> m_responseParameters;
120
121 Aws::Map<Aws::String, Aws::String> m_responseModels;
122
123 Aws::String m_requestId;
124 };
125
126} // namespace Model
127} // namespace APIGateway
128} // namespace Aws
PutMethodResponseResult & WithRequestId(Aws::String &&value)
PutMethodResponseResult & AddResponseModels(const char *key, const char *value)
PutMethodResponseResult & AddResponseParameters(const Aws::String &key, bool value)
PutMethodResponseResult & AddResponseModels(Aws::String &&key, const Aws::String &value)
PutMethodResponseResult & WithRequestId(const char *value)
PutMethodResponseResult & WithStatusCode(const char *value)
PutMethodResponseResult & WithStatusCode(Aws::String &&value)
AWS_APIGATEWAY_API PutMethodResponseResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetResponseModels() const
PutMethodResponseResult & WithResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
PutMethodResponseResult & WithRequestId(const Aws::String &value)
PutMethodResponseResult & AddResponseModels(const char *key, Aws::String &&value)
PutMethodResponseResult & WithResponseParameters(Aws::Map< Aws::String, bool > &&value)
PutMethodResponseResult & WithResponseParameters(const Aws::Map< Aws::String, bool > &value)
PutMethodResponseResult & WithResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
PutMethodResponseResult & AddResponseModels(const Aws::String &key, const Aws::String &value)
void SetResponseParameters(Aws::Map< Aws::String, bool > &&value)
void SetResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
PutMethodResponseResult & WithStatusCode(const Aws::String &value)
const Aws::Map< Aws::String, bool > & GetResponseParameters() const
PutMethodResponseResult & AddResponseModels(const Aws::String &key, Aws::String &&value)
PutMethodResponseResult & AddResponseParameters(Aws::String &&key, bool value)
void SetResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
PutMethodResponseResult & AddResponseParameters(const char *key, bool value)
AWS_APIGATEWAY_API PutMethodResponseResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetResponseParameters(const Aws::Map< Aws::String, bool > &value)
PutMethodResponseResult & AddResponseModels(Aws::String &&key, Aws::String &&value)
PutMethodResponseResult & AddResponseModels(Aws::String &&key, const char *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