AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateResourceRequest.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 UpdateResourceRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
62 
66  inline UpdateResourceRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
67 
71  inline UpdateResourceRequest& 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 UpdateResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
97 
101  inline UpdateResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
102 
106  inline UpdateResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
107 
112  inline const Aws::Vector<PatchOperation>& GetPatchOperations() const{ return m_patchOperations; }
113 
118  inline void SetPatchOperations(const Aws::Vector<PatchOperation>& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
119 
124  inline void SetPatchOperations(Aws::Vector<PatchOperation>&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations = value; }
125 
130  inline UpdateResourceRequest& WithPatchOperations(const Aws::Vector<PatchOperation>& value) { SetPatchOperations(value); return *this;}
131 
136  inline UpdateResourceRequest& WithPatchOperations(Aws::Vector<PatchOperation>&& value) { SetPatchOperations(value); return *this;}
137 
142  inline UpdateResourceRequest& AddPatchOperations(const PatchOperation& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
143 
148  inline UpdateResourceRequest& AddPatchOperations(PatchOperation&& value) { m_patchOperationsHasBeenSet = true; m_patchOperations.push_back(value); return *this; }
149 
150  private:
151  Aws::String m_restApiId;
152  bool m_restApiIdHasBeenSet;
153  Aws::String m_resourceId;
154  bool m_resourceIdHasBeenSet;
155  Aws::Vector<PatchOperation> m_patchOperations;
156  bool m_patchOperationsHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace APIGateway
161 } // namespace Aws
UpdateResourceRequest & WithRestApiId(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
UpdateResourceRequest & AddPatchOperations(const PatchOperation &value)
void SetPatchOperations(const Aws::Vector< PatchOperation > &value)
void SetPatchOperations(Aws::Vector< PatchOperation > &&value)
UpdateResourceRequest & AddPatchOperations(PatchOperation &&value)
UpdateResourceRequest & WithRestApiId(Aws::String &&value)
UpdateResourceRequest & WithPatchOperations(Aws::Vector< PatchOperation > &&value)
UpdateResourceRequest & WithResourceId(const char *value)
UpdateResourceRequest & WithPatchOperations(const Aws::Vector< PatchOperation > &value)
UpdateResourceRequest & WithResourceId(Aws::String &&value)
UpdateResourceRequest & WithResourceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
UpdateResourceRequest & WithRestApiId(const char *value)
const Aws::Vector< PatchOperation > & GetPatchOperations() const
JSON (JavaScript Object Notation).