AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 Op GetOp() const { return m_op; }
52 inline bool OpHasBeenSet() const { return m_opHasBeenSet; }
53 inline void SetOp(Op value) { m_opHasBeenSet = true; m_op = value; }
54 inline PatchOperation& WithOp(Op value) { SetOp(value); return *this;}
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) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
72 template<typename PathT = Aws::String>
73 PatchOperation& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
75
77
83 inline const Aws::String& GetValue() const { return m_value; }
84 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
85 template<typename ValueT = Aws::String>
86 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
87 template<typename ValueT = Aws::String>
88 PatchOperation& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
90
92
100 inline const Aws::String& GetFrom() const { return m_from; }
101 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
102 template<typename FromT = Aws::String>
103 void SetFrom(FromT&& value) { m_fromHasBeenSet = true; m_from = std::forward<FromT>(value); }
104 template<typename FromT = Aws::String>
105 PatchOperation& WithFrom(FromT&& value) { SetFrom(std::forward<FromT>(value)); return *this;}
107 private:
108
109 Op m_op{Op::NOT_SET};
110 bool m_opHasBeenSet = false;
111
112 Aws::String m_path;
113 bool m_pathHasBeenSet = false;
114
115 Aws::String m_value;
116 bool m_valueHasBeenSet = false;
117
118 Aws::String m_from;
119 bool m_fromHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace APIGateway
124} // 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