AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetIntegrationResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/IntegrationType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apigateway/model/ConnectionType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/apigateway/model/ContentHandlingStrategy.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/apigateway/model/TlsConfig.h>
15#include <aws/apigateway/model/IntegrationResponse.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace APIGateway
31{
32namespace Model
33{
41 {
42 public:
43 AWS_APIGATEWAY_API GetIntegrationResult() = default;
46
47
49
58 inline IntegrationType GetType() const { return m_type; }
59 inline void SetType(IntegrationType value) { m_typeHasBeenSet = true; m_type = value; }
60 inline GetIntegrationResult& WithType(IntegrationType value) { SetType(value); return *this;}
62
64
70 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
71 template<typename HttpMethodT = Aws::String>
72 void SetHttpMethod(HttpMethodT&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::forward<HttpMethodT>(value); }
73 template<typename HttpMethodT = Aws::String>
74 GetIntegrationResult& WithHttpMethod(HttpMethodT&& value) { SetHttpMethod(std::forward<HttpMethodT>(value)); return *this;}
76
78
100 inline const Aws::String& GetUri() const { return m_uri; }
101 template<typename UriT = Aws::String>
102 void SetUri(UriT&& value) { m_uriHasBeenSet = true; m_uri = std::forward<UriT>(value); }
103 template<typename UriT = Aws::String>
104 GetIntegrationResult& WithUri(UriT&& value) { SetUri(std::forward<UriT>(value)); return *this;}
106
108
115 inline ConnectionType GetConnectionType() const { return m_connectionType; }
116 inline void SetConnectionType(ConnectionType value) { m_connectionTypeHasBeenSet = true; m_connectionType = value; }
119
121
125 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
126 template<typename ConnectionIdT = Aws::String>
127 void SetConnectionId(ConnectionIdT&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::forward<ConnectionIdT>(value); }
128 template<typename ConnectionIdT = Aws::String>
129 GetIntegrationResult& WithConnectionId(ConnectionIdT&& value) { SetConnectionId(std::forward<ConnectionIdT>(value)); return *this;}
131
133
141 inline const Aws::String& GetCredentials() const { return m_credentials; }
142 template<typename CredentialsT = Aws::String>
143 void SetCredentials(CredentialsT&& value) { m_credentialsHasBeenSet = true; m_credentials = std::forward<CredentialsT>(value); }
144 template<typename CredentialsT = Aws::String>
145 GetIntegrationResult& WithCredentials(CredentialsT&& value) { SetCredentials(std::forward<CredentialsT>(value)); return *this;}
147
149
159 inline const Aws::Map<Aws::String, Aws::String>& GetRequestParameters() const { return m_requestParameters; }
160 template<typename RequestParametersT = Aws::Map<Aws::String, Aws::String>>
161 void SetRequestParameters(RequestParametersT&& value) { m_requestParametersHasBeenSet = true; m_requestParameters = std::forward<RequestParametersT>(value); }
162 template<typename RequestParametersT = Aws::Map<Aws::String, Aws::String>>
163 GetIntegrationResult& WithRequestParameters(RequestParametersT&& value) { SetRequestParameters(std::forward<RequestParametersT>(value)); return *this;}
164 template<typename RequestParametersKeyT = Aws::String, typename RequestParametersValueT = Aws::String>
165 GetIntegrationResult& AddRequestParameters(RequestParametersKeyT&& key, RequestParametersValueT&& value) {
166 m_requestParametersHasBeenSet = true; m_requestParameters.emplace(std::forward<RequestParametersKeyT>(key), std::forward<RequestParametersValueT>(value)); return *this;
167 }
169
171
177 inline const Aws::Map<Aws::String, Aws::String>& GetRequestTemplates() const { return m_requestTemplates; }
178 template<typename RequestTemplatesT = Aws::Map<Aws::String, Aws::String>>
179 void SetRequestTemplates(RequestTemplatesT&& value) { m_requestTemplatesHasBeenSet = true; m_requestTemplates = std::forward<RequestTemplatesT>(value); }
180 template<typename RequestTemplatesT = Aws::Map<Aws::String, Aws::String>>
181 GetIntegrationResult& WithRequestTemplates(RequestTemplatesT&& value) { SetRequestTemplates(std::forward<RequestTemplatesT>(value)); return *this;}
182 template<typename RequestTemplatesKeyT = Aws::String, typename RequestTemplatesValueT = Aws::String>
183 GetIntegrationResult& AddRequestTemplates(RequestTemplatesKeyT&& key, RequestTemplatesValueT&& value) {
184 m_requestTemplatesHasBeenSet = true; m_requestTemplates.emplace(std::forward<RequestTemplatesKeyT>(key), std::forward<RequestTemplatesValueT>(value)); return *this;
185 }
187
189
209 inline const Aws::String& GetPassthroughBehavior() const { return m_passthroughBehavior; }
210 template<typename PassthroughBehaviorT = Aws::String>
211 void SetPassthroughBehavior(PassthroughBehaviorT&& value) { m_passthroughBehaviorHasBeenSet = true; m_passthroughBehavior = std::forward<PassthroughBehaviorT>(value); }
212 template<typename PassthroughBehaviorT = Aws::String>
213 GetIntegrationResult& WithPassthroughBehavior(PassthroughBehaviorT&& value) { SetPassthroughBehavior(std::forward<PassthroughBehaviorT>(value)); return *this;}
215
217
225 inline ContentHandlingStrategy GetContentHandling() const { return m_contentHandling; }
226 inline void SetContentHandling(ContentHandlingStrategy value) { m_contentHandlingHasBeenSet = true; m_contentHandling = value; }
229
231
236 inline int GetTimeoutInMillis() const { return m_timeoutInMillis; }
237 inline void SetTimeoutInMillis(int value) { m_timeoutInMillisHasBeenSet = true; m_timeoutInMillis = value; }
238 inline GetIntegrationResult& WithTimeoutInMillis(int value) { SetTimeoutInMillis(value); return *this;}
240
242
248 inline const Aws::String& GetCacheNamespace() const { return m_cacheNamespace; }
249 template<typename CacheNamespaceT = Aws::String>
250 void SetCacheNamespace(CacheNamespaceT&& value) { m_cacheNamespaceHasBeenSet = true; m_cacheNamespace = std::forward<CacheNamespaceT>(value); }
251 template<typename CacheNamespaceT = Aws::String>
252 GetIntegrationResult& WithCacheNamespace(CacheNamespaceT&& value) { SetCacheNamespace(std::forward<CacheNamespaceT>(value)); return *this;}
254
256
261 inline const Aws::Vector<Aws::String>& GetCacheKeyParameters() const { return m_cacheKeyParameters; }
262 template<typename CacheKeyParametersT = Aws::Vector<Aws::String>>
263 void SetCacheKeyParameters(CacheKeyParametersT&& value) { m_cacheKeyParametersHasBeenSet = true; m_cacheKeyParameters = std::forward<CacheKeyParametersT>(value); }
264 template<typename CacheKeyParametersT = Aws::Vector<Aws::String>>
265 GetIntegrationResult& WithCacheKeyParameters(CacheKeyParametersT&& value) { SetCacheKeyParameters(std::forward<CacheKeyParametersT>(value)); return *this;}
266 template<typename CacheKeyParametersT = Aws::String>
267 GetIntegrationResult& AddCacheKeyParameters(CacheKeyParametersT&& value) { m_cacheKeyParametersHasBeenSet = true; m_cacheKeyParameters.emplace_back(std::forward<CacheKeyParametersT>(value)); return *this; }
269
271
274 inline const Aws::Map<Aws::String, IntegrationResponse>& GetIntegrationResponses() const { return m_integrationResponses; }
275 template<typename IntegrationResponsesT = Aws::Map<Aws::String, IntegrationResponse>>
276 void SetIntegrationResponses(IntegrationResponsesT&& value) { m_integrationResponsesHasBeenSet = true; m_integrationResponses = std::forward<IntegrationResponsesT>(value); }
277 template<typename IntegrationResponsesT = Aws::Map<Aws::String, IntegrationResponse>>
278 GetIntegrationResult& WithIntegrationResponses(IntegrationResponsesT&& value) { SetIntegrationResponses(std::forward<IntegrationResponsesT>(value)); return *this;}
279 template<typename IntegrationResponsesKeyT = Aws::String, typename IntegrationResponsesValueT = IntegrationResponse>
280 GetIntegrationResult& AddIntegrationResponses(IntegrationResponsesKeyT&& key, IntegrationResponsesValueT&& value) {
281 m_integrationResponsesHasBeenSet = true; m_integrationResponses.emplace(std::forward<IntegrationResponsesKeyT>(key), std::forward<IntegrationResponsesValueT>(value)); return *this;
282 }
284
286
289 inline const TlsConfig& GetTlsConfig() const { return m_tlsConfig; }
290 template<typename TlsConfigT = TlsConfig>
291 void SetTlsConfig(TlsConfigT&& value) { m_tlsConfigHasBeenSet = true; m_tlsConfig = std::forward<TlsConfigT>(value); }
292 template<typename TlsConfigT = TlsConfig>
293 GetIntegrationResult& WithTlsConfig(TlsConfigT&& value) { SetTlsConfig(std::forward<TlsConfigT>(value)); return *this;}
295
297
298 inline const Aws::String& GetRequestId() const { return m_requestId; }
299 template<typename RequestIdT = Aws::String>
300 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
301 template<typename RequestIdT = Aws::String>
302 GetIntegrationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
304 private:
305
307 bool m_typeHasBeenSet = false;
308
309 Aws::String m_httpMethod;
310 bool m_httpMethodHasBeenSet = false;
311
312 Aws::String m_uri;
313 bool m_uriHasBeenSet = false;
314
315 ConnectionType m_connectionType{ConnectionType::NOT_SET};
316 bool m_connectionTypeHasBeenSet = false;
317
318 Aws::String m_connectionId;
319 bool m_connectionIdHasBeenSet = false;
320
321 Aws::String m_credentials;
322 bool m_credentialsHasBeenSet = false;
323
324 Aws::Map<Aws::String, Aws::String> m_requestParameters;
325 bool m_requestParametersHasBeenSet = false;
326
327 Aws::Map<Aws::String, Aws::String> m_requestTemplates;
328 bool m_requestTemplatesHasBeenSet = false;
329
330 Aws::String m_passthroughBehavior;
331 bool m_passthroughBehaviorHasBeenSet = false;
332
334 bool m_contentHandlingHasBeenSet = false;
335
336 int m_timeoutInMillis{0};
337 bool m_timeoutInMillisHasBeenSet = false;
338
339 Aws::String m_cacheNamespace;
340 bool m_cacheNamespaceHasBeenSet = false;
341
342 Aws::Vector<Aws::String> m_cacheKeyParameters;
343 bool m_cacheKeyParametersHasBeenSet = false;
344
345 Aws::Map<Aws::String, IntegrationResponse> m_integrationResponses;
346 bool m_integrationResponsesHasBeenSet = false;
347
348 TlsConfig m_tlsConfig;
349 bool m_tlsConfigHasBeenSet = false;
350
351 Aws::String m_requestId;
352 bool m_requestIdHasBeenSet = false;
353 };
354
355} // namespace Model
356} // namespace APIGateway
357} // namespace Aws
GetIntegrationResult & WithRequestTemplates(RequestTemplatesT &&value)
GetIntegrationResult & WithTlsConfig(TlsConfigT &&value)
ContentHandlingStrategy GetContentHandling() const
GetIntegrationResult & AddCacheKeyParameters(CacheKeyParametersT &&value)
const Aws::Map< Aws::String, IntegrationResponse > & GetIntegrationResponses() const
const Aws::Vector< Aws::String > & GetCacheKeyParameters() const
AWS_APIGATEWAY_API GetIntegrationResult()=default
void SetContentHandling(ContentHandlingStrategy value)
void SetIntegrationResponses(IntegrationResponsesT &&value)
void SetRequestParameters(RequestParametersT &&value)
GetIntegrationResult & WithHttpMethod(HttpMethodT &&value)
GetIntegrationResult & AddRequestParameters(RequestParametersKeyT &&key, RequestParametersValueT &&value)
GetIntegrationResult & WithRequestParameters(RequestParametersT &&value)
GetIntegrationResult & AddIntegrationResponses(IntegrationResponsesKeyT &&key, IntegrationResponsesValueT &&value)
GetIntegrationResult & WithTimeoutInMillis(int value)
GetIntegrationResult & WithIntegrationResponses(IntegrationResponsesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestTemplates() const
GetIntegrationResult & WithCredentials(CredentialsT &&value)
GetIntegrationResult & WithUri(UriT &&value)
GetIntegrationResult & WithCacheKeyParameters(CacheKeyParametersT &&value)
GetIntegrationResult & WithCacheNamespace(CacheNamespaceT &&value)
void SetCacheKeyParameters(CacheKeyParametersT &&value)
void SetPassthroughBehavior(PassthroughBehaviorT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestParameters() const
void SetRequestTemplates(RequestTemplatesT &&value)
AWS_APIGATEWAY_API GetIntegrationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetIntegrationResult & WithConnectionType(ConnectionType value)
GetIntegrationResult & WithRequestId(RequestIdT &&value)
GetIntegrationResult & WithType(IntegrationType value)
AWS_APIGATEWAY_API GetIntegrationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetIntegrationResult & WithContentHandling(ContentHandlingStrategy value)
GetIntegrationResult & WithConnectionId(ConnectionIdT &&value)
GetIntegrationResult & AddRequestTemplates(RequestTemplatesKeyT &&key, RequestTemplatesValueT &&value)
GetIntegrationResult & WithPassthroughBehavior(PassthroughBehaviorT &&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