AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateMethodResponseRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace APIGateway
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
42 
46  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
47 
51  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
52 
56  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
57 
61  inline UpdateMethodResponseRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
62 
66  inline UpdateMethodResponseRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
67 
71  inline UpdateMethodResponseRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
72 
76  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
77 
81  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
82 
86  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
87 
91  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
92 
96  inline UpdateMethodResponseRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
97 
101  inline UpdateMethodResponseRequest& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
102 
106  inline UpdateMethodResponseRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
107 
111  inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
112 
116  inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
117 
121  inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
122 
126  inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
127 
131  inline UpdateMethodResponseRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
132 
136  inline UpdateMethodResponseRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(value); return *this;}
137 
141  inline UpdateMethodResponseRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
142 
146  inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
147 
151  inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
152 
156  inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
157 
161  inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
162 
166  inline UpdateMethodResponseRequest& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
167 
171  inline UpdateMethodResponseRequest& WithStatusCode(Aws::String&& value) { SetStatusCode(value); return *this;}
172 
176  inline UpdateMethodResponseRequest& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
177 
182  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
183 
188  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
189 
194  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
195 
200  inline UpdateMethodResponseRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
201 
206  inline UpdateMethodResponseRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(value); return *this;}
207 
212  inline UpdateMethodResponseRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
213 
218  inline UpdateMethodResponseRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
219 
220  private:
221  Aws::String m_restApiId;
222  bool m_restApiIdHasBeenSet;
223  Aws::String m_resourceId;
224  bool m_resourceIdHasBeenSet;
225  Aws::String m_httpMethod;
226  bool m_httpMethodHasBeenSet;
227  Aws::String m_statusCode;
228  bool m_statusCodeHasBeenSet;
229  Aws::Vector<PatchOperation> m_patchOperations;
230  bool m_patchOperationsHasBeenSet;
231  };
232 
233 } // namespace Model
234 } // namespace APIGateway
235 } // namespace Aws
UpdateMethodResponseRequest & WithRestApiId(Aws::String &&value)
UpdateMethodResponseRequest & WithHttpMethod(const char *value)
UpdateMethodResponseRequest & WithHttpMethod(const Aws::String &value)
UpdateMethodResponseRequest & AddPatchOperations(const PatchOperation &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
UpdateMethodResponseRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
UpdateMethodResponseRequest & AddPatchOperations(PatchOperation &&value)
UpdateMethodResponseRequest & WithResourceId(Aws::String &&value)
UpdateMethodResponseRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
UpdateMethodResponseRequest & WithResourceId(const char *value)
UpdateMethodResponseRequest & WithRestApiId(const Aws::String &value)
UpdateMethodResponseRequest & WithStatusCode(const Aws::String &value)
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
UpdateMethodResponseRequest & WithResourceId(const Aws::String &value)
UpdateMethodResponseRequest & WithStatusCode(Aws::String &&value)
UpdateMethodResponseRequest & WithHttpMethod(Aws::String &&value)
UpdateMethodResponseRequest & WithRestApiId(const char *value)
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
UpdateMethodResponseRequest & WithStatusCode(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
const Aws::Vector< PatchOperation > & GetPatchOperations() const
JSON (JavaScript Object Notation).