AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
TransactWriteItem.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/model/ConditionCheck.h>
9#include <aws/dynamodb/model/Delete.h>
10#include <aws/dynamodb/model/Put.h>
11#include <aws/dynamodb/model/Update.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDB {
23namespace Model {
24
33 public:
34 AWS_DYNAMODB_API TransactWriteItem() = default;
35 AWS_DYNAMODB_API TransactWriteItem(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const ConditionCheck& GetConditionCheck() const { return m_conditionCheck; }
44 inline bool ConditionCheckHasBeenSet() const { return m_conditionCheckHasBeenSet; }
45 template <typename ConditionCheckT = ConditionCheck>
46 void SetConditionCheck(ConditionCheckT&& value) {
47 m_conditionCheckHasBeenSet = true;
48 m_conditionCheck = std::forward<ConditionCheckT>(value);
49 }
50 template <typename ConditionCheckT = ConditionCheck>
51 TransactWriteItem& WithConditionCheck(ConditionCheckT&& value) {
52 SetConditionCheck(std::forward<ConditionCheckT>(value));
53 return *this;
54 }
56
58
61 inline const Put& GetPut() const { return m_put; }
62 inline bool PutHasBeenSet() const { return m_putHasBeenSet; }
63 template <typename PutT = Put>
64 void SetPut(PutT&& value) {
65 m_putHasBeenSet = true;
66 m_put = std::forward<PutT>(value);
67 }
68 template <typename PutT = Put>
69 TransactWriteItem& WithPut(PutT&& value) {
70 SetPut(std::forward<PutT>(value));
71 return *this;
72 }
74
76
79 inline const Delete& GetDelete() const { return m_delete; }
80 inline bool DeleteHasBeenSet() const { return m_deleteHasBeenSet; }
81 template <typename DeleteT = Delete>
82 void SetDelete(DeleteT&& value) {
83 m_deleteHasBeenSet = true;
84 m_delete = std::forward<DeleteT>(value);
85 }
86 template <typename DeleteT = Delete>
87 TransactWriteItem& WithDelete(DeleteT&& value) {
88 SetDelete(std::forward<DeleteT>(value));
89 return *this;
90 }
92
94
97 inline const Update& GetUpdate() const { return m_update; }
98 inline bool UpdateHasBeenSet() const { return m_updateHasBeenSet; }
99 template <typename UpdateT = Update>
100 void SetUpdate(UpdateT&& value) {
101 m_updateHasBeenSet = true;
102 m_update = std::forward<UpdateT>(value);
103 }
104 template <typename UpdateT = Update>
105 TransactWriteItem& WithUpdate(UpdateT&& value) {
106 SetUpdate(std::forward<UpdateT>(value));
107 return *this;
108 }
110 private:
111 ConditionCheck m_conditionCheck;
112
113 Put m_put;
114
115 Delete m_delete;
116
117 Update m_update;
118 bool m_conditionCheckHasBeenSet = false;
119 bool m_putHasBeenSet = false;
120 bool m_deleteHasBeenSet = false;
121 bool m_updateHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace DynamoDB
126} // namespace Aws
const ConditionCheck & GetConditionCheck() const
TransactWriteItem & WithConditionCheck(ConditionCheckT &&value)
TransactWriteItem & WithUpdate(UpdateT &&value)
TransactWriteItem & WithPut(PutT &&value)
AWS_DYNAMODB_API TransactWriteItem(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
TransactWriteItem & WithDelete(DeleteT &&value)
AWS_DYNAMODB_API TransactWriteItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConditionCheck(ConditionCheckT &&value)
AWS_DYNAMODB_API TransactWriteItem()=default
Aws::Utils::Json::JsonValue JsonValue