AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateMethodRequest.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 UpdateMethodRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
62 
66  inline UpdateMethodRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
67 
71  inline UpdateMethodRequest& 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 UpdateMethodRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
97 
101  inline UpdateMethodRequest& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
102 
106  inline UpdateMethodRequest& 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 UpdateMethodRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
132 
136  inline UpdateMethodRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(value); return *this;}
137 
141  inline UpdateMethodRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
142 
147  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
148 
153  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
154 
159  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
160 
165  inline UpdateMethodRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
166 
171  inline UpdateMethodRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(value); return *this;}
172 
177  inline UpdateMethodRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
178 
183  inline UpdateMethodRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
184 
185  private:
186  Aws::String m_restApiId;
187  bool m_restApiIdHasBeenSet;
188  Aws::String m_resourceId;
189  bool m_resourceIdHasBeenSet;
190  Aws::String m_httpMethod;
191  bool m_httpMethodHasBeenSet;
192  Aws::Vector<PatchOperation> m_patchOperations;
193  bool m_patchOperationsHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace APIGateway
198 } // namespace Aws
UpdateMethodRequest & WithResourceId(const char *value)
UpdateMethodRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
UpdateMethodRequest & AddPatchOperations(const PatchOperation &value)
UpdateMethodRequest & WithHttpMethod(Aws::String &&value)
UpdateMethodRequest & WithHttpMethod(const char *value)
UpdateMethodRequest & WithRestApiId(const Aws::String &value)
UpdateMethodRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
void SetResourceId(const Aws::String &value)
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
void SetRestApiId(const Aws::String &value)
UpdateMethodRequest & WithRestApiId(Aws::String &&value)
UpdateMethodRequest & WithRestApiId(const char *value)
UpdateMethodRequest & WithResourceId(const Aws::String &value)
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
UpdateMethodRequest & AddPatchOperations(PatchOperation &&value)
UpdateMethodRequest & WithResourceId(Aws::String &&value)
JSON (JavaScript Object Notation).
UpdateMethodRequest & WithHttpMethod(const Aws::String &value)
void SetHttpMethod(const Aws::String &value)