AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateIntegrationRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/apigateway/model/PatchOperation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace APIGateway
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_APIGATEWAY_API UpdateIntegrationRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateIntegration"; }
36
37 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
45 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
46 template<typename RestApiIdT = Aws::String>
47 void SetRestApiId(RestApiIdT&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::forward<RestApiIdT>(value); }
48 template<typename RestApiIdT = Aws::String>
49 UpdateIntegrationRequest& WithRestApiId(RestApiIdT&& value) { SetRestApiId(std::forward<RestApiIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetResourceId() const { return m_resourceId; }
57 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
58 template<typename ResourceIdT = Aws::String>
59 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
60 template<typename ResourceIdT = Aws::String>
61 UpdateIntegrationRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
69 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
70 template<typename HttpMethodT = Aws::String>
71 void SetHttpMethod(HttpMethodT&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::forward<HttpMethodT>(value); }
72 template<typename HttpMethodT = Aws::String>
73 UpdateIntegrationRequest& WithHttpMethod(HttpMethodT&& value) { SetHttpMethod(std::forward<HttpMethodT>(value)); return *this;}
75
77
82 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const { return m_patchOperations; }
83 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
84 template<typename PatchOperationsT = Aws::Vector<PatchOperation>>
85 void SetPatchOperations(PatchOperationsT&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::forward<PatchOperationsT>(value); }
86 template<typename PatchOperationsT = Aws::Vector<PatchOperation>>
87 UpdateIntegrationRequest& WithPatchOperations(PatchOperationsT&& value) { SetPatchOperations(std::forward<PatchOperationsT>(value)); return *this;}
88 template<typename PatchOperationsT = PatchOperation>
89 UpdateIntegrationRequest& AddPatchOperations(PatchOperationsT&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.emplace_back(std::forward<PatchOperationsT>(value)); return *this; }
91 private:
92
93 Aws::String m_restApiId;
94 bool m_restApiIdHasBeenSet = false;
95
96 Aws::String m_resourceId;
97 bool m_resourceIdHasBeenSet = false;
98
99 Aws::String m_httpMethod;
100 bool m_httpMethodHasBeenSet = false;
101
102 Aws::Vector<PatchOperation> m_patchOperations;
103 bool m_patchOperationsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace APIGateway
108} // namespace Aws
AWS_APIGATEWAY_API UpdateIntegrationRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateIntegrationRequest & WithHttpMethod(HttpMethodT &&value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
UpdateIntegrationRequest & WithResourceId(ResourceIdT &&value)
UpdateIntegrationRequest & WithPatchOperations(PatchOperationsT &&value)
UpdateIntegrationRequest & AddPatchOperations(PatchOperationsT &&value)
UpdateIntegrationRequest & WithRestApiId(RestApiIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector