AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/Put.h>
10#include <aws/dynamodb/model/Delete.h>
11#include <aws/dynamodb/model/Update.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DynamoDB
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_DYNAMODB_API TransactWriteItem() = default;
40 AWS_DYNAMODB_API TransactWriteItem(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const ConditionCheck& GetConditionCheck() const { return m_conditionCheck; }
50 inline bool ConditionCheckHasBeenSet() const { return m_conditionCheckHasBeenSet; }
51 template<typename ConditionCheckT = ConditionCheck>
52 void SetConditionCheck(ConditionCheckT&& value) { m_conditionCheckHasBeenSet = true; m_conditionCheck = std::forward<ConditionCheckT>(value); }
53 template<typename ConditionCheckT = ConditionCheck>
54 TransactWriteItem& WithConditionCheck(ConditionCheckT&& value) { SetConditionCheck(std::forward<ConditionCheckT>(value)); return *this;}
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) { m_putHasBeenSet = true; m_put = std::forward<PutT>(value); }
65 template<typename PutT = Put>
66 TransactWriteItem& WithPut(PutT&& value) { SetPut(std::forward<PutT>(value)); return *this;}
68
70
73 inline const Delete& GetDelete() const { return m_delete; }
74 inline bool DeleteHasBeenSet() const { return m_deleteHasBeenSet; }
75 template<typename DeleteT = Delete>
76 void SetDelete(DeleteT&& value) { m_deleteHasBeenSet = true; m_delete = std::forward<DeleteT>(value); }
77 template<typename DeleteT = Delete>
78 TransactWriteItem& WithDelete(DeleteT&& value) { SetDelete(std::forward<DeleteT>(value)); return *this;}
80
82
85 inline const Update& GetUpdate() const { return m_update; }
86 inline bool UpdateHasBeenSet() const { return m_updateHasBeenSet; }
87 template<typename UpdateT = Update>
88 void SetUpdate(UpdateT&& value) { m_updateHasBeenSet = true; m_update = std::forward<UpdateT>(value); }
89 template<typename UpdateT = Update>
90 TransactWriteItem& WithUpdate(UpdateT&& value) { SetUpdate(std::forward<UpdateT>(value)); return *this;}
92 private:
93
94 ConditionCheck m_conditionCheck;
95 bool m_conditionCheckHasBeenSet = false;
96
97 Put m_put;
98 bool m_putHasBeenSet = false;
99
100 Delete m_delete;
101 bool m_deleteHasBeenSet = false;
102
103 Update m_update;
104 bool m_updateHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace DynamoDB
109} // 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