AWS SDK for C++  1.8.95
AWS SDK for C++
PatchOperation.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace APIGateway
23 {
24 namespace Model
25 {
26 
35  {
36  public:
39  PatchOperation& operator=(Aws::Utils::Json::JsonView jsonValue);
40  Aws::Utils::Json::JsonValue Jsonize() const;
41 
42 
50  inline const Op& GetOp() const{ return m_op; }
51 
59  inline bool OpHasBeenSet() const { return m_opHasBeenSet; }
60 
68  inline void SetOp(const Op& value) { m_opHasBeenSet = true; m_op = value; }
69 
77  inline void SetOp(Op&& value) { m_opHasBeenSet = true; m_op = std::move(value); }
78 
86  inline PatchOperation& WithOp(const Op& value) { SetOp(value); return *this;}
87 
95  inline PatchOperation& WithOp(Op&& value) { SetOp(std::move(value)); return *this;}
96 
97 
111  inline const Aws::String& GetPath() const{ return m_path; }
112 
126  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
127 
141  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
142 
156  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
157 
171  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
172 
186  inline PatchOperation& WithPath(const Aws::String& value) { SetPath(value); return *this;}
187 
201  inline PatchOperation& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
202 
216  inline PatchOperation& WithPath(const char* value) { SetPath(value); return *this;}
217 
218 
227  inline const Aws::String& GetValue() const{ return m_value; }
228 
237  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
238 
247  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
248 
257  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
258 
267  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
268 
277  inline PatchOperation& WithValue(const Aws::String& value) { SetValue(value); return *this;}
278 
287  inline PatchOperation& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
288 
297  inline PatchOperation& WithValue(const char* value) { SetValue(value); return *this;}
298 
299 
309  inline const Aws::String& GetFrom() const{ return m_from; }
310 
320  inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
321 
331  inline void SetFrom(const Aws::String& value) { m_fromHasBeenSet = true; m_from = value; }
332 
342  inline void SetFrom(Aws::String&& value) { m_fromHasBeenSet = true; m_from = std::move(value); }
343 
353  inline void SetFrom(const char* value) { m_fromHasBeenSet = true; m_from.assign(value); }
354 
364  inline PatchOperation& WithFrom(const Aws::String& value) { SetFrom(value); return *this;}
365 
375  inline PatchOperation& WithFrom(Aws::String&& value) { SetFrom(std::move(value)); return *this;}
376 
386  inline PatchOperation& WithFrom(const char* value) { SetFrom(value); return *this;}
387 
388  private:
389 
390  Op m_op;
391  bool m_opHasBeenSet;
392 
393  Aws::String m_path;
394  bool m_pathHasBeenSet;
395 
396  Aws::String m_value;
397  bool m_valueHasBeenSet;
398 
399  Aws::String m_from;
400  bool m_fromHasBeenSet;
401  };
402 
403 } // namespace Model
404 } // namespace APIGateway
405 } // namespace Aws
PatchOperation & WithFrom(const char *value)
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)
const Aws::String & GetFrom() const
PatchOperation & WithValue(const Aws::String &value)
void SetPath(Aws::String &&value)
const Aws::String & GetPath() const
PatchOperation & WithOp(const Op &value)
void SetFrom(Aws::String &&value)
const Aws::String & GetValue() 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)