AWS SDK for C++  1.9.20
AWS SDK for C++
UpdateMethodResponseRequest.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 "UpdateMethodResponse"; }
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 UpdateMethodResponseRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
70 
74  inline UpdateMethodResponseRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
75 
79  inline UpdateMethodResponseRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
80 
81 
86  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
87 
92  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
93 
98  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
99 
104  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
105 
110  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
111 
116  inline UpdateMethodResponseRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
117 
122  inline UpdateMethodResponseRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
123 
128  inline UpdateMethodResponseRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
129 
130 
134  inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
135 
139  inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
140 
144  inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
145 
149  inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
150 
154  inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
155 
159  inline UpdateMethodResponseRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
160 
164  inline UpdateMethodResponseRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
165 
169  inline UpdateMethodResponseRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
170 
171 
175  inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
176 
180  inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
181 
185  inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
186 
190  inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
191 
195  inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
196 
200  inline UpdateMethodResponseRequest& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
201 
205  inline UpdateMethodResponseRequest& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
206 
210  inline UpdateMethodResponseRequest& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
211 
212 
217  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
218 
223  inline bool PatchOperationsHasBeenSet() const { return m_patchOperationsHasBeenSet; }
224 
229  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
230 
235  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = std::move(value); }
236 
241  inline UpdateMethodResponseRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
242 
247  inline UpdateMethodResponseRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(std::move(value)); return *this;}
248 
253  inline UpdateMethodResponseRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
254 
259  inline UpdateMethodResponseRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(std::move(value)); return *this; }
260 
261  private:
262 
263  Aws::String m_restApiId;
264  bool m_restApiIdHasBeenSet;
265 
266  Aws::String m_resourceId;
267  bool m_resourceIdHasBeenSet;
268 
269  Aws::String m_httpMethod;
270  bool m_httpMethodHasBeenSet;
271 
272  Aws::String m_statusCode;
273  bool m_statusCodeHasBeenSet;
274 
275  Aws::Vector<PatchOperation> m_patchOperations;
276  bool m_patchOperationsHasBeenSet;
277  };
278 
279 } // namespace Model
280 } // namespace APIGateway
281 } // namespace Aws
Aws::APIGateway::Model::UpdateMethodResponseRequest::WithRestApiId
UpdateMethodResponseRequest & WithRestApiId(Aws::String &&value)
Definition: UpdateMethodResponseRequest.h:74
Aws::APIGateway::Model::UpdateMethodResponseRequest::SetStatusCode
void SetStatusCode(const char *value)
Definition: UpdateMethodResponseRequest.h:195
Aws::APIGateway::Model::UpdateMethodResponseRequest::UpdateMethodResponseRequest
UpdateMethodResponseRequest()
Aws::APIGateway::Model::UpdateMethodResponseRequest::WithPatchOperations
UpdateMethodResponseRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateMethodResponseRequest.h:247
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::UpdateMethodResponseRequest::SetPatchOperations
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateMethodResponseRequest.h:229
Aws::APIGateway::Model::UpdateMethodResponseRequest::GetStatusCode
const Aws::String & GetStatusCode() const
Definition: UpdateMethodResponseRequest.h:175
Aws::APIGateway::Model::UpdateMethodResponseRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: UpdateMethodResponseRequest.h:64
Aws::APIGateway::Model::UpdateMethodResponseRequest::WithStatusCode
UpdateMethodResponseRequest & WithStatusCode(const char *value)
Definition: UpdateMethodResponseRequest.h:210
Aws::APIGateway::Model::UpdateMethodResponseRequest::WithStatusCode
UpdateMethodResponseRequest & WithStatusCode(const Aws::String &value)
Definition: UpdateMethodResponseRequest.h:200
Aws::APIGateway::Model::UpdateMethodResponseRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: UpdateMethodResponseRequest.h:49
APIGateway_EXPORTS.h
Aws::APIGateway::Model::UpdateMethodResponseRequest::GetHttpMethod
const Aws::String & GetHttpMethod() const
Definition: UpdateMethodResponseRequest.h:134
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::APIGateway::Model::UpdateMethodResponseRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: UpdateMethodResponseRequest.h:44
Aws::APIGateway::Model::UpdateMethodResponseRequest::GetPatchOperations
const Aws::Vector< PatchOperation > & GetPatchOperations() const
Definition: UpdateMethodResponseRequest.h:217
Aws::APIGateway::Model::UpdateMethodResponseRequest::HttpMethodHasBeenSet
bool HttpMethodHasBeenSet() const
Definition: UpdateMethodResponseRequest.h:139
Aws::APIGateway::Model::UpdateMethodResponseRequest::WithStatusCode
UpdateMethodResponseRequest & WithStatusCode(Aws::String &&value)
Definition: UpdateMethodResponseRequest.h:205
AWSVector.h
Aws::APIGateway::Model::UpdateMethodResponseRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: UpdateMethodResponseRequest.h:92
Aws::APIGateway::Model::UpdateMethodResponseRequest::AddPatchOperations
UpdateMethodResponseRequest & AddPatchOperations(PatchOperation &&value)
Definition: UpdateMethodResponseRequest.h:259
APIGatewayRequest.h
Aws::APIGateway::Model::UpdateMethodResponseRequest::SetHttpMethod
void SetHttpMethod(const Aws::String &value)
Definition: UpdateMethodResponseRequest.h:144
Aws::APIGateway::Model::UpdateMethodResponseRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateMethodResponseRequest.h:36
Aws::APIGateway::Model::UpdateMethodResponseRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::UpdateMethodResponseRequest::SetPatchOperations
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
Definition: UpdateMethodResponseRequest.h:235
Aws::APIGateway::Model::UpdateMethodResponseRequest::WithPatchOperations
UpdateMethodResponseRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
Definition: UpdateMethodResponseRequest.h:241
Aws::APIGateway::Model::UpdateMethodResponseRequest::WithHttpMethod
UpdateMethodResponseRequest & WithHttpMethod(const Aws::String &value)
Definition: UpdateMethodResponseRequest.h:159
Aws::APIGateway::Model::UpdateMethodResponseRequest::SetHttpMethod
void SetHttpMethod(Aws::String &&value)
Definition: UpdateMethodResponseRequest.h:149
Aws::APIGateway::Model::UpdateMethodResponseRequest::WithResourceId
UpdateMethodResponseRequest & WithResourceId(const Aws::String &value)
Definition: UpdateMethodResponseRequest.h:116
AWSString.h
Aws::APIGateway::Model::UpdateMethodResponseRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: UpdateMethodResponseRequest.h:98
Aws::APIGateway::Model::UpdateMethodResponseRequest::SetStatusCode
void SetStatusCode(Aws::String &&value)
Definition: UpdateMethodResponseRequest.h:190
Aws::APIGateway::Model::UpdateMethodResponseRequest::WithResourceId
UpdateMethodResponseRequest & WithResourceId(Aws::String &&value)
Definition: UpdateMethodResponseRequest.h:122
Aws::APIGateway::Model::UpdateMethodResponseRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: UpdateMethodResponseRequest.h:59
Aws
Definition: AccessManagementClient.h:15
PatchOperation.h
Aws::APIGateway::Model::UpdateMethodResponseRequest::WithRestApiId
UpdateMethodResponseRequest & WithRestApiId(const Aws::String &value)
Definition: UpdateMethodResponseRequest.h:69
Aws::APIGateway::Model::UpdateMethodResponseRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: UpdateMethodResponseRequest.h:86
Aws::APIGateway::Model::UpdateMethodResponseRequest::SetStatusCode
void SetStatusCode(const Aws::String &value)
Definition: UpdateMethodResponseRequest.h:185
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::UpdateMethodResponseRequest::PatchOperationsHasBeenSet
bool PatchOperationsHasBeenSet() const
Definition: UpdateMethodResponseRequest.h:223
Aws::APIGateway::Model::UpdateMethodResponseRequest::WithRestApiId
UpdateMethodResponseRequest & WithRestApiId(const char *value)
Definition: UpdateMethodResponseRequest.h:79
Aws::APIGateway::Model::UpdateMethodResponseRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: UpdateMethodResponseRequest.h:54
Aws::APIGateway::Model::UpdateMethodResponseRequest::WithHttpMethod
UpdateMethodResponseRequest & WithHttpMethod(Aws::String &&value)
Definition: UpdateMethodResponseRequest.h:164
Aws::APIGateway::Model::UpdateMethodResponseRequest
Definition: UpdateMethodResponseRequest.h:28
Aws::APIGateway::Model::PatchOperation
Definition: PatchOperation.h:35
Aws::APIGateway::Model::UpdateMethodResponseRequest::SetResourceId
void SetResourceId(const char *value)
Definition: UpdateMethodResponseRequest.h:110
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
Aws::APIGateway::Model::UpdateMethodResponseRequest::WithHttpMethod
UpdateMethodResponseRequest & WithHttpMethod(const char *value)
Definition: UpdateMethodResponseRequest.h:169
Aws::APIGateway::Model::UpdateMethodResponseRequest::WithResourceId
UpdateMethodResponseRequest & WithResourceId(const char *value)
Definition: UpdateMethodResponseRequest.h:128
Aws::APIGateway::Model::UpdateMethodResponseRequest::StatusCodeHasBeenSet
bool StatusCodeHasBeenSet() const
Definition: UpdateMethodResponseRequest.h:180
Aws::APIGateway::Model::UpdateMethodResponseRequest::AddPatchOperations
UpdateMethodResponseRequest & AddPatchOperations(const PatchOperation &value)
Definition: UpdateMethodResponseRequest.h:253
Aws::APIGateway::Model::UpdateMethodResponseRequest::SetHttpMethod
void SetHttpMethod(const char *value)
Definition: UpdateMethodResponseRequest.h:154
Aws::APIGateway::Model::UpdateMethodResponseRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: UpdateMethodResponseRequest.h:104