AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PatchOperation.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/Op.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace APIGateway
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_APIGATEWAY_API PatchOperation();
38 AWS_APIGATEWAY_API PatchOperation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APIGATEWAY_API PatchOperation& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const Op& GetOp() const{ return m_op; }
52 inline bool OpHasBeenSet() const { return m_opHasBeenSet; }
53 inline void SetOp(const Op& value) { m_opHasBeenSet = true; m_op = value; }
54 inline void SetOp(Op&& value) { m_opHasBeenSet = true; m_op = std::move(value); }
55 inline PatchOperation& WithOp(const Op& value) { SetOp(value); return *this;}
56 inline PatchOperation& WithOp(Op&& value) { SetOp(std::move(value)); return *this;}
58
60
70 inline const Aws::String& GetPath() const{ return m_path; }
71 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
72 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
73 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
74 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
75 inline PatchOperation& WithPath(const Aws::String& value) { SetPath(value); return *this;}
76 inline PatchOperation& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
77 inline PatchOperation& WithPath(const char* value) { SetPath(value); return *this;}
79
81
87 inline const Aws::String& GetValue() const{ return m_value; }
88 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
89 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
90 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
91 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
92 inline PatchOperation& WithValue(const Aws::String& value) { SetValue(value); return *this;}
93 inline PatchOperation& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
94 inline PatchOperation& WithValue(const char* value) { SetValue(value); return *this;}
96
98
106 inline const Aws::String& GetFrom() const{ return m_from; }
107 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
108 inline void SetFrom(const Aws::String& value) { m_fromHasBeenSet = true; m_from = value; }
109 inline void SetFrom(Aws::String&& value) { m_fromHasBeenSet = true; m_from = std::move(value); }
110 inline void SetFrom(const char* value) { m_fromHasBeenSet = true; m_from.assign(value); }
111 inline PatchOperation& WithFrom(const Aws::String& value) { SetFrom(value); return *this;}
112 inline PatchOperation& WithFrom(Aws::String&& value) { SetFrom(std::move(value)); return *this;}
113 inline PatchOperation& WithFrom(const char* value) { SetFrom(value); return *this;}
115 private:
116
117 Op m_op;
118 bool m_opHasBeenSet = false;
119
120 Aws::String m_path;
121 bool m_pathHasBeenSet = false;
122
123 Aws::String m_value;
124 bool m_valueHasBeenSet = false;
125
126 Aws::String m_from;
127 bool m_fromHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace APIGateway
132} // namespace Aws
PatchOperation & WithPath(Aws::String &&value)
PatchOperation & WithFrom(Aws::String &&value)
PatchOperation & WithFrom(const Aws::String &value)
const Aws::String & GetFrom() const
PatchOperation & WithOp(const Op &value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPath() const
PatchOperation & WithValue(const Aws::String &value)
PatchOperation & WithValue(Aws::String &&value)
PatchOperation & WithPath(const char *value)
void SetValue(Aws::String &&value)
void SetFrom(const Aws::String &value)
AWS_APIGATEWAY_API PatchOperation(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const Aws::String &value)
void SetPath(const Aws::String &value)
PatchOperation & WithValue(const char *value)
AWS_APIGATEWAY_API PatchOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPath(Aws::String &&value)
PatchOperation & WithOp(Op &&value)
PatchOperation & WithPath(const Aws::String &value)
PatchOperation & WithFrom(const char *value)
const Aws::String & GetValue() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue