AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
Integration.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/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace APIGateway {
28namespace Model {
29
37 public:
38 AWS_APIGATEWAY_API Integration() = default;
39 AWS_APIGATEWAY_API Integration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APIGATEWAY_API Integration& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
53 inline IntegrationType GetType() const { return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
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 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
74 template <typename HttpMethodT = Aws::String>
75 void SetHttpMethod(HttpMethodT&& value) {
76 m_httpMethodHasBeenSet = true;
77 m_httpMethod = std::forward<HttpMethodT>(value);
78 }
79 template <typename HttpMethodT = Aws::String>
80 Integration& WithHttpMethod(HttpMethodT&& value) {
81 SetHttpMethod(std::forward<HttpMethodT>(value));
82 return *this;
83 }
85
87
109 inline const Aws::String& GetUri() const { return m_uri; }
110 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
111 template <typename UriT = Aws::String>
112 void SetUri(UriT&& value) {
113 m_uriHasBeenSet = true;
114 m_uri = std::forward<UriT>(value);
115 }
116 template <typename UriT = Aws::String>
117 Integration& WithUri(UriT&& value) {
118 SetUri(std::forward<UriT>(value));
119 return *this;
120 }
122
124
131 inline ConnectionType GetConnectionType() const { return m_connectionType; }
132 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
134 m_connectionTypeHasBeenSet = true;
135 m_connectionType = value;
136 }
138 SetConnectionType(value);
139 return *this;
140 }
142
144
148 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
149 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
150 template <typename ConnectionIdT = Aws::String>
151 void SetConnectionId(ConnectionIdT&& value) {
152 m_connectionIdHasBeenSet = true;
153 m_connectionId = std::forward<ConnectionIdT>(value);
154 }
155 template <typename ConnectionIdT = Aws::String>
156 Integration& WithConnectionId(ConnectionIdT&& value) {
157 SetConnectionId(std::forward<ConnectionIdT>(value));
158 return *this;
159 }
161
163
171 inline const Aws::String& GetCredentials() const { return m_credentials; }
172 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
173 template <typename CredentialsT = Aws::String>
174 void SetCredentials(CredentialsT&& value) {
175 m_credentialsHasBeenSet = true;
176 m_credentials = std::forward<CredentialsT>(value);
177 }
178 template <typename CredentialsT = Aws::String>
179 Integration& WithCredentials(CredentialsT&& value) {
180 SetCredentials(std::forward<CredentialsT>(value));
181 return *this;
182 }
184
186
196 inline const Aws::Map<Aws::String, Aws::String>& GetRequestParameters() const { return m_requestParameters; }
197 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
198 template <typename RequestParametersT = Aws::Map<Aws::String, Aws::String>>
199 void SetRequestParameters(RequestParametersT&& value) {
200 m_requestParametersHasBeenSet = true;
201 m_requestParameters = std::forward<RequestParametersT>(value);
202 }
203 template <typename RequestParametersT = Aws::Map<Aws::String, Aws::String>>
204 Integration& WithRequestParameters(RequestParametersT&& value) {
205 SetRequestParameters(std::forward<RequestParametersT>(value));
206 return *this;
207 }
208 template <typename RequestParametersKeyT = Aws::String, typename RequestParametersValueT = Aws::String>
209 Integration& AddRequestParameters(RequestParametersKeyT&& key, RequestParametersValueT&& value) {
210 m_requestParametersHasBeenSet = true;
211 m_requestParameters.emplace(std::forward<RequestParametersKeyT>(key), std::forward<RequestParametersValueT>(value));
212 return *this;
213 }
215
217
223 inline const Aws::Map<Aws::String, Aws::String>& GetRequestTemplates() const { return m_requestTemplates; }
224 inline bool RequestTemplatesHasBeenSet() const { return m_requestTemplatesHasBeenSet; }
225 template <typename RequestTemplatesT = Aws::Map<Aws::String, Aws::String>>
226 void SetRequestTemplates(RequestTemplatesT&& value) {
227 m_requestTemplatesHasBeenSet = true;
228 m_requestTemplates = std::forward<RequestTemplatesT>(value);
229 }
230 template <typename RequestTemplatesT = Aws::Map<Aws::String, Aws::String>>
231 Integration& WithRequestTemplates(RequestTemplatesT&& value) {
232 SetRequestTemplates(std::forward<RequestTemplatesT>(value));
233 return *this;
234 }
235 template <typename RequestTemplatesKeyT = Aws::String, typename RequestTemplatesValueT = Aws::String>
236 Integration& AddRequestTemplates(RequestTemplatesKeyT&& key, RequestTemplatesValueT&& value) {
237 m_requestTemplatesHasBeenSet = true;
238 m_requestTemplates.emplace(std::forward<RequestTemplatesKeyT>(key), std::forward<RequestTemplatesValueT>(value));
239 return *this;
240 }
242
244
264 inline const Aws::String& GetPassthroughBehavior() const { return m_passthroughBehavior; }
265 inline bool PassthroughBehaviorHasBeenSet() const { return m_passthroughBehaviorHasBeenSet; }
266 template <typename PassthroughBehaviorT = Aws::String>
267 void SetPassthroughBehavior(PassthroughBehaviorT&& value) {
268 m_passthroughBehaviorHasBeenSet = true;
269 m_passthroughBehavior = std::forward<PassthroughBehaviorT>(value);
270 }
271 template <typename PassthroughBehaviorT = Aws::String>
272 Integration& WithPassthroughBehavior(PassthroughBehaviorT&& value) {
273 SetPassthroughBehavior(std::forward<PassthroughBehaviorT>(value));
274 return *this;
275 }
277
279
287 inline ContentHandlingStrategy GetContentHandling() const { return m_contentHandling; }
288 inline bool ContentHandlingHasBeenSet() const { return m_contentHandlingHasBeenSet; }
290 m_contentHandlingHasBeenSet = true;
291 m_contentHandling = value;
292 }
294 SetContentHandling(value);
295 return *this;
296 }
298
300
305 inline int GetTimeoutInMillis() const { return m_timeoutInMillis; }
306 inline bool TimeoutInMillisHasBeenSet() const { return m_timeoutInMillisHasBeenSet; }
307 inline void SetTimeoutInMillis(int value) {
308 m_timeoutInMillisHasBeenSet = true;
309 m_timeoutInMillis = value;
310 }
311 inline Integration& WithTimeoutInMillis(int value) {
312 SetTimeoutInMillis(value);
313 return *this;
314 }
316
318
324 inline const Aws::String& GetCacheNamespace() const { return m_cacheNamespace; }
325 inline bool CacheNamespaceHasBeenSet() const { return m_cacheNamespaceHasBeenSet; }
326 template <typename CacheNamespaceT = Aws::String>
327 void SetCacheNamespace(CacheNamespaceT&& value) {
328 m_cacheNamespaceHasBeenSet = true;
329 m_cacheNamespace = std::forward<CacheNamespaceT>(value);
330 }
331 template <typename CacheNamespaceT = Aws::String>
332 Integration& WithCacheNamespace(CacheNamespaceT&& value) {
333 SetCacheNamespace(std::forward<CacheNamespaceT>(value));
334 return *this;
335 }
337
339
344 inline const Aws::Vector<Aws::String>& GetCacheKeyParameters() const { return m_cacheKeyParameters; }
345 inline bool CacheKeyParametersHasBeenSet() const { return m_cacheKeyParametersHasBeenSet; }
346 template <typename CacheKeyParametersT = Aws::Vector<Aws::String>>
347 void SetCacheKeyParameters(CacheKeyParametersT&& value) {
348 m_cacheKeyParametersHasBeenSet = true;
349 m_cacheKeyParameters = std::forward<CacheKeyParametersT>(value);
350 }
351 template <typename CacheKeyParametersT = Aws::Vector<Aws::String>>
352 Integration& WithCacheKeyParameters(CacheKeyParametersT&& value) {
353 SetCacheKeyParameters(std::forward<CacheKeyParametersT>(value));
354 return *this;
355 }
356 template <typename CacheKeyParametersT = Aws::String>
357 Integration& AddCacheKeyParameters(CacheKeyParametersT&& value) {
358 m_cacheKeyParametersHasBeenSet = true;
359 m_cacheKeyParameters.emplace_back(std::forward<CacheKeyParametersT>(value));
360 return *this;
361 }
363
365
368 inline const Aws::Map<Aws::String, IntegrationResponse>& GetIntegrationResponses() const { return m_integrationResponses; }
369 inline bool IntegrationResponsesHasBeenSet() const { return m_integrationResponsesHasBeenSet; }
370 template <typename IntegrationResponsesT = Aws::Map<Aws::String, IntegrationResponse>>
371 void SetIntegrationResponses(IntegrationResponsesT&& value) {
372 m_integrationResponsesHasBeenSet = true;
373 m_integrationResponses = std::forward<IntegrationResponsesT>(value);
374 }
375 template <typename IntegrationResponsesT = Aws::Map<Aws::String, IntegrationResponse>>
376 Integration& WithIntegrationResponses(IntegrationResponsesT&& value) {
377 SetIntegrationResponses(std::forward<IntegrationResponsesT>(value));
378 return *this;
379 }
380 template <typename IntegrationResponsesKeyT = Aws::String, typename IntegrationResponsesValueT = IntegrationResponse>
381 Integration& AddIntegrationResponses(IntegrationResponsesKeyT&& key, IntegrationResponsesValueT&& value) {
382 m_integrationResponsesHasBeenSet = true;
383 m_integrationResponses.emplace(std::forward<IntegrationResponsesKeyT>(key), std::forward<IntegrationResponsesValueT>(value));
384 return *this;
385 }
387
389
392 inline const TlsConfig& GetTlsConfig() const { return m_tlsConfig; }
393 inline bool TlsConfigHasBeenSet() const { return m_tlsConfigHasBeenSet; }
394 template <typename TlsConfigT = TlsConfig>
395 void SetTlsConfig(TlsConfigT&& value) {
396 m_tlsConfigHasBeenSet = true;
397 m_tlsConfig = std::forward<TlsConfigT>(value);
398 }
399 template <typename TlsConfigT = TlsConfig>
400 Integration& WithTlsConfig(TlsConfigT&& value) {
401 SetTlsConfig(std::forward<TlsConfigT>(value));
402 return *this;
403 }
405
407
410 inline ResponseTransferMode GetResponseTransferMode() const { return m_responseTransferMode; }
411 inline bool ResponseTransferModeHasBeenSet() const { return m_responseTransferModeHasBeenSet; }
413 m_responseTransferModeHasBeenSet = true;
414 m_responseTransferMode = value;
415 }
418 return *this;
419 }
421
423
426 inline const Aws::String& GetIntegrationTarget() const { return m_integrationTarget; }
427 inline bool IntegrationTargetHasBeenSet() const { return m_integrationTargetHasBeenSet; }
428 template <typename IntegrationTargetT = Aws::String>
429 void SetIntegrationTarget(IntegrationTargetT&& value) {
430 m_integrationTargetHasBeenSet = true;
431 m_integrationTarget = std::forward<IntegrationTargetT>(value);
432 }
433 template <typename IntegrationTargetT = Aws::String>
434 Integration& WithIntegrationTarget(IntegrationTargetT&& value) {
435 SetIntegrationTarget(std::forward<IntegrationTargetT>(value));
436 return *this;
437 }
439
441
442 inline const Aws::String& GetRequestId() const { return m_requestId; }
443 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
444 template <typename RequestIdT = Aws::String>
445 void SetRequestId(RequestIdT&& value) {
446 m_requestIdHasBeenSet = true;
447 m_requestId = std::forward<RequestIdT>(value);
448 }
449 template <typename RequestIdT = Aws::String>
450 Integration& WithRequestId(RequestIdT&& value) {
451 SetRequestId(std::forward<RequestIdT>(value));
452 return *this;
453 }
455 private:
457
458 Aws::String m_httpMethod;
459
460 Aws::String m_uri;
461
462 ConnectionType m_connectionType{ConnectionType::NOT_SET};
463
464 Aws::String m_connectionId;
465
466 Aws::String m_credentials;
467
468 Aws::Map<Aws::String, Aws::String> m_requestParameters;
469
470 Aws::Map<Aws::String, Aws::String> m_requestTemplates;
471
472 Aws::String m_passthroughBehavior;
473
475
476 int m_timeoutInMillis{0};
477
478 Aws::String m_cacheNamespace;
479
480 Aws::Vector<Aws::String> m_cacheKeyParameters;
481
482 Aws::Map<Aws::String, IntegrationResponse> m_integrationResponses;
483
484 TlsConfig m_tlsConfig;
485
487
488 Aws::String m_integrationTarget;
489
490 Aws::String m_requestId;
491 bool m_typeHasBeenSet = false;
492 bool m_httpMethodHasBeenSet = false;
493 bool m_uriHasBeenSet = false;
494 bool m_connectionTypeHasBeenSet = false;
495 bool m_connectionIdHasBeenSet = false;
496 bool m_credentialsHasBeenSet = false;
497 bool m_requestParametersHasBeenSet = false;
498 bool m_requestTemplatesHasBeenSet = false;
499 bool m_passthroughBehaviorHasBeenSet = false;
500 bool m_contentHandlingHasBeenSet = false;
501 bool m_timeoutInMillisHasBeenSet = false;
502 bool m_cacheNamespaceHasBeenSet = false;
503 bool m_cacheKeyParametersHasBeenSet = false;
504 bool m_integrationResponsesHasBeenSet = false;
505 bool m_tlsConfigHasBeenSet = false;
506 bool m_responseTransferModeHasBeenSet = false;
507 bool m_integrationTargetHasBeenSet = false;
508 bool m_requestIdHasBeenSet = false;
509};
510
511} // namespace Model
512} // namespace APIGateway
513} // namespace Aws
const Aws::String & GetPassthroughBehavior() const
Integration & WithContentHandling(ContentHandlingStrategy value)
const Aws::String & GetHttpMethod() const
Definition Integration.h:72
AWS_APIGATEWAY_API Integration()=default
Integration & WithTimeoutInMillis(int value)
Integration & WithCacheNamespace(CacheNamespaceT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, IntegrationResponse > & GetIntegrationResponses() const
Integration & WithCacheKeyParameters(CacheKeyParametersT &&value)
void SetRequestParameters(RequestParametersT &&value)
Integration & AddIntegrationResponses(IntegrationResponsesKeyT &&key, IntegrationResponsesValueT &&value)
void SetIntegrationTarget(IntegrationTargetT &&value)
void SetType(IntegrationType value)
Definition Integration.h:55
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRequestTemplates(RequestTemplatesT &&value)
void SetPassthroughBehavior(PassthroughBehaviorT &&value)
void SetConnectionType(ConnectionType value)
const Aws::Map< Aws::String, Aws::String > & GetRequestParameters() const
const Aws::String & GetRequestId() const
AWS_APIGATEWAY_API Integration(Aws::Utils::Json::JsonView jsonValue)
Integration & WithCredentials(CredentialsT &&value)
ContentHandlingStrategy GetContentHandling() const
Integration & WithRequestId(RequestIdT &&value)
Integration & AddCacheKeyParameters(CacheKeyParametersT &&value)
const TlsConfig & GetTlsConfig() const
const Aws::String & GetIntegrationTarget() const
const Aws::String & GetCredentials() const
void SetHttpMethod(HttpMethodT &&value)
Definition Integration.h:75
Integration & AddRequestParameters(RequestParametersKeyT &&key, RequestParametersValueT &&value)
Integration & AddRequestTemplates(RequestTemplatesKeyT &&key, RequestTemplatesValueT &&value)
Integration & WithPassthroughBehavior(PassthroughBehaviorT &&value)
Integration & WithHttpMethod(HttpMethodT &&value)
Definition Integration.h:80
void SetCacheNamespace(CacheNamespaceT &&value)
Integration & WithConnectionType(ConnectionType value)
Integration & WithRequestParameters(RequestParametersT &&value)
const Aws::Vector< Aws::String > & GetCacheKeyParameters() const
const Aws::String & GetCacheNamespace() const
const Aws::String & GetConnectionId() const
ResponseTransferMode GetResponseTransferMode() const
Integration & WithUri(UriT &&value)
Integration & WithConnectionId(ConnectionIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestTemplates() const
void SetCredentials(CredentialsT &&value)
Integration & WithRequestTemplates(RequestTemplatesT &&value)
void SetConnectionId(ConnectionIdT &&value)
void SetIntegrationResponses(IntegrationResponsesT &&value)
void SetResponseTransferMode(ResponseTransferMode value)
Integration & WithResponseTransferMode(ResponseTransferMode value)
AWS_APIGATEWAY_API Integration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTlsConfig(TlsConfigT &&value)
Integration & WithIntegrationResponses(IntegrationResponsesT &&value)
const Aws::String & GetUri() const
IntegrationType GetType() const
Definition Integration.h:53
void SetContentHandling(ContentHandlingStrategy value)
Integration & WithType(IntegrationType value)
Definition Integration.h:59
void SetCacheKeyParameters(CacheKeyParametersT &&value)
ConnectionType GetConnectionType() const
Integration & WithIntegrationTarget(IntegrationTargetT &&value)
Integration & WithTlsConfig(TlsConfigT &&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