AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExecuteTransactionRequest.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/core/utils/memory/stl/AWSString.h>
11#include <aws/dynamodb/model/ReturnConsumedCapacity.h>
12#include <aws/dynamodb/model/ParameterizedStatement.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace DynamoDB
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_DYNAMODB_API ExecuteTransactionRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ExecuteTransaction"; }
35
36 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::Vector<ParameterizedStatement>& GetTransactStatements() const{ return m_transactStatements; }
46 inline bool TransactStatementsHasBeenSet() const { return m_transactStatementsHasBeenSet; }
47 inline void SetTransactStatements(const Aws::Vector<ParameterizedStatement>& value) { m_transactStatementsHasBeenSet = true; m_transactStatements = value; }
48 inline void SetTransactStatements(Aws::Vector<ParameterizedStatement>&& value) { m_transactStatementsHasBeenSet = true; m_transactStatements = std::move(value); }
51 inline ExecuteTransactionRequest& AddTransactStatements(const ParameterizedStatement& value) { m_transactStatementsHasBeenSet = true; m_transactStatements.push_back(value); return *this; }
52 inline ExecuteTransactionRequest& AddTransactStatements(ParameterizedStatement&& value) { m_transactStatementsHasBeenSet = true; m_transactStatements.push_back(std::move(value)); return *this; }
54
56
60 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
61 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
62 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
63 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
64 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
66 inline ExecuteTransactionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
67 inline ExecuteTransactionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
69
71
79 inline const ReturnConsumedCapacity& GetReturnConsumedCapacity() const{ return m_returnConsumedCapacity; }
80 inline bool ReturnConsumedCapacityHasBeenSet() const { return m_returnConsumedCapacityHasBeenSet; }
81 inline void SetReturnConsumedCapacity(const ReturnConsumedCapacity& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = value; }
82 inline void SetReturnConsumedCapacity(ReturnConsumedCapacity&& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = std::move(value); }
86 private:
87
88 Aws::Vector<ParameterizedStatement> m_transactStatements;
89 bool m_transactStatementsHasBeenSet = false;
90
91 Aws::String m_clientRequestToken;
92 bool m_clientRequestTokenHasBeenSet = false;
93
94 ReturnConsumedCapacity m_returnConsumedCapacity;
95 bool m_returnConsumedCapacityHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace DynamoDB
100} // namespace Aws
void SetReturnConsumedCapacity(ReturnConsumedCapacity &&value)
virtual const char * GetServiceRequestName() const override
ExecuteTransactionRequest & AddTransactStatements(const ParameterizedStatement &value)
ExecuteTransactionRequest & WithClientRequestToken(Aws::String &&value)
void SetTransactStatements(const Aws::Vector< ParameterizedStatement > &value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ExecuteTransactionRequest & AddTransactStatements(ParameterizedStatement &&value)
ExecuteTransactionRequest & WithReturnConsumedCapacity(ReturnConsumedCapacity &&value)
ExecuteTransactionRequest & WithTransactStatements(const Aws::Vector< ParameterizedStatement > &value)
const Aws::Vector< ParameterizedStatement > & GetTransactStatements() const
ExecuteTransactionRequest & WithReturnConsumedCapacity(const ReturnConsumedCapacity &value)
const ReturnConsumedCapacity & GetReturnConsumedCapacity() const
ExecuteTransactionRequest & WithClientRequestToken(const char *value)
ExecuteTransactionRequest & WithClientRequestToken(const Aws::String &value)
ExecuteTransactionRequest & WithTransactStatements(Aws::Vector< ParameterizedStatement > &&value)
void SetTransactStatements(Aws::Vector< ParameterizedStatement > &&value)
void SetReturnConsumedCapacity(const ReturnConsumedCapacity &value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
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