AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutGatewayResponseResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/GatewayResponseType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace APIGateway
26{
27namespace Model
28{
36 {
37 public:
38 AWS_APIGATEWAY_API PutGatewayResponseResult();
41
42
44
47 inline const GatewayResponseType& GetResponseType() const{ return m_responseType; }
48 inline void SetResponseType(const GatewayResponseType& value) { m_responseType = value; }
49 inline void SetResponseType(GatewayResponseType&& value) { m_responseType = std::move(value); }
51 inline PutGatewayResponseResult& WithResponseType(GatewayResponseType&& value) { SetResponseType(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
59 inline void SetStatusCode(const Aws::String& value) { m_statusCode = value; }
60 inline void SetStatusCode(Aws::String&& value) { m_statusCode = std::move(value); }
61 inline void SetStatusCode(const char* value) { m_statusCode.assign(value); }
62 inline PutGatewayResponseResult& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
63 inline PutGatewayResponseResult& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
64 inline PutGatewayResponseResult& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
66
68
72 inline const Aws::Map<Aws::String, Aws::String>& GetResponseParameters() const{ return m_responseParameters; }
73 inline void SetResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_responseParameters = value; }
74 inline void SetResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_responseParameters = std::move(value); }
77 inline PutGatewayResponseResult& AddResponseParameters(const Aws::String& key, const Aws::String& value) { m_responseParameters.emplace(key, value); return *this; }
78 inline PutGatewayResponseResult& AddResponseParameters(Aws::String&& key, const Aws::String& value) { m_responseParameters.emplace(std::move(key), value); return *this; }
79 inline PutGatewayResponseResult& AddResponseParameters(const Aws::String& key, Aws::String&& value) { m_responseParameters.emplace(key, std::move(value)); return *this; }
80 inline PutGatewayResponseResult& AddResponseParameters(Aws::String&& key, Aws::String&& value) { m_responseParameters.emplace(std::move(key), std::move(value)); return *this; }
81 inline PutGatewayResponseResult& AddResponseParameters(const char* key, Aws::String&& value) { m_responseParameters.emplace(key, std::move(value)); return *this; }
82 inline PutGatewayResponseResult& AddResponseParameters(Aws::String&& key, const char* value) { m_responseParameters.emplace(std::move(key), value); return *this; }
83 inline PutGatewayResponseResult& AddResponseParameters(const char* key, const char* value) { m_responseParameters.emplace(key, value); return *this; }
85
87
91 inline const Aws::Map<Aws::String, Aws::String>& GetResponseTemplates() const{ return m_responseTemplates; }
92 inline void SetResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { m_responseTemplates = value; }
93 inline void SetResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { m_responseTemplates = std::move(value); }
96 inline PutGatewayResponseResult& AddResponseTemplates(const Aws::String& key, const Aws::String& value) { m_responseTemplates.emplace(key, value); return *this; }
97 inline PutGatewayResponseResult& AddResponseTemplates(Aws::String&& key, const Aws::String& value) { m_responseTemplates.emplace(std::move(key), value); return *this; }
98 inline PutGatewayResponseResult& AddResponseTemplates(const Aws::String& key, Aws::String&& value) { m_responseTemplates.emplace(key, std::move(value)); return *this; }
99 inline PutGatewayResponseResult& AddResponseTemplates(Aws::String&& key, Aws::String&& value) { m_responseTemplates.emplace(std::move(key), std::move(value)); return *this; }
100 inline PutGatewayResponseResult& AddResponseTemplates(const char* key, Aws::String&& value) { m_responseTemplates.emplace(key, std::move(value)); return *this; }
101 inline PutGatewayResponseResult& AddResponseTemplates(Aws::String&& key, const char* value) { m_responseTemplates.emplace(std::move(key), value); return *this; }
102 inline PutGatewayResponseResult& AddResponseTemplates(const char* key, const char* value) { m_responseTemplates.emplace(key, value); return *this; }
104
106
112 inline bool GetDefaultResponse() const{ return m_defaultResponse; }
113 inline void SetDefaultResponse(bool value) { m_defaultResponse = value; }
114 inline PutGatewayResponseResult& WithDefaultResponse(bool value) { SetDefaultResponse(value); return *this;}
116
118
119 inline const Aws::String& GetRequestId() const{ return m_requestId; }
120 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
121 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
122 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
123 inline PutGatewayResponseResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
124 inline PutGatewayResponseResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
125 inline PutGatewayResponseResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
127 private:
128
129 GatewayResponseType m_responseType;
130
131 Aws::String m_statusCode;
132
133 Aws::Map<Aws::String, Aws::String> m_responseParameters;
134
135 Aws::Map<Aws::String, Aws::String> m_responseTemplates;
136
137 bool m_defaultResponse;
138
139 Aws::String m_requestId;
140 };
141
142} // namespace Model
143} // namespace APIGateway
144} // namespace Aws
PutGatewayResponseResult & AddResponseParameters(Aws::String &&key, const char *value)
PutGatewayResponseResult & AddResponseTemplates(Aws::String &&key, Aws::String &&value)
PutGatewayResponseResult & AddResponseTemplates(const char *key, const char *value)
PutGatewayResponseResult & WithDefaultResponse(bool value)
PutGatewayResponseResult & AddResponseParameters(Aws::String &&key, const Aws::String &value)
void SetResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
PutGatewayResponseResult & AddResponseTemplates(Aws::String &&key, const Aws::String &value)
PutGatewayResponseResult & WithResponseType(const GatewayResponseType &value)
PutGatewayResponseResult & WithStatusCode(const char *value)
PutGatewayResponseResult & WithResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetResponseParameters() const
void SetResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
void SetResponseType(const GatewayResponseType &value)
PutGatewayResponseResult & AddResponseTemplates(const char *key, Aws::String &&value)
PutGatewayResponseResult & AddResponseParameters(Aws::String &&key, Aws::String &&value)
PutGatewayResponseResult & WithRequestId(const char *value)
PutGatewayResponseResult & AddResponseTemplates(const Aws::String &key, Aws::String &&value)
PutGatewayResponseResult & WithResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
PutGatewayResponseResult & WithResponseType(GatewayResponseType &&value)
PutGatewayResponseResult & AddResponseTemplates(Aws::String &&key, const char *value)
PutGatewayResponseResult & WithResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
PutGatewayResponseResult & AddResponseParameters(const Aws::String &key, const Aws::String &value)
PutGatewayResponseResult & WithRequestId(Aws::String &&value)
PutGatewayResponseResult & WithStatusCode(const Aws::String &value)
PutGatewayResponseResult & AddResponseParameters(const Aws::String &key, Aws::String &&value)
PutGatewayResponseResult & WithRequestId(const Aws::String &value)
PutGatewayResponseResult & AddResponseParameters(const char *key, Aws::String &&value)
void SetResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
AWS_APIGATEWAY_API PutGatewayResponseResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutGatewayResponseResult & AddResponseTemplates(const Aws::String &key, const Aws::String &value)
PutGatewayResponseResult & AddResponseParameters(const char *key, const char *value)
AWS_APIGATEWAY_API PutGatewayResponseResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
PutGatewayResponseResult & WithStatusCode(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetResponseTemplates() const
PutGatewayResponseResult & WithResponseTemplates(const Aws::Map< Aws::String, Aws::String > &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