AWS SDK for C++  0.12.9
AWS SDK for C++
PatchOperation.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace APIGateway
30 {
31 namespace Model
32 {
33 
40  {
41  public:
44  PatchOperation& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
52  inline const Op& GetOp() const{ return m_op; }
53 
59  inline void SetOp(const Op& value) { m_opHasBeenSet = true; m_op = value; }
60 
66  inline void SetOp(Op&& value) { m_opHasBeenSet = true; m_op = value; }
67 
73  inline PatchOperation& WithOp(const Op& value) { SetOp(value); return *this;}
74 
80  inline PatchOperation& WithOp(Op&& value) { SetOp(value); return *this;}
81 
87  inline const Aws::String& GetPath() const{ return m_path; }
88 
94  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
95 
101  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = value; }
102 
108  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
109 
115  inline PatchOperation& WithPath(const Aws::String& value) { SetPath(value); return *this;}
116 
122  inline PatchOperation& WithPath(Aws::String&& value) { SetPath(value); return *this;}
123 
129  inline PatchOperation& WithPath(const char* value) { SetPath(value); return *this;}
130 
134  inline const Aws::String& GetValue() const{ return m_value; }
135 
139  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
140 
144  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = value; }
145 
149  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
150 
154  inline PatchOperation& WithValue(const Aws::String& value) { SetValue(value); return *this;}
155 
159  inline PatchOperation& WithValue(Aws::String&& value) { SetValue(value); return *this;}
160 
164  inline PatchOperation& WithValue(const char* value) { SetValue(value); return *this;}
165 
171  inline const Aws::String& GetFrom() const{ return m_from; }
172 
178  inline void SetFrom(const Aws::String& value) { m_fromHasBeenSet = true; m_from = value; }
179 
185  inline void SetFrom(Aws::String&& value) { m_fromHasBeenSet = true; m_from = value; }
186 
192  inline void SetFrom(const char* value) { m_fromHasBeenSet = true; m_from.assign(value); }
193 
199  inline PatchOperation& WithFrom(const Aws::String& value) { SetFrom(value); return *this;}
200 
206  inline PatchOperation& WithFrom(Aws::String&& value) { SetFrom(value); return *this;}
207 
213  inline PatchOperation& WithFrom(const char* value) { SetFrom(value); return *this;}
214 
215  private:
216  Op m_op;
217  bool m_opHasBeenSet;
218  Aws::String m_path;
219  bool m_pathHasBeenSet;
220  Aws::String m_value;
221  bool m_valueHasBeenSet;
222  Aws::String m_from;
223  bool m_fromHasBeenSet;
224  };
225 
226 } // namespace Model
227 } // namespace APIGateway
228 } // namespace Aws
const Aws::String & GetValue() const
PatchOperation & WithFrom(const char *value)
const Aws::String & GetPath() const
void SetValue(const Aws::String &value)
void SetPath(const Aws::String &value)
void SetFrom(const Aws::String &value)
PatchOperation & WithValue(const char *value)
PatchOperation & WithPath(const char *value)
void SetValue(Aws::String &&value)
PatchOperation & WithValue(const Aws::String &value)
void SetPath(Aws::String &&value)
PatchOperation & WithOp(const Op &value)
void SetFrom(Aws::String &&value)
const Aws::String & GetFrom() const
PatchOperation & WithFrom(const Aws::String &value)
PatchOperation & WithOp(Op &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PatchOperation & WithValue(Aws::String &&value)
PatchOperation & WithPath(const Aws::String &value)
#define AWS_APIGATEWAY_API
PatchOperation & WithFrom(Aws::String &&value)
PatchOperation & WithPath(Aws::String &&value)
JSON (JavaScript Object Notation).