AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExecuteStatementRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/dynamodb/model/ReturnConsumedCapacity.h>
12#include <aws/dynamodb/model/ReturnValuesOnConditionCheckFailure.h>
13#include <aws/dynamodb/model/AttributeValue.h>
14#include <utility>
15
16namespace Aws
17{
18namespace DynamoDB
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_DYNAMODB_API ExecuteStatementRequest();
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 "ExecuteStatement"; }
35
36 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetStatement() const{ return m_statement; }
46 inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; }
47 inline void SetStatement(const Aws::String& value) { m_statementHasBeenSet = true; m_statement = value; }
48 inline void SetStatement(Aws::String&& value) { m_statementHasBeenSet = true; m_statement = std::move(value); }
49 inline void SetStatement(const char* value) { m_statementHasBeenSet = true; m_statement.assign(value); }
50 inline ExecuteStatementRequest& WithStatement(const Aws::String& value) { SetStatement(value); return *this;}
51 inline ExecuteStatementRequest& WithStatement(Aws::String&& value) { SetStatement(std::move(value)); return *this;}
52 inline ExecuteStatementRequest& WithStatement(const char* value) { SetStatement(value); return *this;}
54
56
59 inline const Aws::Vector<AttributeValue>& GetParameters() const{ return m_parameters; }
60 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
61 inline void SetParameters(const Aws::Vector<AttributeValue>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
62 inline void SetParameters(Aws::Vector<AttributeValue>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
64 inline ExecuteStatementRequest& WithParameters(Aws::Vector<AttributeValue>&& value) { SetParameters(std::move(value)); return *this;}
65 inline ExecuteStatementRequest& AddParameters(const AttributeValue& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
66 inline ExecuteStatementRequest& AddParameters(AttributeValue&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
68
70
75 inline bool GetConsistentRead() const{ return m_consistentRead; }
76 inline bool ConsistentReadHasBeenSet() const { return m_consistentReadHasBeenSet; }
77 inline void SetConsistentRead(bool value) { m_consistentReadHasBeenSet = true; m_consistentRead = value; }
78 inline ExecuteStatementRequest& WithConsistentRead(bool value) { SetConsistentRead(value); return *this;}
80
82
86 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
87 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
88 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
89 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
90 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
91 inline ExecuteStatementRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
92 inline ExecuteStatementRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
93 inline ExecuteStatementRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
95
97
98 inline const ReturnConsumedCapacity& GetReturnConsumedCapacity() const{ return m_returnConsumedCapacity; }
99 inline bool ReturnConsumedCapacityHasBeenSet() const { return m_returnConsumedCapacityHasBeenSet; }
100 inline void SetReturnConsumedCapacity(const ReturnConsumedCapacity& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = value; }
101 inline void SetReturnConsumedCapacity(ReturnConsumedCapacity&& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = std::move(value); }
105
107
118 inline int GetLimit() const{ return m_limit; }
119 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
120 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
121 inline ExecuteStatementRequest& WithLimit(int value) { SetLimit(value); return *this;}
123
125
132 inline const ReturnValuesOnConditionCheckFailure& GetReturnValuesOnConditionCheckFailure() const{ return m_returnValuesOnConditionCheckFailure; }
133 inline bool ReturnValuesOnConditionCheckFailureHasBeenSet() const { return m_returnValuesOnConditionCheckFailureHasBeenSet; }
134 inline void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = value; }
135 inline void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure&& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = std::move(value); }
139 private:
140
141 Aws::String m_statement;
142 bool m_statementHasBeenSet = false;
143
144 Aws::Vector<AttributeValue> m_parameters;
145 bool m_parametersHasBeenSet = false;
146
147 bool m_consistentRead;
148 bool m_consistentReadHasBeenSet = false;
149
150 Aws::String m_nextToken;
151 bool m_nextTokenHasBeenSet = false;
152
153 ReturnConsumedCapacity m_returnConsumedCapacity;
154 bool m_returnConsumedCapacityHasBeenSet = false;
155
156 int m_limit;
157 bool m_limitHasBeenSet = false;
158
159 ReturnValuesOnConditionCheckFailure m_returnValuesOnConditionCheckFailure;
160 bool m_returnValuesOnConditionCheckFailureHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace DynamoDB
165} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
ExecuteStatementRequest & WithConsistentRead(bool value)
const Aws::Vector< AttributeValue > & GetParameters() const
ExecuteStatementRequest & WithReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure &&value)
ExecuteStatementRequest & WithNextToken(const Aws::String &value)
const ReturnValuesOnConditionCheckFailure & GetReturnValuesOnConditionCheckFailure() const
void SetParameters(Aws::Vector< AttributeValue > &&value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
ExecuteStatementRequest & WithReturnConsumedCapacity(ReturnConsumedCapacity &&value)
ExecuteStatementRequest & WithNextToken(const char *value)
ExecuteStatementRequest & AddParameters(const AttributeValue &value)
ExecuteStatementRequest & WithReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure &value)
ExecuteStatementRequest & WithStatement(const Aws::String &value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ExecuteStatementRequest & WithReturnConsumedCapacity(const ReturnConsumedCapacity &value)
ExecuteStatementRequest & WithLimit(int value)
void SetReturnConsumedCapacity(const ReturnConsumedCapacity &value)
ExecuteStatementRequest & WithStatement(Aws::String &&value)
ExecuteStatementRequest & WithParameters(Aws::Vector< AttributeValue > &&value)
void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure &value)
ExecuteStatementRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetReturnConsumedCapacity(ReturnConsumedCapacity &&value)
void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure &&value)
ExecuteStatementRequest & AddParameters(AttributeValue &&value)
ExecuteStatementRequest & WithStatement(const char *value)
ExecuteStatementRequest & WithParameters(const Aws::Vector< AttributeValue > &value)
const ReturnConsumedCapacity & GetReturnConsumedCapacity() const
void SetParameters(const Aws::Vector< AttributeValue > &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