AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutIntegrationRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apigateway/model/IntegrationType.h>
11#include <aws/apigateway/model/ConnectionType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/apigateway/model/ContentHandlingStrategy.h>
15#include <aws/apigateway/model/TlsConfig.h>
16#include <utility>
17
18namespace Aws
19{
20namespace APIGateway
21{
22namespace Model
23{
24
31 {
32 public:
33 AWS_APIGATEWAY_API PutIntegrationRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "PutIntegration"; }
40
41 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
42
43
45
48 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
49 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
50 template<typename RestApiIdT = Aws::String>
51 void SetRestApiId(RestApiIdT&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::forward<RestApiIdT>(value); }
52 template<typename RestApiIdT = Aws::String>
53 PutIntegrationRequest& WithRestApiId(RestApiIdT&& value) { SetRestApiId(std::forward<RestApiIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetResourceId() const { return m_resourceId; }
61 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
62 template<typename ResourceIdT = Aws::String>
63 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
64 template<typename ResourceIdT = Aws::String>
65 PutIntegrationRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
67
69
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) { m_httpMethodHasBeenSet = true; m_httpMethod = std::forward<HttpMethodT>(value); }
76 template<typename HttpMethodT = Aws::String>
77 PutIntegrationRequest& WithHttpMethod(HttpMethodT&& value) { SetHttpMethod(std::forward<HttpMethodT>(value)); return *this;}
79
81
84 inline IntegrationType GetType() const { return m_type; }
85 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
86 inline void SetType(IntegrationType value) { m_typeHasBeenSet = true; m_type = value; }
87 inline PutIntegrationRequest& WithType(IntegrationType value) { SetType(value); return *this;}
89
91
94 inline const Aws::String& GetIntegrationHttpMethod() const { return m_integrationHttpMethod; }
95 inline bool IntegrationHttpMethodHasBeenSet() const { return m_integrationHttpMethodHasBeenSet; }
96 template<typename IntegrationHttpMethodT = Aws::String>
97 void SetIntegrationHttpMethod(IntegrationHttpMethodT&& value) { m_integrationHttpMethodHasBeenSet = true; m_integrationHttpMethod = std::forward<IntegrationHttpMethodT>(value); }
98 template<typename IntegrationHttpMethodT = Aws::String>
99 PutIntegrationRequest& WithIntegrationHttpMethod(IntegrationHttpMethodT&& value) { SetIntegrationHttpMethod(std::forward<IntegrationHttpMethodT>(value)); return *this;}
101
103
126 inline const Aws::String& GetUri() const { return m_uri; }
127 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
128 template<typename UriT = Aws::String>
129 void SetUri(UriT&& value) { m_uriHasBeenSet = true; m_uri = std::forward<UriT>(value); }
130 template<typename UriT = Aws::String>
131 PutIntegrationRequest& WithUri(UriT&& value) { SetUri(std::forward<UriT>(value)); return *this;}
133
135
142 inline ConnectionType GetConnectionType() const { return m_connectionType; }
143 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
144 inline void SetConnectionType(ConnectionType value) { m_connectionTypeHasBeenSet = true; m_connectionType = value; }
147
149
153 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
154 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
155 template<typename ConnectionIdT = Aws::String>
156 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
157 template<typename ConnectionIdT = Aws::String>
158 PutIntegrationRequest& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
160
162
165 inline const Aws::String& GetCredentials() const { return m_credentials; }
166 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
167 template<typename CredentialsT = Aws::String>
168 void SetCredentials(CredentialsT&& value) { m_credentialsHasBeenSet = true; m_credentials = std::forward<CredentialsT>(value); }
169 template<typename CredentialsT = Aws::String>
170 PutIntegrationRequest& WithCredentials(CredentialsT&& value) { SetCredentials(std::forward<CredentialsT>(value)); return *this;}
172
174
184 inline const Aws::Map<Aws::String, Aws::String>& GetRequestParameters() const { return m_requestParameters; }
185 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
186 template<typename RequestParametersT = Aws::Map<Aws::String, Aws::String>>
187 void SetRequestParameters(RequestParametersT&& value) { m_requestParametersHasBeenSet = true; m_requestParameters = std::forward<RequestParametersT>(value); }
188 template<typename RequestParametersT = Aws::Map<Aws::String, Aws::String>>
189 PutIntegrationRequest& WithRequestParameters(RequestParametersT&& value) { SetRequestParameters(std::forward<RequestParametersT>(value)); return *this;}
190 template<typename RequestParametersKeyT = Aws::String, typename RequestParametersValueT = Aws::String>
191 PutIntegrationRequest& AddRequestParameters(RequestParametersKeyT&& key, RequestParametersValueT&& value) {
192 m_requestParametersHasBeenSet = true; m_requestParameters.emplace(std::forward<RequestParametersKeyT>(key), std::forward<RequestParametersValueT>(value)); return *this;
193 }
195
197
203 inline const Aws::Map<Aws::String, Aws::String>& GetRequestTemplates() const { return m_requestTemplates; }
204 inline bool RequestTemplatesHasBeenSet() const { return m_requestTemplatesHasBeenSet; }
205 template<typename RequestTemplatesT = Aws::Map<Aws::String, Aws::String>>
206 void SetRequestTemplates(RequestTemplatesT&& value) { m_requestTemplatesHasBeenSet = true; m_requestTemplates = std::forward<RequestTemplatesT>(value); }
207 template<typename RequestTemplatesT = Aws::Map<Aws::String, Aws::String>>
208 PutIntegrationRequest& WithRequestTemplates(RequestTemplatesT&& value) { SetRequestTemplates(std::forward<RequestTemplatesT>(value)); return *this;}
209 template<typename RequestTemplatesKeyT = Aws::String, typename RequestTemplatesValueT = Aws::String>
210 PutIntegrationRequest& AddRequestTemplates(RequestTemplatesKeyT&& key, RequestTemplatesValueT&& value) {
211 m_requestTemplatesHasBeenSet = true; m_requestTemplates.emplace(std::forward<RequestTemplatesKeyT>(key), std::forward<RequestTemplatesValueT>(value)); return *this;
212 }
214
216
223 inline const Aws::String& GetPassthroughBehavior() const { return m_passthroughBehavior; }
224 inline bool PassthroughBehaviorHasBeenSet() const { return m_passthroughBehaviorHasBeenSet; }
225 template<typename PassthroughBehaviorT = Aws::String>
226 void SetPassthroughBehavior(PassthroughBehaviorT&& value) { m_passthroughBehaviorHasBeenSet = true; m_passthroughBehavior = std::forward<PassthroughBehaviorT>(value); }
227 template<typename PassthroughBehaviorT = Aws::String>
228 PutIntegrationRequest& WithPassthroughBehavior(PassthroughBehaviorT&& value) { SetPassthroughBehavior(std::forward<PassthroughBehaviorT>(value)); return *this;}
230
232
238 inline const Aws::String& GetCacheNamespace() const { return m_cacheNamespace; }
239 inline bool CacheNamespaceHasBeenSet() const { return m_cacheNamespaceHasBeenSet; }
240 template<typename CacheNamespaceT = Aws::String>
241 void SetCacheNamespace(CacheNamespaceT&& value) { m_cacheNamespaceHasBeenSet = true; m_cacheNamespace = std::forward<CacheNamespaceT>(value); }
242 template<typename CacheNamespaceT = Aws::String>
243 PutIntegrationRequest& WithCacheNamespace(CacheNamespaceT&& value) { SetCacheNamespace(std::forward<CacheNamespaceT>(value)); return *this;}
245
247
252 inline const Aws::Vector<Aws::String>& GetCacheKeyParameters() const { return m_cacheKeyParameters; }
253 inline bool CacheKeyParametersHasBeenSet() const { return m_cacheKeyParametersHasBeenSet; }
254 template<typename CacheKeyParametersT = Aws::Vector<Aws::String>>
255 void SetCacheKeyParameters(CacheKeyParametersT&& value) { m_cacheKeyParametersHasBeenSet = true; m_cacheKeyParameters = std::forward<CacheKeyParametersT>(value); }
256 template<typename CacheKeyParametersT = Aws::Vector<Aws::String>>
257 PutIntegrationRequest& WithCacheKeyParameters(CacheKeyParametersT&& value) { SetCacheKeyParameters(std::forward<CacheKeyParametersT>(value)); return *this;}
258 template<typename CacheKeyParametersT = Aws::String>
259 PutIntegrationRequest& AddCacheKeyParameters(CacheKeyParametersT&& value) { m_cacheKeyParametersHasBeenSet = true; m_cacheKeyParameters.emplace_back(std::forward<CacheKeyParametersT>(value)); return *this; }
261
263
271 inline ContentHandlingStrategy GetContentHandling() const { return m_contentHandling; }
272 inline bool ContentHandlingHasBeenSet() const { return m_contentHandlingHasBeenSet; }
273 inline void SetContentHandling(ContentHandlingStrategy value) { m_contentHandlingHasBeenSet = true; m_contentHandling = value; }
276
278
283 inline int GetTimeoutInMillis() const { return m_timeoutInMillis; }
284 inline bool TimeoutInMillisHasBeenSet() const { return m_timeoutInMillisHasBeenSet; }
285 inline void SetTimeoutInMillis(int value) { m_timeoutInMillisHasBeenSet = true; m_timeoutInMillis = value; }
286 inline PutIntegrationRequest& WithTimeoutInMillis(int value) { SetTimeoutInMillis(value); return *this;}
288
290
291 inline const TlsConfig& GetTlsConfig() const { return m_tlsConfig; }
292 inline bool TlsConfigHasBeenSet() const { return m_tlsConfigHasBeenSet; }
293 template<typename TlsConfigT = TlsConfig>
294 void SetTlsConfig(TlsConfigT&& value) { m_tlsConfigHasBeenSet = true; m_tlsConfig = std::forward<TlsConfigT>(value); }
295 template<typename TlsConfigT = TlsConfig>
296 PutIntegrationRequest& WithTlsConfig(TlsConfigT&& value) { SetTlsConfig(std::forward<TlsConfigT>(value)); return *this;}
298 private:
299
300 Aws::String m_restApiId;
301 bool m_restApiIdHasBeenSet = false;
302
303 Aws::String m_resourceId;
304 bool m_resourceIdHasBeenSet = false;
305
306 Aws::String m_httpMethod;
307 bool m_httpMethodHasBeenSet = false;
308
310 bool m_typeHasBeenSet = false;
311
312 Aws::String m_integrationHttpMethod;
313 bool m_integrationHttpMethodHasBeenSet = false;
314
315 Aws::String m_uri;
316 bool m_uriHasBeenSet = false;
317
318 ConnectionType m_connectionType{ConnectionType::NOT_SET};
319 bool m_connectionTypeHasBeenSet = false;
320
321 Aws::String m_connectionId;
322 bool m_connectionIdHasBeenSet = false;
323
324 Aws::String m_credentials;
325 bool m_credentialsHasBeenSet = false;
326
327 Aws::Map<Aws::String, Aws::String> m_requestParameters;
328 bool m_requestParametersHasBeenSet = false;
329
330 Aws::Map<Aws::String, Aws::String> m_requestTemplates;
331 bool m_requestTemplatesHasBeenSet = false;
332
333 Aws::String m_passthroughBehavior;
334 bool m_passthroughBehaviorHasBeenSet = false;
335
336 Aws::String m_cacheNamespace;
337 bool m_cacheNamespaceHasBeenSet = false;
338
339 Aws::Vector<Aws::String> m_cacheKeyParameters;
340 bool m_cacheKeyParametersHasBeenSet = false;
341
343 bool m_contentHandlingHasBeenSet = false;
344
345 int m_timeoutInMillis{0};
346 bool m_timeoutInMillisHasBeenSet = false;
347
348 TlsConfig m_tlsConfig;
349 bool m_tlsConfigHasBeenSet = false;
350 };
351
352} // namespace Model
353} // namespace APIGateway
354} // 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)
const Aws::Map< Aws::String, Aws::String > & GetRequestTemplates() const
PutIntegrationRequest & WithTlsConfig(TlsConfigT &&value)
void SetPassthroughBehavior(PassthroughBehaviorT &&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