AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
PutIntegrationRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/apigateway/model/ConnectionType.h>
10#include <aws/apigateway/model/ContentHandlingStrategy.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 APIGateway {
22namespace Model {
23
30 public:
31 AWS_APIGATEWAY_API PutIntegrationRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "PutIntegration"; }
38
39 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
40
42
45 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
46 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
47 template <typename RestApiIdT = Aws::String>
48 void SetRestApiId(RestApiIdT&& value) {
49 m_restApiIdHasBeenSet = true;
50 m_restApiId = std::forward<RestApiIdT>(value);
51 }
52 template <typename RestApiIdT = Aws::String>
53 PutIntegrationRequest& WithRestApiId(RestApiIdT&& value) {
54 SetRestApiId(std::forward<RestApiIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetResourceId() const { return m_resourceId; }
64 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
65 template <typename ResourceIdT = Aws::String>
66 void SetResourceId(ResourceIdT&& value) {
67 m_resourceIdHasBeenSet = true;
68 m_resourceId = std::forward<ResourceIdT>(value);
69 }
70 template <typename ResourceIdT = Aws::String>
71 PutIntegrationRequest& WithResourceId(ResourceIdT&& value) {
72 SetResourceId(std::forward<ResourceIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
82 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
83 template <typename HttpMethodT = Aws::String>
84 void SetHttpMethod(HttpMethodT&& value) {
85 m_httpMethodHasBeenSet = true;
86 m_httpMethod = std::forward<HttpMethodT>(value);
87 }
88 template <typename HttpMethodT = Aws::String>
89 PutIntegrationRequest& WithHttpMethod(HttpMethodT&& value) {
90 SetHttpMethod(std::forward<HttpMethodT>(value));
91 return *this;
92 }
94
96
99 inline IntegrationType GetType() const { return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 inline void SetType(IntegrationType value) {
102 m_typeHasBeenSet = true;
103 m_type = value;
104 }
106 SetType(value);
107 return *this;
108 }
110
112
115 inline const Aws::String& GetIntegrationHttpMethod() const { return m_integrationHttpMethod; }
116 inline bool IntegrationHttpMethodHasBeenSet() const { return m_integrationHttpMethodHasBeenSet; }
117 template <typename IntegrationHttpMethodT = Aws::String>
118 void SetIntegrationHttpMethod(IntegrationHttpMethodT&& value) {
119 m_integrationHttpMethodHasBeenSet = true;
120 m_integrationHttpMethod = std::forward<IntegrationHttpMethodT>(value);
121 }
122 template <typename IntegrationHttpMethodT = Aws::String>
123 PutIntegrationRequest& WithIntegrationHttpMethod(IntegrationHttpMethodT&& value) {
124 SetIntegrationHttpMethod(std::forward<IntegrationHttpMethodT>(value));
125 return *this;
126 }
128
130
153 inline const Aws::String& GetUri() const { return m_uri; }
154 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
155 template <typename UriT = Aws::String>
156 void SetUri(UriT&& value) {
157 m_uriHasBeenSet = true;
158 m_uri = std::forward<UriT>(value);
159 }
160 template <typename UriT = Aws::String>
162 SetUri(std::forward<UriT>(value));
163 return *this;
164 }
166
168
175 inline ConnectionType GetConnectionType() const { return m_connectionType; }
176 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
178 m_connectionTypeHasBeenSet = true;
179 m_connectionType = value;
180 }
182 SetConnectionType(value);
183 return *this;
184 }
186
188
192 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
193 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
194 template <typename ConnectionIdT = Aws::String>
195 void SetConnectionId(ConnectionIdT&& value) {
196 m_connectionIdHasBeenSet = true;
197 m_connectionId = std::forward<ConnectionIdT>(value);
198 }
199 template <typename ConnectionIdT = Aws::String>
200 PutIntegrationRequest& WithConnectionId(ConnectionIdT&& value) {
201 SetConnectionId(std::forward<ConnectionIdT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::String& GetCredentials() const { return m_credentials; }
211 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
212 template <typename CredentialsT = Aws::String>
213 void SetCredentials(CredentialsT&& value) {
214 m_credentialsHasBeenSet = true;
215 m_credentials = std::forward<CredentialsT>(value);
216 }
217 template <typename CredentialsT = Aws::String>
218 PutIntegrationRequest& WithCredentials(CredentialsT&& value) {
219 SetCredentials(std::forward<CredentialsT>(value));
220 return *this;
221 }
223
225
235 inline const Aws::Map<Aws::String, Aws::String>& GetRequestParameters() const { return m_requestParameters; }
236 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
237 template <typename RequestParametersT = Aws::Map<Aws::String, Aws::String>>
238 void SetRequestParameters(RequestParametersT&& value) {
239 m_requestParametersHasBeenSet = true;
240 m_requestParameters = std::forward<RequestParametersT>(value);
241 }
242 template <typename RequestParametersT = Aws::Map<Aws::String, Aws::String>>
243 PutIntegrationRequest& WithRequestParameters(RequestParametersT&& value) {
244 SetRequestParameters(std::forward<RequestParametersT>(value));
245 return *this;
246 }
247 template <typename RequestParametersKeyT = Aws::String, typename RequestParametersValueT = Aws::String>
248 PutIntegrationRequest& AddRequestParameters(RequestParametersKeyT&& key, RequestParametersValueT&& value) {
249 m_requestParametersHasBeenSet = true;
250 m_requestParameters.emplace(std::forward<RequestParametersKeyT>(key), std::forward<RequestParametersValueT>(value));
251 return *this;
252 }
254
256
262 inline const Aws::Map<Aws::String, Aws::String>& GetRequestTemplates() const { return m_requestTemplates; }
263 inline bool RequestTemplatesHasBeenSet() const { return m_requestTemplatesHasBeenSet; }
264 template <typename RequestTemplatesT = Aws::Map<Aws::String, Aws::String>>
265 void SetRequestTemplates(RequestTemplatesT&& value) {
266 m_requestTemplatesHasBeenSet = true;
267 m_requestTemplates = std::forward<RequestTemplatesT>(value);
268 }
269 template <typename RequestTemplatesT = Aws::Map<Aws::String, Aws::String>>
270 PutIntegrationRequest& WithRequestTemplates(RequestTemplatesT&& value) {
271 SetRequestTemplates(std::forward<RequestTemplatesT>(value));
272 return *this;
273 }
274 template <typename RequestTemplatesKeyT = Aws::String, typename RequestTemplatesValueT = Aws::String>
275 PutIntegrationRequest& AddRequestTemplates(RequestTemplatesKeyT&& key, RequestTemplatesValueT&& value) {
276 m_requestTemplatesHasBeenSet = true;
277 m_requestTemplates.emplace(std::forward<RequestTemplatesKeyT>(key), std::forward<RequestTemplatesValueT>(value));
278 return *this;
279 }
281
283
290 inline const Aws::String& GetPassthroughBehavior() const { return m_passthroughBehavior; }
291 inline bool PassthroughBehaviorHasBeenSet() const { return m_passthroughBehaviorHasBeenSet; }
292 template <typename PassthroughBehaviorT = Aws::String>
293 void SetPassthroughBehavior(PassthroughBehaviorT&& value) {
294 m_passthroughBehaviorHasBeenSet = true;
295 m_passthroughBehavior = std::forward<PassthroughBehaviorT>(value);
296 }
297 template <typename PassthroughBehaviorT = Aws::String>
298 PutIntegrationRequest& WithPassthroughBehavior(PassthroughBehaviorT&& value) {
299 SetPassthroughBehavior(std::forward<PassthroughBehaviorT>(value));
300 return *this;
301 }
303
305
311 inline const Aws::String& GetCacheNamespace() const { return m_cacheNamespace; }
312 inline bool CacheNamespaceHasBeenSet() const { return m_cacheNamespaceHasBeenSet; }
313 template <typename CacheNamespaceT = Aws::String>
314 void SetCacheNamespace(CacheNamespaceT&& value) {
315 m_cacheNamespaceHasBeenSet = true;
316 m_cacheNamespace = std::forward<CacheNamespaceT>(value);
317 }
318 template <typename CacheNamespaceT = Aws::String>
319 PutIntegrationRequest& WithCacheNamespace(CacheNamespaceT&& value) {
320 SetCacheNamespace(std::forward<CacheNamespaceT>(value));
321 return *this;
322 }
324
326
331 inline const Aws::Vector<Aws::String>& GetCacheKeyParameters() const { return m_cacheKeyParameters; }
332 inline bool CacheKeyParametersHasBeenSet() const { return m_cacheKeyParametersHasBeenSet; }
333 template <typename CacheKeyParametersT = Aws::Vector<Aws::String>>
334 void SetCacheKeyParameters(CacheKeyParametersT&& value) {
335 m_cacheKeyParametersHasBeenSet = true;
336 m_cacheKeyParameters = std::forward<CacheKeyParametersT>(value);
337 }
338 template <typename CacheKeyParametersT = Aws::Vector<Aws::String>>
339 PutIntegrationRequest& WithCacheKeyParameters(CacheKeyParametersT&& value) {
340 SetCacheKeyParameters(std::forward<CacheKeyParametersT>(value));
341 return *this;
342 }
343 template <typename CacheKeyParametersT = Aws::String>
344 PutIntegrationRequest& AddCacheKeyParameters(CacheKeyParametersT&& value) {
345 m_cacheKeyParametersHasBeenSet = true;
346 m_cacheKeyParameters.emplace_back(std::forward<CacheKeyParametersT>(value));
347 return *this;
348 }
350
352
360 inline ContentHandlingStrategy GetContentHandling() const { return m_contentHandling; }
361 inline bool ContentHandlingHasBeenSet() const { return m_contentHandlingHasBeenSet; }
363 m_contentHandlingHasBeenSet = true;
364 m_contentHandling = value;
365 }
367 SetContentHandling(value);
368 return *this;
369 }
371
373
378 inline int GetTimeoutInMillis() const { return m_timeoutInMillis; }
379 inline bool TimeoutInMillisHasBeenSet() const { return m_timeoutInMillisHasBeenSet; }
380 inline void SetTimeoutInMillis(int value) {
381 m_timeoutInMillisHasBeenSet = true;
382 m_timeoutInMillis = value;
383 }
385 SetTimeoutInMillis(value);
386 return *this;
387 }
389
391
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>
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 PutIntegrationRequest& WithIntegrationTarget(IntegrationTargetT&& value) {
435 SetIntegrationTarget(std::forward<IntegrationTargetT>(value));
436 return *this;
437 }
439 private:
440 Aws::String m_restApiId;
441
442 Aws::String m_resourceId;
443
444 Aws::String m_httpMethod;
445
447
448 Aws::String m_integrationHttpMethod;
449
450 Aws::String m_uri;
451
452 ConnectionType m_connectionType{ConnectionType::NOT_SET};
453
454 Aws::String m_connectionId;
455
456 Aws::String m_credentials;
457
458 Aws::Map<Aws::String, Aws::String> m_requestParameters;
459
460 Aws::Map<Aws::String, Aws::String> m_requestTemplates;
461
462 Aws::String m_passthroughBehavior;
463
464 Aws::String m_cacheNamespace;
465
466 Aws::Vector<Aws::String> m_cacheKeyParameters;
467
469
470 int m_timeoutInMillis{0};
471
472 TlsConfig m_tlsConfig;
473
475
476 Aws::String m_integrationTarget;
477 bool m_restApiIdHasBeenSet = false;
478 bool m_resourceIdHasBeenSet = false;
479 bool m_httpMethodHasBeenSet = false;
480 bool m_typeHasBeenSet = false;
481 bool m_integrationHttpMethodHasBeenSet = false;
482 bool m_uriHasBeenSet = false;
483 bool m_connectionTypeHasBeenSet = false;
484 bool m_connectionIdHasBeenSet = false;
485 bool m_credentialsHasBeenSet = false;
486 bool m_requestParametersHasBeenSet = false;
487 bool m_requestTemplatesHasBeenSet = false;
488 bool m_passthroughBehaviorHasBeenSet = false;
489 bool m_cacheNamespaceHasBeenSet = false;
490 bool m_cacheKeyParametersHasBeenSet = false;
491 bool m_contentHandlingHasBeenSet = false;
492 bool m_timeoutInMillisHasBeenSet = false;
493 bool m_tlsConfigHasBeenSet = false;
494 bool m_responseTransferModeHasBeenSet = false;
495 bool m_integrationTargetHasBeenSet = false;
496};
497
498} // namespace Model
499} // namespace APIGateway
500} // namespace Aws
PutIntegrationRequest & WithUri(UriT &&value)
PutIntegrationRequest & WithRequestParameters(RequestParametersT &&value)
PutIntegrationRequest & WithCredentials(CredentialsT &&value)
PutIntegrationRequest & AddRequestTemplates(RequestTemplatesKeyT &&key, RequestTemplatesValueT &&value)
PutIntegrationRequest & AddCacheKeyParameters(CacheKeyParametersT &&value)
void SetCacheKeyParameters(CacheKeyParametersT &&value)
virtual const char * GetServiceRequestName() const override
PutIntegrationRequest & WithIntegrationHttpMethod(IntegrationHttpMethodT &&value)
PutIntegrationRequest & WithType(IntegrationType value)
void SetContentHandling(ContentHandlingStrategy value)
PutIntegrationRequest & WithRequestTemplates(RequestTemplatesT &&value)
void SetIntegrationHttpMethod(IntegrationHttpMethodT &&value)
PutIntegrationRequest & WithTimeoutInMillis(int value)
PutIntegrationRequest & WithHttpMethod(HttpMethodT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestParameters() const
PutIntegrationRequest & WithPassthroughBehavior(PassthroughBehaviorT &&value)
PutIntegrationRequest & WithConnectionId(ConnectionIdT &&value)
PutIntegrationRequest & WithConnectionType(ConnectionType value)
AWS_APIGATEWAY_API PutIntegrationRequest()=default
PutIntegrationRequest & WithCacheNamespace(CacheNamespaceT &&value)
PutIntegrationRequest & AddRequestParameters(RequestParametersKeyT &&key, RequestParametersValueT &&value)
PutIntegrationRequest & WithResourceId(ResourceIdT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
void SetRequestParameters(RequestParametersT &&value)
const Aws::Vector< Aws::String > & GetCacheKeyParameters() const
PutIntegrationRequest & WithRestApiId(RestApiIdT &&value)
void SetRequestTemplates(RequestTemplatesT &&value)
PutIntegrationRequest & WithResponseTransferMode(ResponseTransferMode value)
const Aws::Map< Aws::String, Aws::String > & GetRequestTemplates() const
void SetIntegrationTarget(IntegrationTargetT &&value)
PutIntegrationRequest & WithTlsConfig(TlsConfigT &&value)
void SetResponseTransferMode(ResponseTransferMode value)
void SetPassthroughBehavior(PassthroughBehaviorT &&value)
PutIntegrationRequest & WithIntegrationTarget(IntegrationTargetT &&value)
PutIntegrationRequest & WithContentHandling(ContentHandlingStrategy value)
PutIntegrationRequest & WithCacheKeyParameters(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