AWS SDK for C++  1.9.130
AWS SDK for C++
UpdateMethodRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace APIGateway
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "UpdateMethod"; }
37 
38  Aws::String SerializePayload() const override;
39 
40 
44  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
45 
49  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
50 
54  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
55 
59  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
60 
64  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
65 
69  inline UpdateMethodRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
70 
74  inline UpdateMethodRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
75 
79  inline UpdateMethodRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
80 
81 
85  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
86 
90  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
91 
95  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
96 
100  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
101 
105  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
106 
110  inline UpdateMethodRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
111 
115  inline UpdateMethodRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
116 
120  inline UpdateMethodRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
121 
122 
126  inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
127 
131  inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
132 
136  inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
137 
141  inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
142 
146  inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
147 
151  inline UpdateMethodRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
152 
156  inline UpdateMethodRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
157 
161  inline UpdateMethodRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
162 
163 
168  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
169 
174  inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
175 
180  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
181 
186  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
187 
192  inline UpdateMethodRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
193 
198  inline UpdateMethodRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(std::move(value)); return *this;}
199 
204  inline UpdateMethodRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
205 
210  inline UpdateMethodRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
211 
212  private:
213 
214  Aws::String m_restApiId;
215  bool m_restApiIdHasBeenSet;
216 
217  Aws::String m_resourceId;
218  bool m_resourceIdHasBeenSet;
219 
220  Aws::String m_httpMethod;
221  bool m_httpMethodHasBeenSet;
222 
223  Aws::Vector<PatchOperation> m_patchOperations;
224  bool m_patchOperationsHasBeenSet;
225  };
226 
227 } // namespace Model
228 } // namespace APIGateway
229 } // namespace Aws
Aws::APIGateway::Model::UpdateMethodRequest::SetHttpMethod
void SetHttpMethod(const char *value)
Definition: UpdateMethodRequest.h:146
Aws::APIGateway::Model::UpdateMethodRequest::WithPatchOperations
UpdateMethodRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateMethodRequest.h:192
Aws::APIGateway::Model::UpdateMethodRequest::SetPatchOperations
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateMethodRequest.h:180
Aws::APIGateway::Model::UpdateMethodRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: UpdateMethodRequest.h:44
Aws::APIGateway::Model::UpdateMethodRequest::AddPatchOperations
UpdateMethodRequest & AddPatchOperations(const PatchOperation &value)
Definition: UpdateMethodRequest.h:204
Aws::APIGateway::Model::UpdateMethodRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: UpdateMethodRequest.h:100
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::UpdateMethodRequest::AddPatchOperations
UpdateMethodRequest & AddPatchOperations(PatchOperation &&value)
Definition: UpdateMethodRequest.h:210
Aws::APIGateway::Model::UpdateMethodRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateMethodRequest.h:36
Aws::APIGateway::Model::UpdateMethodRequest::GetPatchOperations
const Aws::Vector< PatchOperation > & GetPatchOperations() const
Definition: UpdateMethodRequest.h:168
Aws::APIGateway::Model::UpdateMethodRequest::WithRestApiId
UpdateMethodRequest & WithRestApiId(Aws::String &&value)
Definition: UpdateMethodRequest.h:74
APIGateway_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::UpdateMethodRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: UpdateMethodRequest.h:90
Aws::APIGateway::Model::UpdateMethodRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: UpdateMethodRequest.h:54
Aws::APIGateway::Model::UpdateMethodRequest::SetResourceId
void SetResourceId(const char *value)
Definition: UpdateMethodRequest.h:105
AWSVector.h
Aws::APIGateway::Model::UpdateMethodRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: UpdateMethodRequest.h:85
APIGatewayRequest.h
Aws::APIGateway::Model::UpdateMethodRequest::WithResourceId
UpdateMethodRequest & WithResourceId(Aws::String &&value)
Definition: UpdateMethodRequest.h:115
Aws::APIGateway::Model::UpdateMethodRequest
Definition: UpdateMethodRequest.h:28
Aws::APIGateway::Model::UpdateMethodRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: UpdateMethodRequest.h:59
Aws::APIGateway::Model::UpdateMethodRequest::PatchOperationsHasBeenSet
bool PatchOperationsHasBeenSet() const
Definition: UpdateMethodRequest.h:174
Aws::APIGateway::Model::UpdateMethodRequest::SetHttpMethod
void SetHttpMethod(Aws::String &&value)
Definition: UpdateMethodRequest.h:141
Aws::APIGateway::Model::UpdateMethodRequest::WithHttpMethod
UpdateMethodRequest & WithHttpMethod(const Aws::String &value)
Definition: UpdateMethodRequest.h:151
Aws::APIGateway::Model::UpdateMethodRequest::WithHttpMethod
UpdateMethodRequest & WithHttpMethod(const char *value)
Definition: UpdateMethodRequest.h:161
Aws::APIGateway::Model::UpdateMethodRequest::WithHttpMethod
UpdateMethodRequest & WithHttpMethod(Aws::String &&value)
Definition: UpdateMethodRequest.h:156
AWSString.h
Aws::APIGateway::Model::UpdateMethodRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: UpdateMethodRequest.h:95
Aws::APIGateway::Model::UpdateMethodRequest::SetPatchOperations
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateMethodRequest.h:186
Aws::APIGateway::Model::UpdateMethodRequest::WithRestApiId
UpdateMethodRequest & WithRestApiId(const Aws::String &value)
Definition: UpdateMethodRequest.h:69
Aws::APIGateway::Model::UpdateMethodRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::UpdateMethodRequest::GetHttpMethod
const Aws::String & GetHttpMethod() const
Definition: UpdateMethodRequest.h:126
Aws::APIGateway::Model::UpdateMethodRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: UpdateMethodRequest.h:64
PatchOperation.h
Aws::APIGateway::Model::UpdateMethodRequest::WithResourceId
UpdateMethodRequest & WithResourceId(const char *value)
Definition: UpdateMethodRequest.h:120
Aws::APIGateway::Model::UpdateMethodRequest::WithResourceId
UpdateMethodRequest & WithResourceId(const Aws::String &value)
Definition: UpdateMethodRequest.h:110
Aws::APIGateway::Model::UpdateMethodRequest::SetHttpMethod
void SetHttpMethod(const Aws::String &value)
Definition: UpdateMethodRequest.h:136
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::UpdateMethodRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: UpdateMethodRequest.h:49
Aws::APIGateway::Model::UpdateMethodRequest::WithPatchOperations
UpdateMethodRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateMethodRequest.h:198
Aws::APIGateway::Model::UpdateMethodRequest::WithRestApiId
UpdateMethodRequest & WithRestApiId(const char *value)
Definition: UpdateMethodRequest.h:79
Aws::APIGateway::Model::PatchOperation
Definition: PatchOperation.h:35
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::UpdateMethodRequest::UpdateMethodRequest
UpdateMethodRequest()
Aws::APIGateway::Model::UpdateMethodRequest::HttpMethodHasBeenSet
bool HttpMethodHasBeenSet() const
Definition: UpdateMethodRequest.h:131