AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
UpdateMethodRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/apigateway/model/PatchOperation.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace APIGateway {
17namespace Model {
18
25 public:
26 AWS_APIGATEWAY_API UpdateMethodRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateMethod"; }
33
34 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
41 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
42 template <typename RestApiIdT = Aws::String>
43 void SetRestApiId(RestApiIdT&& value) {
44 m_restApiIdHasBeenSet = true;
45 m_restApiId = std::forward<RestApiIdT>(value);
46 }
47 template <typename RestApiIdT = Aws::String>
48 UpdateMethodRequest& WithRestApiId(RestApiIdT&& value) {
49 SetRestApiId(std::forward<RestApiIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetResourceId() const { return m_resourceId; }
59 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
60 template <typename ResourceIdT = Aws::String>
61 void SetResourceId(ResourceIdT&& value) {
62 m_resourceIdHasBeenSet = true;
63 m_resourceId = std::forward<ResourceIdT>(value);
64 }
65 template <typename ResourceIdT = Aws::String>
66 UpdateMethodRequest& WithResourceId(ResourceIdT&& value) {
67 SetResourceId(std::forward<ResourceIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
77 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
78 template <typename HttpMethodT = Aws::String>
79 void SetHttpMethod(HttpMethodT&& value) {
80 m_httpMethodHasBeenSet = true;
81 m_httpMethod = std::forward<HttpMethodT>(value);
82 }
83 template <typename HttpMethodT = Aws::String>
84 UpdateMethodRequest& WithHttpMethod(HttpMethodT&& value) {
85 SetHttpMethod(std::forward<HttpMethodT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::Vector<PatchOperation>& GetPatchOperations() const { return m_patchOperations; }
97 inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
98 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
99 void SetPatchOperations(PatchOperationsT&& value) {
100 m_patchOperationsHasBeenSet = true;
101 m_patchOperations = std::forward<PatchOperationsT>(value);
102 }
103 template <typename PatchOperationsT = Aws::Vector<PatchOperation>>
104 UpdateMethodRequest& WithPatchOperations(PatchOperationsT&& value) {
105 SetPatchOperations(std::forward<PatchOperationsT>(value));
106 return *this;
107 }
108 template <typename PatchOperationsT = PatchOperation>
109 UpdateMethodRequest& AddPatchOperations(PatchOperationsT&& value) {
110 m_patchOperationsHasBeenSet = true;
111 m_patchOperations.emplace_back(std::forward<PatchOperationsT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_restApiId;
117
118 Aws::String m_resourceId;
119
120 Aws::String m_httpMethod;
121
122 Aws::Vector<PatchOperation> m_patchOperations;
123 bool m_restApiIdHasBeenSet = false;
124 bool m_resourceIdHasBeenSet = false;
125 bool m_httpMethodHasBeenSet = false;
126 bool m_patchOperationsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace APIGateway
131} // namespace Aws
UpdateMethodRequest & WithRestApiId(RestApiIdT &&value)
UpdateMethodRequest & AddPatchOperations(PatchOperationsT &&value)
virtual const char * GetServiceRequestName() const override
UpdateMethodRequest & WithHttpMethod(HttpMethodT &&value)
void SetPatchOperations(PatchOperationsT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
AWS_APIGATEWAY_API UpdateMethodRequest()=default
const Aws::Vector< PatchOperation > & GetPatchOperations() const
UpdateMethodRequest & WithPatchOperations(PatchOperationsT &&value)
UpdateMethodRequest & WithResourceId(ResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector