AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransactWriteItemsRequest.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/DynamoDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dynamodb/model/ReturnConsumedCapacity.h>
11#include <aws/dynamodb/model/ReturnItemCollectionMetrics.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/dynamodb/model/TransactWriteItem.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace DynamoDB
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_DYNAMODB_API TransactWriteItemsRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "TransactWriteItems"; }
36
37 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
38
40
41
43
50 inline const Aws::Vector<TransactWriteItem>& GetTransactItems() const{ return m_transactItems; }
51 inline bool TransactItemsHasBeenSet() const { return m_transactItemsHasBeenSet; }
52 inline void SetTransactItems(const Aws::Vector<TransactWriteItem>& value) { m_transactItemsHasBeenSet = true; m_transactItems = value; }
53 inline void SetTransactItems(Aws::Vector<TransactWriteItem>&& value) { m_transactItemsHasBeenSet = true; m_transactItems = std::move(value); }
56 inline TransactWriteItemsRequest& AddTransactItems(const TransactWriteItem& value) { m_transactItemsHasBeenSet = true; m_transactItems.push_back(value); return *this; }
57 inline TransactWriteItemsRequest& AddTransactItems(TransactWriteItem&& value) { m_transactItemsHasBeenSet = true; m_transactItems.push_back(std::move(value)); return *this; }
59
61
62 inline const ReturnConsumedCapacity& GetReturnConsumedCapacity() const{ return m_returnConsumedCapacity; }
63 inline bool ReturnConsumedCapacityHasBeenSet() const { return m_returnConsumedCapacityHasBeenSet; }
64 inline void SetReturnConsumedCapacity(const ReturnConsumedCapacity& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = value; }
65 inline void SetReturnConsumedCapacity(ReturnConsumedCapacity&& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = std::move(value); }
69
71
77 inline const ReturnItemCollectionMetrics& GetReturnItemCollectionMetrics() const{ return m_returnItemCollectionMetrics; }
78 inline bool ReturnItemCollectionMetricsHasBeenSet() const { return m_returnItemCollectionMetricsHasBeenSet; }
79 inline void SetReturnItemCollectionMetrics(const ReturnItemCollectionMetrics& value) { m_returnItemCollectionMetricsHasBeenSet = true; m_returnItemCollectionMetrics = value; }
80 inline void SetReturnItemCollectionMetrics(ReturnItemCollectionMetrics&& value) { m_returnItemCollectionMetricsHasBeenSet = true; m_returnItemCollectionMetrics = std::move(value); }
84
86
104 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
105 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
106 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
107 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
108 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
110 inline TransactWriteItemsRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
111 inline TransactWriteItemsRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
113 private:
114
115 Aws::Vector<TransactWriteItem> m_transactItems;
116 bool m_transactItemsHasBeenSet = false;
117
118 ReturnConsumedCapacity m_returnConsumedCapacity;
119 bool m_returnConsumedCapacityHasBeenSet = false;
120
121 ReturnItemCollectionMetrics m_returnItemCollectionMetrics;
122 bool m_returnItemCollectionMetricsHasBeenSet = false;
123
124 Aws::String m_clientRequestToken;
125 bool m_clientRequestTokenHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace DynamoDB
130} // namespace Aws
const ReturnItemCollectionMetrics & GetReturnItemCollectionMetrics() const
void SetTransactItems(const Aws::Vector< TransactWriteItem > &value)
TransactWriteItemsRequest & WithReturnConsumedCapacity(const ReturnConsumedCapacity &value)
TransactWriteItemsRequest & WithClientRequestToken(Aws::String &&value)
TransactWriteItemsRequest & WithClientRequestToken(const char *value)
TransactWriteItemsRequest & AddTransactItems(TransactWriteItem &&value)
TransactWriteItemsRequest & WithReturnItemCollectionMetrics(const ReturnItemCollectionMetrics &value)
void SetReturnConsumedCapacity(ReturnConsumedCapacity &&value)
TransactWriteItemsRequest & WithClientRequestToken(const Aws::String &value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetReturnItemCollectionMetrics(ReturnItemCollectionMetrics &&value)
TransactWriteItemsRequest & WithTransactItems(Aws::Vector< TransactWriteItem > &&value)
virtual const char * GetServiceRequestName() const override
AWS_DYNAMODB_API Aws::String SerializePayload() const override
void SetTransactItems(Aws::Vector< TransactWriteItem > &&value)
const ReturnConsumedCapacity & GetReturnConsumedCapacity() const
void SetReturnConsumedCapacity(const ReturnConsumedCapacity &value)
TransactWriteItemsRequest & WithReturnConsumedCapacity(ReturnConsumedCapacity &&value)
TransactWriteItemsRequest & WithTransactItems(const Aws::Vector< TransactWriteItem > &value)
const Aws::Vector< TransactWriteItem > & GetTransactItems() const
TransactWriteItemsRequest & WithReturnItemCollectionMetrics(ReturnItemCollectionMetrics &&value)
TransactWriteItemsRequest & AddTransactItems(const TransactWriteItem &value)
void SetReturnItemCollectionMetrics(const ReturnItemCollectionMetrics &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector