AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UpdateIntegrationRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2Request.h>
8#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
9#include <aws/apigatewayv2/model/ConnectionType.h>
10#include <aws/apigatewayv2/model/ContentHandlingStrategy.h>
11#include <aws/apigatewayv2/model/IntegrationType.h>
12#include <aws/apigatewayv2/model/PassthroughBehavior.h>
13#include <aws/apigatewayv2/model/TlsConfigInput.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace ApiGatewayV2 {
21namespace Model {
22
29 public:
30 AWS_APIGATEWAYV2_API UpdateIntegrationRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateIntegration"; }
37
38 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
39
41
44 inline const Aws::String& GetApiId() const { return m_apiId; }
45 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
46 template <typename ApiIdT = Aws::String>
47 void SetApiId(ApiIdT&& value) {
48 m_apiIdHasBeenSet = true;
49 m_apiId = std::forward<ApiIdT>(value);
50 }
51 template <typename ApiIdT = Aws::String>
53 SetApiId(std::forward<ApiIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
64 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
65 template <typename ConnectionIdT = Aws::String>
66 void SetConnectionId(ConnectionIdT&& value) {
67 m_connectionIdHasBeenSet = true;
68 m_connectionId = std::forward<ConnectionIdT>(value);
69 }
70 template <typename ConnectionIdT = Aws::String>
72 SetConnectionId(std::forward<ConnectionIdT>(value));
73 return *this;
74 }
76
78
84 inline ConnectionType GetConnectionType() const { return m_connectionType; }
85 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
86 inline void SetConnectionType(ConnectionType value) {
87 m_connectionTypeHasBeenSet = true;
88 m_connectionType = value;
89 }
91 SetConnectionType(value);
92 return *this;
93 }
95
97
107 inline ContentHandlingStrategy GetContentHandlingStrategy() const { return m_contentHandlingStrategy; }
108 inline bool ContentHandlingStrategyHasBeenSet() const { return m_contentHandlingStrategyHasBeenSet; }
110 m_contentHandlingStrategyHasBeenSet = true;
111 m_contentHandlingStrategy = value;
112 }
115 return *this;
116 }
118
120
128 inline const Aws::String& GetCredentialsArn() const { return m_credentialsArn; }
129 inline bool CredentialsArnHasBeenSet() const { return m_credentialsArnHasBeenSet; }
130 template <typename CredentialsArnT = Aws::String>
131 void SetCredentialsArn(CredentialsArnT&& value) {
132 m_credentialsArnHasBeenSet = true;
133 m_credentialsArn = std::forward<CredentialsArnT>(value);
134 }
135 template <typename CredentialsArnT = Aws::String>
137 SetCredentialsArn(std::forward<CredentialsArnT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetDescription() const { return m_description; }
147 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
148 template <typename DescriptionT = Aws::String>
149 void SetDescription(DescriptionT&& value) {
150 m_descriptionHasBeenSet = true;
151 m_description = std::forward<DescriptionT>(value);
152 }
153 template <typename DescriptionT = Aws::String>
155 SetDescription(std::forward<DescriptionT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetIntegrationId() const { return m_integrationId; }
165 inline bool IntegrationIdHasBeenSet() const { return m_integrationIdHasBeenSet; }
166 template <typename IntegrationIdT = Aws::String>
167 void SetIntegrationId(IntegrationIdT&& value) {
168 m_integrationIdHasBeenSet = true;
169 m_integrationId = std::forward<IntegrationIdT>(value);
170 }
171 template <typename IntegrationIdT = Aws::String>
173 SetIntegrationId(std::forward<IntegrationIdT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetIntegrationMethod() const { return m_integrationMethod; }
183 inline bool IntegrationMethodHasBeenSet() const { return m_integrationMethodHasBeenSet; }
184 template <typename IntegrationMethodT = Aws::String>
185 void SetIntegrationMethod(IntegrationMethodT&& value) {
186 m_integrationMethodHasBeenSet = true;
187 m_integrationMethod = std::forward<IntegrationMethodT>(value);
188 }
189 template <typename IntegrationMethodT = Aws::String>
190 UpdateIntegrationRequest& WithIntegrationMethod(IntegrationMethodT&& value) {
191 SetIntegrationMethod(std::forward<IntegrationMethodT>(value));
192 return *this;
193 }
195
197
203 inline const Aws::String& GetIntegrationSubtype() const { return m_integrationSubtype; }
204 inline bool IntegrationSubtypeHasBeenSet() const { return m_integrationSubtypeHasBeenSet; }
205 template <typename IntegrationSubtypeT = Aws::String>
206 void SetIntegrationSubtype(IntegrationSubtypeT&& value) {
207 m_integrationSubtypeHasBeenSet = true;
208 m_integrationSubtype = std::forward<IntegrationSubtypeT>(value);
209 }
210 template <typename IntegrationSubtypeT = Aws::String>
211 UpdateIntegrationRequest& WithIntegrationSubtype(IntegrationSubtypeT&& value) {
212 SetIntegrationSubtype(std::forward<IntegrationSubtypeT>(value));
213 return *this;
214 }
216
218
236 inline IntegrationType GetIntegrationType() const { return m_integrationType; }
237 inline bool IntegrationTypeHasBeenSet() const { return m_integrationTypeHasBeenSet; }
239 m_integrationTypeHasBeenSet = true;
240 m_integrationType = value;
241 }
243 SetIntegrationType(value);
244 return *this;
245 }
247
249
260 inline const Aws::String& GetIntegrationUri() const { return m_integrationUri; }
261 inline bool IntegrationUriHasBeenSet() const { return m_integrationUriHasBeenSet; }
262 template <typename IntegrationUriT = Aws::String>
263 void SetIntegrationUri(IntegrationUriT&& value) {
264 m_integrationUriHasBeenSet = true;
265 m_integrationUri = std::forward<IntegrationUriT>(value);
266 }
267 template <typename IntegrationUriT = Aws::String>
269 SetIntegrationUri(std::forward<IntegrationUriT>(value));
270 return *this;
271 }
273
275
288 inline PassthroughBehavior GetPassthroughBehavior() const { return m_passthroughBehavior; }
289 inline bool PassthroughBehaviorHasBeenSet() const { return m_passthroughBehaviorHasBeenSet; }
291 m_passthroughBehaviorHasBeenSet = true;
292 m_passthroughBehavior = value;
293 }
296 return *this;
297 }
299
301
308 inline const Aws::String& GetPayloadFormatVersion() const { return m_payloadFormatVersion; }
309 inline bool PayloadFormatVersionHasBeenSet() const { return m_payloadFormatVersionHasBeenSet; }
310 template <typename PayloadFormatVersionT = Aws::String>
311 void SetPayloadFormatVersion(PayloadFormatVersionT&& value) {
312 m_payloadFormatVersionHasBeenSet = true;
313 m_payloadFormatVersion = std::forward<PayloadFormatVersionT>(value);
314 }
315 template <typename PayloadFormatVersionT = Aws::String>
316 UpdateIntegrationRequest& WithPayloadFormatVersion(PayloadFormatVersionT&& value) {
317 SetPayloadFormatVersion(std::forward<PayloadFormatVersionT>(value));
318 return *this;
319 }
321
323
356 inline const Aws::Map<Aws::String, Aws::String>& GetRequestParameters() const { return m_requestParameters; }
357 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
358 template <typename RequestParametersT = Aws::Map<Aws::String, Aws::String>>
359 void SetRequestParameters(RequestParametersT&& value) {
360 m_requestParametersHasBeenSet = true;
361 m_requestParameters = std::forward<RequestParametersT>(value);
362 }
363 template <typename RequestParametersT = Aws::Map<Aws::String, Aws::String>>
364 UpdateIntegrationRequest& WithRequestParameters(RequestParametersT&& value) {
365 SetRequestParameters(std::forward<RequestParametersT>(value));
366 return *this;
367 }
368 template <typename RequestParametersKeyT = Aws::String, typename RequestParametersValueT = Aws::String>
369 UpdateIntegrationRequest& AddRequestParameters(RequestParametersKeyT&& key, RequestParametersValueT&& value) {
370 m_requestParametersHasBeenSet = true;
371 m_requestParameters.emplace(std::forward<RequestParametersKeyT>(key), std::forward<RequestParametersValueT>(value));
372 return *this;
373 }
375
377
383 inline const Aws::Map<Aws::String, Aws::String>& GetRequestTemplates() const { return m_requestTemplates; }
384 inline bool RequestTemplatesHasBeenSet() const { return m_requestTemplatesHasBeenSet; }
385 template <typename RequestTemplatesT = Aws::Map<Aws::String, Aws::String>>
386 void SetRequestTemplates(RequestTemplatesT&& value) {
387 m_requestTemplatesHasBeenSet = true;
388 m_requestTemplates = std::forward<RequestTemplatesT>(value);
389 }
390 template <typename RequestTemplatesT = Aws::Map<Aws::String, Aws::String>>
391 UpdateIntegrationRequest& WithRequestTemplates(RequestTemplatesT&& value) {
392 SetRequestTemplates(std::forward<RequestTemplatesT>(value));
393 return *this;
394 }
395 template <typename RequestTemplatesKeyT = Aws::String, typename RequestTemplatesValueT = Aws::String>
396 UpdateIntegrationRequest& AddRequestTemplates(RequestTemplatesKeyT&& key, RequestTemplatesValueT&& value) {
397 m_requestTemplatesHasBeenSet = true;
398 m_requestTemplates.emplace(std::forward<RequestTemplatesKeyT>(key), std::forward<RequestTemplatesValueT>(value));
399 return *this;
400 }
402
404
417 inline const Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>& GetResponseParameters() const { return m_responseParameters; }
418 inline bool ResponseParametersHasBeenSet() const { return m_responseParametersHasBeenSet; }
419 template <typename ResponseParametersT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
420 void SetResponseParameters(ResponseParametersT&& value) {
421 m_responseParametersHasBeenSet = true;
422 m_responseParameters = std::forward<ResponseParametersT>(value);
423 }
424 template <typename ResponseParametersT = Aws::Map<Aws::String, Aws::Map<Aws::String, Aws::String>>>
425 UpdateIntegrationRequest& WithResponseParameters(ResponseParametersT&& value) {
426 SetResponseParameters(std::forward<ResponseParametersT>(value));
427 return *this;
428 }
429 template <typename ResponseParametersKeyT = Aws::String, typename ResponseParametersValueT = Aws::Map<Aws::String, Aws::String>>
430 UpdateIntegrationRequest& AddResponseParameters(ResponseParametersKeyT&& key, ResponseParametersValueT&& value) {
431 m_responseParametersHasBeenSet = true;
432 m_responseParameters.emplace(std::forward<ResponseParametersKeyT>(key), std::forward<ResponseParametersValueT>(value));
433 return *this;
434 }
436
438
441 inline const Aws::String& GetTemplateSelectionExpression() const { return m_templateSelectionExpression; }
442 inline bool TemplateSelectionExpressionHasBeenSet() const { return m_templateSelectionExpressionHasBeenSet; }
443 template <typename TemplateSelectionExpressionT = Aws::String>
444 void SetTemplateSelectionExpression(TemplateSelectionExpressionT&& value) {
445 m_templateSelectionExpressionHasBeenSet = true;
446 m_templateSelectionExpression = std::forward<TemplateSelectionExpressionT>(value);
447 }
448 template <typename TemplateSelectionExpressionT = Aws::String>
449 UpdateIntegrationRequest& WithTemplateSelectionExpression(TemplateSelectionExpressionT&& value) {
450 SetTemplateSelectionExpression(std::forward<TemplateSelectionExpressionT>(value));
451 return *this;
452 }
454
456
461 inline int GetTimeoutInMillis() const { return m_timeoutInMillis; }
462 inline bool TimeoutInMillisHasBeenSet() const { return m_timeoutInMillisHasBeenSet; }
463 inline void SetTimeoutInMillis(int value) {
464 m_timeoutInMillisHasBeenSet = true;
465 m_timeoutInMillis = value;
466 }
468 SetTimeoutInMillis(value);
469 return *this;
470 }
472
474
479 inline const TlsConfigInput& GetTlsConfig() const { return m_tlsConfig; }
480 inline bool TlsConfigHasBeenSet() const { return m_tlsConfigHasBeenSet; }
481 template <typename TlsConfigT = TlsConfigInput>
482 void SetTlsConfig(TlsConfigT&& value) {
483 m_tlsConfigHasBeenSet = true;
484 m_tlsConfig = std::forward<TlsConfigT>(value);
485 }
486 template <typename TlsConfigT = TlsConfigInput>
488 SetTlsConfig(std::forward<TlsConfigT>(value));
489 return *this;
490 }
492 private:
493 Aws::String m_apiId;
494
495 Aws::String m_connectionId;
496
497 ConnectionType m_connectionType{ConnectionType::NOT_SET};
498
500
501 Aws::String m_credentialsArn;
502
503 Aws::String m_description;
504
505 Aws::String m_integrationId;
506
507 Aws::String m_integrationMethod;
508
509 Aws::String m_integrationSubtype;
510
511 IntegrationType m_integrationType{IntegrationType::NOT_SET};
512
513 Aws::String m_integrationUri;
514
516
517 Aws::String m_payloadFormatVersion;
518
519 Aws::Map<Aws::String, Aws::String> m_requestParameters;
520
521 Aws::Map<Aws::String, Aws::String> m_requestTemplates;
522
524
525 Aws::String m_templateSelectionExpression;
526
527 int m_timeoutInMillis{0};
528
529 TlsConfigInput m_tlsConfig;
530 bool m_apiIdHasBeenSet = false;
531 bool m_connectionIdHasBeenSet = false;
532 bool m_connectionTypeHasBeenSet = false;
533 bool m_contentHandlingStrategyHasBeenSet = false;
534 bool m_credentialsArnHasBeenSet = false;
535 bool m_descriptionHasBeenSet = false;
536 bool m_integrationIdHasBeenSet = false;
537 bool m_integrationMethodHasBeenSet = false;
538 bool m_integrationSubtypeHasBeenSet = false;
539 bool m_integrationTypeHasBeenSet = false;
540 bool m_integrationUriHasBeenSet = false;
541 bool m_passthroughBehaviorHasBeenSet = false;
542 bool m_payloadFormatVersionHasBeenSet = false;
543 bool m_requestParametersHasBeenSet = false;
544 bool m_requestTemplatesHasBeenSet = false;
545 bool m_responseParametersHasBeenSet = false;
546 bool m_templateSelectionExpressionHasBeenSet = false;
547 bool m_timeoutInMillisHasBeenSet = false;
548 bool m_tlsConfigHasBeenSet = false;
549};
550
551} // namespace Model
552} // namespace ApiGatewayV2
553} // namespace Aws
UpdateIntegrationRequest & WithRequestTemplates(RequestTemplatesT &&value)
UpdateIntegrationRequest & WithConnectionType(ConnectionType value)
AWS_APIGATEWAYV2_API UpdateIntegrationRequest()=default
void SetTemplateSelectionExpression(TemplateSelectionExpressionT &&value)
void SetContentHandlingStrategy(ContentHandlingStrategy value)
UpdateIntegrationRequest & WithConnectionId(ConnectionIdT &&value)
UpdateIntegrationRequest & WithIntegrationSubtype(IntegrationSubtypeT &&value)
UpdateIntegrationRequest & WithTemplateSelectionExpression(TemplateSelectionExpressionT &&value)
UpdateIntegrationRequest & WithPayloadFormatVersion(PayloadFormatVersionT &&value)
UpdateIntegrationRequest & WithIntegrationMethod(IntegrationMethodT &&value)
UpdateIntegrationRequest & AddRequestTemplates(RequestTemplatesKeyT &&key, RequestTemplatesValueT &&value)
const Aws::Map< Aws::String, Aws::Map< Aws::String, Aws::String > > & GetResponseParameters() const
UpdateIntegrationRequest & WithApiId(ApiIdT &&value)
UpdateIntegrationRequest & WithPassthroughBehavior(PassthroughBehavior value)
UpdateIntegrationRequest & WithIntegrationType(IntegrationType value)
UpdateIntegrationRequest & AddRequestParameters(RequestParametersKeyT &&key, RequestParametersValueT &&value)
UpdateIntegrationRequest & WithResponseParameters(ResponseParametersT &&value)
virtual const char * GetServiceRequestName() const override
UpdateIntegrationRequest & WithTlsConfig(TlsConfigT &&value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
void SetPayloadFormatVersion(PayloadFormatVersionT &&value)
UpdateIntegrationRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestParameters() const
UpdateIntegrationRequest & WithIntegrationUri(IntegrationUriT &&value)
UpdateIntegrationRequest & WithIntegrationId(IntegrationIdT &&value)
UpdateIntegrationRequest & AddResponseParameters(ResponseParametersKeyT &&key, ResponseParametersValueT &&value)
UpdateIntegrationRequest & WithTimeoutInMillis(int value)
const Aws::Map< Aws::String, Aws::String > & GetRequestTemplates() const
UpdateIntegrationRequest & WithRequestParameters(RequestParametersT &&value)
UpdateIntegrationRequest & WithCredentialsArn(CredentialsArnT &&value)
UpdateIntegrationRequest & WithContentHandlingStrategy(ContentHandlingStrategy 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