AWS SDK for C++

AWS SDK for C++ Version 1.11.768

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace APIGateway {
21namespace Model {
22
31 public:
32 AWS_APIGATEWAY_API PatchOperation() = default;
33 AWS_APIGATEWAY_API PatchOperation(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APIGATEWAY_API PatchOperation& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline Op GetOp() const { return m_op; }
46 inline bool OpHasBeenSet() const { return m_opHasBeenSet; }
47 inline void SetOp(Op value) {
48 m_opHasBeenSet = true;
49 m_op = value;
50 }
51 inline PatchOperation& WithOp(Op value) {
52 SetOp(value);
53 return *this;
54 }
56
58
68 inline const Aws::String& GetPath() const { return m_path; }
69 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
70 template <typename PathT = Aws::String>
71 void SetPath(PathT&& value) {
72 m_pathHasBeenSet = true;
73 m_path = std::forward<PathT>(value);
74 }
75 template <typename PathT = Aws::String>
76 PatchOperation& WithPath(PathT&& value) {
77 SetPath(std::forward<PathT>(value));
78 return *this;
79 }
81
83
89 inline const Aws::String& GetValue() const { return m_value; }
90 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
91 template <typename ValueT = Aws::String>
92 void SetValue(ValueT&& value) {
93 m_valueHasBeenSet = true;
94 m_value = std::forward<ValueT>(value);
95 }
96 template <typename ValueT = Aws::String>
97 PatchOperation& WithValue(ValueT&& value) {
98 SetValue(std::forward<ValueT>(value));
99 return *this;
100 }
102
104
112 inline const Aws::String& GetFrom() const { return m_from; }
113 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
114 template <typename FromT = Aws::String>
115 void SetFrom(FromT&& value) {
116 m_fromHasBeenSet = true;
117 m_from = std::forward<FromT>(value);
118 }
119 template <typename FromT = Aws::String>
120 PatchOperation& WithFrom(FromT&& value) {
121 SetFrom(std::forward<FromT>(value));
122 return *this;
123 }
125 private:
126 Op m_op{Op::NOT_SET};
127
128 Aws::String m_path;
129
130 Aws::String m_value;
131
132 Aws::String m_from;
133 bool m_opHasBeenSet = false;
134 bool m_pathHasBeenSet = false;
135 bool m_valueHasBeenSet = false;
136 bool m_fromHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace APIGateway
141} // namespace Aws
const Aws::String & GetFrom() const
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPath() const
PatchOperation & WithOp(Op value)
PatchOperation & WithFrom(FromT &&value)
AWS_APIGATEWAY_API PatchOperation(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAY_API PatchOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
PatchOperation & WithPath(PathT &&value)
PatchOperation & WithValue(ValueT &&value)
AWS_APIGATEWAY_API PatchOperation()=default
const Aws::String & GetValue() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue