AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
UpdateIntegrationResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/ConnectionType.h>
9#include <aws/apigateway/model/ContentHandlingStrategy.h>
10#include <aws/apigateway/model/IntegrationResponse.h>
11#include <aws/apigateway/model/IntegrationType.h>
12#include <aws/apigateway/model/ResponseTransferMode.h>
13#include <aws/apigateway/model/TlsConfig.h>
14#include <aws/core/http/HttpResponse.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace APIGateway {
31namespace Model {
39 public:
40 AWS_APIGATEWAY_API UpdateIntegrationResult() = default;
43
45
54 inline IntegrationType GetType() const { return m_type; }
55 inline void SetType(IntegrationType value) {
56 m_typeHasBeenSet = true;
57 m_type = value;
58 }
60 SetType(value);
61 return *this;
62 }
64
66
72 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
73 template <typename HttpMethodT = Aws::String>
74 void SetHttpMethod(HttpMethodT&& value) {
75 m_httpMethodHasBeenSet = true;
76 m_httpMethod = std::forward<HttpMethodT>(value);
77 }
78 template <typename HttpMethodT = Aws::String>
80 SetHttpMethod(std::forward<HttpMethodT>(value));
81 return *this;
82 }
84
86
108 inline const Aws::String& GetUri() const { return m_uri; }
109 template <typename UriT = Aws::String>
110 void SetUri(UriT&& value) {
111 m_uriHasBeenSet = true;
112 m_uri = std::forward<UriT>(value);
113 }
114 template <typename UriT = Aws::String>
116 SetUri(std::forward<UriT>(value));
117 return *this;
118 }
120
122
129 inline ConnectionType GetConnectionType() const { return m_connectionType; }
131 m_connectionTypeHasBeenSet = true;
132 m_connectionType = value;
133 }
135 SetConnectionType(value);
136 return *this;
137 }
139
141
145 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
146 template <typename ConnectionIdT = Aws::String>
147 void SetConnectionId(ConnectionIdT&& value) {
148 m_connectionIdHasBeenSet = true;
149 m_connectionId = std::forward<ConnectionIdT>(value);
150 }
151 template <typename ConnectionIdT = Aws::String>
153 SetConnectionId(std::forward<ConnectionIdT>(value));
154 return *this;
155 }
157
159
167 inline const Aws::String& GetCredentials() const { return m_credentials; }
168 template <typename CredentialsT = Aws::String>
169 void SetCredentials(CredentialsT&& value) {
170 m_credentialsHasBeenSet = true;
171 m_credentials = std::forward<CredentialsT>(value);
172 }
173 template <typename CredentialsT = Aws::String>
175 SetCredentials(std::forward<CredentialsT>(value));
176 return *this;
177 }
179
181
191 inline const Aws::Map<Aws::String, Aws::String>& GetRequestParameters() const { return m_requestParameters; }
192 template <typename RequestParametersT = Aws::Map<Aws::String, Aws::String>>
193 void SetRequestParameters(RequestParametersT&& value) {
194 m_requestParametersHasBeenSet = true;
195 m_requestParameters = std::forward<RequestParametersT>(value);
196 }
197 template <typename RequestParametersT = Aws::Map<Aws::String, Aws::String>>
198 UpdateIntegrationResult& WithRequestParameters(RequestParametersT&& value) {
199 SetRequestParameters(std::forward<RequestParametersT>(value));
200 return *this;
201 }
202 template <typename RequestParametersKeyT = Aws::String, typename RequestParametersValueT = Aws::String>
203 UpdateIntegrationResult& AddRequestParameters(RequestParametersKeyT&& key, RequestParametersValueT&& value) {
204 m_requestParametersHasBeenSet = true;
205 m_requestParameters.emplace(std::forward<RequestParametersKeyT>(key), std::forward<RequestParametersValueT>(value));
206 return *this;
207 }
209
211
217 inline const Aws::Map<Aws::String, Aws::String>& GetRequestTemplates() const { return m_requestTemplates; }
218 template <typename RequestTemplatesT = Aws::Map<Aws::String, Aws::String>>
219 void SetRequestTemplates(RequestTemplatesT&& value) {
220 m_requestTemplatesHasBeenSet = true;
221 m_requestTemplates = std::forward<RequestTemplatesT>(value);
222 }
223 template <typename RequestTemplatesT = Aws::Map<Aws::String, Aws::String>>
224 UpdateIntegrationResult& WithRequestTemplates(RequestTemplatesT&& value) {
225 SetRequestTemplates(std::forward<RequestTemplatesT>(value));
226 return *this;
227 }
228 template <typename RequestTemplatesKeyT = Aws::String, typename RequestTemplatesValueT = Aws::String>
229 UpdateIntegrationResult& AddRequestTemplates(RequestTemplatesKeyT&& key, RequestTemplatesValueT&& value) {
230 m_requestTemplatesHasBeenSet = true;
231 m_requestTemplates.emplace(std::forward<RequestTemplatesKeyT>(key), std::forward<RequestTemplatesValueT>(value));
232 return *this;
233 }
235
237
257 inline const Aws::String& GetPassthroughBehavior() const { return m_passthroughBehavior; }
258 template <typename PassthroughBehaviorT = Aws::String>
259 void SetPassthroughBehavior(PassthroughBehaviorT&& value) {
260 m_passthroughBehaviorHasBeenSet = true;
261 m_passthroughBehavior = std::forward<PassthroughBehaviorT>(value);
262 }
263 template <typename PassthroughBehaviorT = Aws::String>
264 UpdateIntegrationResult& WithPassthroughBehavior(PassthroughBehaviorT&& value) {
265 SetPassthroughBehavior(std::forward<PassthroughBehaviorT>(value));
266 return *this;
267 }
269
271
279 inline ContentHandlingStrategy GetContentHandling() const { return m_contentHandling; }
281 m_contentHandlingHasBeenSet = true;
282 m_contentHandling = value;
283 }
285 SetContentHandling(value);
286 return *this;
287 }
289
291
296 inline int GetTimeoutInMillis() const { return m_timeoutInMillis; }
297 inline void SetTimeoutInMillis(int value) {
298 m_timeoutInMillisHasBeenSet = true;
299 m_timeoutInMillis = value;
300 }
302 SetTimeoutInMillis(value);
303 return *this;
304 }
306
308
314 inline const Aws::String& GetCacheNamespace() const { return m_cacheNamespace; }
315 template <typename CacheNamespaceT = Aws::String>
316 void SetCacheNamespace(CacheNamespaceT&& value) {
317 m_cacheNamespaceHasBeenSet = true;
318 m_cacheNamespace = std::forward<CacheNamespaceT>(value);
319 }
320 template <typename CacheNamespaceT = Aws::String>
321 UpdateIntegrationResult& WithCacheNamespace(CacheNamespaceT&& value) {
322 SetCacheNamespace(std::forward<CacheNamespaceT>(value));
323 return *this;
324 }
326
328
333 inline const Aws::Vector<Aws::String>& GetCacheKeyParameters() const { return m_cacheKeyParameters; }
334 template <typename CacheKeyParametersT = Aws::Vector<Aws::String>>
335 void SetCacheKeyParameters(CacheKeyParametersT&& value) {
336 m_cacheKeyParametersHasBeenSet = true;
337 m_cacheKeyParameters = std::forward<CacheKeyParametersT>(value);
338 }
339 template <typename CacheKeyParametersT = Aws::Vector<Aws::String>>
340 UpdateIntegrationResult& WithCacheKeyParameters(CacheKeyParametersT&& value) {
341 SetCacheKeyParameters(std::forward<CacheKeyParametersT>(value));
342 return *this;
343 }
344 template <typename CacheKeyParametersT = Aws::String>
345 UpdateIntegrationResult& AddCacheKeyParameters(CacheKeyParametersT&& value) {
346 m_cacheKeyParametersHasBeenSet = true;
347 m_cacheKeyParameters.emplace_back(std::forward<CacheKeyParametersT>(value));
348 return *this;
349 }
351
353
356 inline const Aws::Map<Aws::String, IntegrationResponse>& GetIntegrationResponses() const { return m_integrationResponses; }
357 template <typename IntegrationResponsesT = Aws::Map<Aws::String, IntegrationResponse>>
358 void SetIntegrationResponses(IntegrationResponsesT&& value) {
359 m_integrationResponsesHasBeenSet = true;
360 m_integrationResponses = std::forward<IntegrationResponsesT>(value);
361 }
362 template <typename IntegrationResponsesT = Aws::Map<Aws::String, IntegrationResponse>>
363 UpdateIntegrationResult& WithIntegrationResponses(IntegrationResponsesT&& value) {
364 SetIntegrationResponses(std::forward<IntegrationResponsesT>(value));
365 return *this;
366 }
367 template <typename IntegrationResponsesKeyT = Aws::String, typename IntegrationResponsesValueT = IntegrationResponse>
368 UpdateIntegrationResult& AddIntegrationResponses(IntegrationResponsesKeyT&& key, IntegrationResponsesValueT&& value) {
369 m_integrationResponsesHasBeenSet = true;
370 m_integrationResponses.emplace(std::forward<IntegrationResponsesKeyT>(key), std::forward<IntegrationResponsesValueT>(value));
371 return *this;
372 }
374
376
379 inline const TlsConfig& GetTlsConfig() const { return m_tlsConfig; }
380 template <typename TlsConfigT = TlsConfig>
381 void SetTlsConfig(TlsConfigT&& value) {
382 m_tlsConfigHasBeenSet = true;
383 m_tlsConfig = std::forward<TlsConfigT>(value);
384 }
385 template <typename TlsConfigT = TlsConfig>
387 SetTlsConfig(std::forward<TlsConfigT>(value));
388 return *this;
389 }
391
393
396 inline ResponseTransferMode GetResponseTransferMode() const { return m_responseTransferMode; }
398 m_responseTransferModeHasBeenSet = true;
399 m_responseTransferMode = value;
400 }
403 return *this;
404 }
406
408
411 inline const Aws::String& GetIntegrationTarget() const { return m_integrationTarget; }
412 template <typename IntegrationTargetT = Aws::String>
413 void SetIntegrationTarget(IntegrationTargetT&& value) {
414 m_integrationTargetHasBeenSet = true;
415 m_integrationTarget = std::forward<IntegrationTargetT>(value);
416 }
417 template <typename IntegrationTargetT = Aws::String>
418 UpdateIntegrationResult& WithIntegrationTarget(IntegrationTargetT&& value) {
419 SetIntegrationTarget(std::forward<IntegrationTargetT>(value));
420 return *this;
421 }
423
425
426 inline const Aws::String& GetRequestId() const { return m_requestId; }
427 template <typename RequestIdT = Aws::String>
428 void SetRequestId(RequestIdT&& value) {
429 m_requestIdHasBeenSet = true;
430 m_requestId = std::forward<RequestIdT>(value);
431 }
432 template <typename RequestIdT = Aws::String>
434 SetRequestId(std::forward<RequestIdT>(value));
435 return *this;
436 }
438 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
439
440 private:
442
443 Aws::String m_httpMethod;
444
445 Aws::String m_uri;
446
447 ConnectionType m_connectionType{ConnectionType::NOT_SET};
448
449 Aws::String m_connectionId;
450
451 Aws::String m_credentials;
452
453 Aws::Map<Aws::String, Aws::String> m_requestParameters;
454
455 Aws::Map<Aws::String, Aws::String> m_requestTemplates;
456
457 Aws::String m_passthroughBehavior;
458
460
461 int m_timeoutInMillis{0};
462
463 Aws::String m_cacheNamespace;
464
465 Aws::Vector<Aws::String> m_cacheKeyParameters;
466
467 Aws::Map<Aws::String, IntegrationResponse> m_integrationResponses;
468
469 TlsConfig m_tlsConfig;
470
472
473 Aws::String m_integrationTarget;
474
475 Aws::String m_requestId;
476 Aws::Http::HttpResponseCode m_HttpResponseCode;
477 bool m_typeHasBeenSet = false;
478 bool m_httpMethodHasBeenSet = false;
479 bool m_uriHasBeenSet = false;
480 bool m_connectionTypeHasBeenSet = false;
481 bool m_connectionIdHasBeenSet = false;
482 bool m_credentialsHasBeenSet = false;
483 bool m_requestParametersHasBeenSet = false;
484 bool m_requestTemplatesHasBeenSet = false;
485 bool m_passthroughBehaviorHasBeenSet = false;
486 bool m_contentHandlingHasBeenSet = false;
487 bool m_timeoutInMillisHasBeenSet = false;
488 bool m_cacheNamespaceHasBeenSet = false;
489 bool m_cacheKeyParametersHasBeenSet = false;
490 bool m_integrationResponsesHasBeenSet = false;
491 bool m_tlsConfigHasBeenSet = false;
492 bool m_responseTransferModeHasBeenSet = false;
493 bool m_integrationTargetHasBeenSet = false;
494 bool m_requestIdHasBeenSet = false;
495};
496
497} // namespace Model
498} // namespace APIGateway
499} // namespace Aws
void SetContentHandling(ContentHandlingStrategy value)
void SetIntegrationResponses(IntegrationResponsesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestParameters() const
void SetCacheKeyParameters(CacheKeyParametersT &&value)
UpdateIntegrationResult & WithRequestTemplates(RequestTemplatesT &&value)
UpdateIntegrationResult & WithUri(UriT &&value)
UpdateIntegrationResult & WithTlsConfig(TlsConfigT &&value)
UpdateIntegrationResult & WithPassthroughBehavior(PassthroughBehaviorT &&value)
const Aws::Vector< Aws::String > & GetCacheKeyParameters() const
void SetPassthroughBehavior(PassthroughBehaviorT &&value)
UpdateIntegrationResult & WithCacheKeyParameters(CacheKeyParametersT &&value)
UpdateIntegrationResult & WithRequestId(RequestIdT &&value)
UpdateIntegrationResult & WithIntegrationTarget(IntegrationTargetT &&value)
UpdateIntegrationResult & WithRequestParameters(RequestParametersT &&value)
UpdateIntegrationResult & WithResponseTransferMode(ResponseTransferMode value)
UpdateIntegrationResult & WithCacheNamespace(CacheNamespaceT &&value)
UpdateIntegrationResult & WithCredentials(CredentialsT &&value)
const Aws::Map< Aws::String, IntegrationResponse > & GetIntegrationResponses() const
UpdateIntegrationResult & AddRequestParameters(RequestParametersKeyT &&key, RequestParametersValueT &&value)
AWS_APIGATEWAY_API UpdateIntegrationResult()=default
const Aws::Map< Aws::String, Aws::String > & GetRequestTemplates() const
UpdateIntegrationResult & WithType(IntegrationType value)
UpdateIntegrationResult & WithIntegrationResponses(IntegrationResponsesT &&value)
UpdateIntegrationResult & AddRequestTemplates(RequestTemplatesKeyT &&key, RequestTemplatesValueT &&value)
UpdateIntegrationResult & AddIntegrationResponses(IntegrationResponsesKeyT &&key, IntegrationResponsesValueT &&value)
AWS_APIGATEWAY_API UpdateIntegrationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateIntegrationResult & WithTimeoutInMillis(int value)
AWS_APIGATEWAY_API UpdateIntegrationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateIntegrationResult & WithHttpMethod(HttpMethodT &&value)
UpdateIntegrationResult & WithContentHandling(ContentHandlingStrategy value)
UpdateIntegrationResult & WithConnectionId(ConnectionIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateIntegrationResult & WithConnectionType(ConnectionType value)
UpdateIntegrationResult & AddCacheKeyParameters(CacheKeyParametersT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue