AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConditionCheck(const ConditionCheck& value) { m_conditionCheckHasBeenSet = true; m_conditionCheck = value; }
52 inline void SetConditionCheck(ConditionCheck&& value) { m_conditionCheckHasBeenSet = true; m_conditionCheck = std::move(value); }
53 inline TransactWriteItem& WithConditionCheck(const ConditionCheck& value) { SetConditionCheck(value); return *this;}
54 inline TransactWriteItem& WithConditionCheck(ConditionCheck&& value) { SetConditionCheck(std::move(value)); return *this;}
56
58
61 inline const Put& GetPut() const{ return m_put; }
62 inline bool PutHasBeenSet() const { return m_putHasBeenSet; }
63 inline void SetPut(const Put& value) { m_putHasBeenSet = true; m_put = value; }
64 inline void SetPut(Put&& value) { m_putHasBeenSet = true; m_put = std::move(value); }
65 inline TransactWriteItem& WithPut(const Put& value) { SetPut(value); return *this;}
66 inline TransactWriteItem& WithPut(Put&& value) { SetPut(std::move(value)); return *this;}
68
70
73 inline const Delete& GetDelete() const{ return m_delete; }
74 inline bool DeleteHasBeenSet() const { return m_deleteHasBeenSet; }
75 inline void SetDelete(const Delete& value) { m_deleteHasBeenSet = true; m_delete = value; }
76 inline void SetDelete(Delete&& value) { m_deleteHasBeenSet = true; m_delete = std::move(value); }
77 inline TransactWriteItem& WithDelete(const Delete& value) { SetDelete(value); return *this;}
78 inline TransactWriteItem& WithDelete(Delete&& value) { SetDelete(std::move(value)); return *this;}
80
82
85 inline const Update& GetUpdate() const{ return m_update; }
86 inline bool UpdateHasBeenSet() const { return m_updateHasBeenSet; }
87 inline void SetUpdate(const Update& value) { m_updateHasBeenSet = true; m_update = value; }
88 inline void SetUpdate(Update&& value) { m_updateHasBeenSet = true; m_update = std::move(value); }
89 inline TransactWriteItem& WithUpdate(const Update& value) { SetUpdate(value); return *this;}
90 inline TransactWriteItem& WithUpdate(Update&& value) { SetUpdate(std::move(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 & WithPut(Put &&value)
TransactWriteItem & WithDelete(const Delete &value)
TransactWriteItem & WithUpdate(Update &&value)
TransactWriteItem & WithDelete(Delete &&value)
void SetConditionCheck(const ConditionCheck &value)
TransactWriteItem & WithConditionCheck(const ConditionCheck &value)
AWS_DYNAMODB_API TransactWriteItem(Aws::Utils::Json::JsonView jsonValue)
TransactWriteItem & WithPut(const Put &value)
TransactWriteItem & WithConditionCheck(ConditionCheck &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API TransactWriteItem & operator=(Aws::Utils::Json::JsonView jsonValue)
TransactWriteItem & WithUpdate(const Update &value)
void SetConditionCheck(ConditionCheck &&value)
Aws::Utils::Json::JsonValue JsonValue