AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ChangeSetOperation.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/DeleteOperation.h>
9#include <aws/context/model/PutOperation.h>
10#include <aws/context/model/UpdateOperation.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Context {
22namespace Model {
23
38 public:
39 AWS_CONTEXT_API ChangeSetOperation() = default;
40 AWS_CONTEXT_API ChangeSetOperation(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_CONTEXT_API ChangeSetOperation& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
42 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
43
45
48 inline const PutOperation& GetPut() const { return m_put; }
49 inline bool PutHasBeenSet() const { return m_putHasBeenSet; }
50 template <typename PutT = PutOperation>
51 void SetPut(PutT&& value) {
52 m_putHasBeenSet = true;
53 m_put = std::forward<PutT>(value);
54 }
55 template <typename PutT = PutOperation>
56 ChangeSetOperation& WithPut(PutT&& value) {
57 SetPut(std::forward<PutT>(value));
58 return *this;
59 }
61
63
68 inline const UpdateOperation& GetUpdate() const { return m_update; }
69 inline bool UpdateHasBeenSet() const { return m_updateHasBeenSet; }
70 template <typename UpdateT = UpdateOperation>
71 void SetUpdate(UpdateT&& value) {
72 m_updateHasBeenSet = true;
73 m_update = std::forward<UpdateT>(value);
74 }
75 template <typename UpdateT = UpdateOperation>
76 ChangeSetOperation& WithUpdate(UpdateT&& value) {
77 SetUpdate(std::forward<UpdateT>(value));
78 return *this;
79 }
81
83
86 inline const DeleteOperation& GetDelete() const { return m_delete; }
87 inline bool DeleteHasBeenSet() const { return m_deleteHasBeenSet; }
88 template <typename DeleteT = DeleteOperation>
89 void SetDelete(DeleteT&& value) {
90 m_deleteHasBeenSet = true;
91 m_delete = std::forward<DeleteT>(value);
92 }
93 template <typename DeleteT = DeleteOperation>
94 ChangeSetOperation& WithDelete(DeleteT&& value) {
95 SetDelete(std::forward<DeleteT>(value));
96 return *this;
97 }
99 private:
100 PutOperation m_put;
101
102 UpdateOperation m_update;
103
104 DeleteOperation m_delete;
105 bool m_putHasBeenSet = false;
106 bool m_updateHasBeenSet = false;
107 bool m_deleteHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace Context
112} // namespace Aws
AWS_CONTEXT_API ChangeSetOperation(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ChangeSetOperation & WithDelete(DeleteT &&value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CONTEXT_API ChangeSetOperation & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API ChangeSetOperation()=default
const DeleteOperation & GetDelete() const
ChangeSetOperation & WithUpdate(UpdateT &&value)
ChangeSetOperation & WithPut(PutT &&value)
const UpdateOperation & GetUpdate() const