AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IntegrationResponse.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 <aws/apigateway/model/ContentHandlingStrategy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace APIGateway
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_APIGATEWAY_API IntegrationResponse();
39 AWS_APIGATEWAY_API IntegrationResponse(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
50 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
51 inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
52 inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
53 inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
54 inline IntegrationResponse& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
55 inline IntegrationResponse& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
56 inline IntegrationResponse& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
58
60
70 inline const Aws::String& GetSelectionPattern() const{ return m_selectionPattern; }
71 inline bool SelectionPatternHasBeenSet() const { return m_selectionPatternHasBeenSet; }
72 inline void SetSelectionPattern(const Aws::String& value) { m_selectionPatternHasBeenSet = true; m_selectionPattern = value; }
73 inline void SetSelectionPattern(Aws::String&& value) { m_selectionPatternHasBeenSet = true; m_selectionPattern = std::move(value); }
74 inline void SetSelectionPattern(const char* value) { m_selectionPatternHasBeenSet = true; m_selectionPattern.assign(value); }
75 inline IntegrationResponse& WithSelectionPattern(const Aws::String& value) { SetSelectionPattern(value); return *this;}
76 inline IntegrationResponse& WithSelectionPattern(Aws::String&& value) { SetSelectionPattern(std::move(value)); return *this;}
77 inline IntegrationResponse& WithSelectionPattern(const char* value) { SetSelectionPattern(value); return *this;}
79
81
95 inline const Aws::Map<Aws::String, Aws::String>& GetResponseParameters() const{ return m_responseParameters; }
96 inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
97 inline void SetResponseParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; }
98 inline void SetResponseParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = std::move(value); }
101 inline IntegrationResponse& AddResponseParameters(const Aws::String& key, const Aws::String& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
102 inline IntegrationResponse& AddResponseParameters(Aws::String&& key, const Aws::String& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
103 inline IntegrationResponse& AddResponseParameters(const Aws::String& key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
104 inline IntegrationResponse& AddResponseParameters(Aws::String&& key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), std::move(value)); return *this; }
105 inline IntegrationResponse& AddResponseParameters(const char* key, Aws::String&& value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, std::move(value)); return *this; }
106 inline IntegrationResponse& AddResponseParameters(Aws::String&& key, const char* value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(std::move(key), value); return *this; }
107 inline IntegrationResponse& AddResponseParameters(const char* key, const char* value) { m_responseParametersHasBeenSet = true; m_responseParameters.emplace(key, value); return *this; }
109
111
116 inline const Aws::Map<Aws::String, Aws::String>& GetResponseTemplates() const{ return m_responseTemplates; }
117 inline bool ResponseTemplatesHasBeenSet() const { return m_responseTemplatesHasBeenSet; }
118 inline void SetResponseTemplates(const Aws::Map<Aws::String, Aws::String>& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = value; }
119 inline void SetResponseTemplates(Aws::Map<Aws::String, Aws::String>&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates = std::move(value); }
122 inline IntegrationResponse& AddResponseTemplates(const Aws::String& key, const Aws::String& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, value); return *this; }
123 inline IntegrationResponse& AddResponseTemplates(Aws::String&& key, const Aws::String& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), value); return *this; }
124 inline IntegrationResponse& AddResponseTemplates(const Aws::String& key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, std::move(value)); return *this; }
125 inline IntegrationResponse& AddResponseTemplates(Aws::String&& key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), std::move(value)); return *this; }
126 inline IntegrationResponse& AddResponseTemplates(const char* key, Aws::String&& value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, std::move(value)); return *this; }
127 inline IntegrationResponse& AddResponseTemplates(Aws::String&& key, const char* value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(std::move(key), value); return *this; }
128 inline IntegrationResponse& AddResponseTemplates(const char* key, const char* value) { m_responseTemplatesHasBeenSet = true; m_responseTemplates.emplace(key, value); return *this; }
130
132
139 inline const ContentHandlingStrategy& GetContentHandling() const{ return m_contentHandling; }
140 inline bool ContentHandlingHasBeenSet() const { return m_contentHandlingHasBeenSet; }
141 inline void SetContentHandling(const ContentHandlingStrategy& value) { m_contentHandlingHasBeenSet = true; m_contentHandling = value; }
142 inline void SetContentHandling(ContentHandlingStrategy&& value) { m_contentHandlingHasBeenSet = true; m_contentHandling = std::move(value); }
144 inline IntegrationResponse& WithContentHandling(ContentHandlingStrategy&& value) { SetContentHandling(std::move(value)); return *this;}
146
148
149 inline const Aws::String& GetRequestId() const{ return m_requestId; }
150 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
151 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
152 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
153 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
154 inline IntegrationResponse& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
155 inline IntegrationResponse& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
156 inline IntegrationResponse& WithRequestId(const char* value) { SetRequestId(value); return *this;}
158 private:
159
160 Aws::String m_statusCode;
161 bool m_statusCodeHasBeenSet = false;
162
163 Aws::String m_selectionPattern;
164 bool m_selectionPatternHasBeenSet = false;
165
166 Aws::Map<Aws::String, Aws::String> m_responseParameters;
167 bool m_responseParametersHasBeenSet = false;
168
169 Aws::Map<Aws::String, Aws::String> m_responseTemplates;
170 bool m_responseTemplatesHasBeenSet = false;
171
172 ContentHandlingStrategy m_contentHandling;
173 bool m_contentHandlingHasBeenSet = false;
174
175 Aws::String m_requestId;
176 bool m_requestIdHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace APIGateway
181} // namespace Aws
void SetStatusCode(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetResponseParameters() const
IntegrationResponse & AddResponseTemplates(const Aws::String &key, const Aws::String &value)
IntegrationResponse & WithStatusCode(Aws::String &&value)
IntegrationResponse & AddResponseParameters(Aws::String &&key, Aws::String &&value)
IntegrationResponse & WithRequestId(const char *value)
void SetResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
IntegrationResponse & AddResponseTemplates(const Aws::String &key, Aws::String &&value)
IntegrationResponse & WithSelectionPattern(const char *value)
IntegrationResponse & AddResponseParameters(Aws::String &&key, const Aws::String &value)
IntegrationResponse & WithResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
IntegrationResponse & WithRequestId(const Aws::String &value)
IntegrationResponse & AddResponseParameters(const char *key, const char *value)
IntegrationResponse & WithContentHandling(const ContentHandlingStrategy &value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const ContentHandlingStrategy & GetContentHandling() const
IntegrationResponse & AddResponseParameters(const Aws::String &key, Aws::String &&value)
void SetSelectionPattern(const Aws::String &value)
IntegrationResponse & WithResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
IntegrationResponse & WithResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
IntegrationResponse & AddResponseParameters(const Aws::String &key, const Aws::String &value)
void SetContentHandling(ContentHandlingStrategy &&value)
IntegrationResponse & WithResponseTemplates(Aws::Map< Aws::String, Aws::String > &&value)
void SetResponseTemplates(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetResponseTemplates() const
IntegrationResponse & AddResponseTemplates(const char *key, const char *value)
void SetResponseParameters(Aws::Map< Aws::String, Aws::String > &&value)
IntegrationResponse & WithStatusCode(const Aws::String &value)
IntegrationResponse & WithRequestId(Aws::String &&value)
IntegrationResponse & AddResponseTemplates(Aws::String &&key, Aws::String &&value)
IntegrationResponse & WithContentHandling(ContentHandlingStrategy &&value)
IntegrationResponse & WithStatusCode(const char *value)
IntegrationResponse & AddResponseParameters(const char *key, Aws::String &&value)
void SetContentHandling(const ContentHandlingStrategy &value)
IntegrationResponse & AddResponseTemplates(const char *key, Aws::String &&value)
IntegrationResponse & WithSelectionPattern(const Aws::String &value)
IntegrationResponse & AddResponseTemplates(Aws::String &&key, const Aws::String &value)
IntegrationResponse & WithSelectionPattern(Aws::String &&value)
IntegrationResponse & AddResponseTemplates(Aws::String &&key, const char *value)
IntegrationResponse & AddResponseParameters(Aws::String &&key, const char *value)
void SetResponseParameters(const Aws::Map< Aws::String, Aws::String > &value)
AWS_APIGATEWAY_API IntegrationResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAY_API IntegrationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
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