AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ExecuteStatementRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dynamodb/DynamoDBRequest.h>
10#include <aws/dynamodb/DynamoDB_EXPORTS.h>
11#include <aws/dynamodb/model/AttributeValue.h>
12#include <aws/dynamodb/model/ReturnConsumedCapacity.h>
13#include <aws/dynamodb/model/ReturnValuesOnConditionCheckFailure.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DynamoDB {
19namespace Model {
20
24 public:
25 AWS_DYNAMODB_API ExecuteStatementRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ExecuteStatement"; }
32
33 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetStatement() const { return m_statement; }
42 inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; }
43 template <typename StatementT = Aws::String>
44 void SetStatement(StatementT&& value) {
45 m_statementHasBeenSet = true;
46 m_statement = std::forward<StatementT>(value);
47 }
48 template <typename StatementT = Aws::String>
50 SetStatement(std::forward<StatementT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<AttributeValue>& GetParameters() const { return m_parameters; }
60 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
61 template <typename ParametersT = Aws::Vector<AttributeValue>>
62 void SetParameters(ParametersT&& value) {
63 m_parametersHasBeenSet = true;
64 m_parameters = std::forward<ParametersT>(value);
65 }
66 template <typename ParametersT = Aws::Vector<AttributeValue>>
68 SetParameters(std::forward<ParametersT>(value));
69 return *this;
70 }
71 template <typename ParametersT = AttributeValue>
72 ExecuteStatementRequest& AddParameters(ParametersT&& value) {
73 m_parametersHasBeenSet = true;
74 m_parameters.emplace_back(std::forward<ParametersT>(value));
75 return *this;
76 }
78
80
85 inline bool GetConsistentRead() const { return m_consistentRead; }
86 inline bool ConsistentReadHasBeenSet() const { return m_consistentReadHasBeenSet; }
87 inline void SetConsistentRead(bool value) {
88 m_consistentReadHasBeenSet = true;
89 m_consistentRead = value;
90 }
92 SetConsistentRead(value);
93 return *this;
94 }
96
98
102 inline const Aws::String& GetNextToken() const { return m_nextToken; }
103 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
104 template <typename NextTokenT = Aws::String>
105 void SetNextToken(NextTokenT&& value) {
106 m_nextTokenHasBeenSet = true;
107 m_nextToken = std::forward<NextTokenT>(value);
108 }
109 template <typename NextTokenT = Aws::String>
111 SetNextToken(std::forward<NextTokenT>(value));
112 return *this;
113 }
115
117
118 inline ReturnConsumedCapacity GetReturnConsumedCapacity() const { return m_returnConsumedCapacity; }
119 inline bool ReturnConsumedCapacityHasBeenSet() const { return m_returnConsumedCapacityHasBeenSet; }
121 m_returnConsumedCapacityHasBeenSet = true;
122 m_returnConsumedCapacity = value;
123 }
126 return *this;
127 }
129
131
142 inline int GetLimit() const { return m_limit; }
143 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
144 inline void SetLimit(int value) {
145 m_limitHasBeenSet = true;
146 m_limit = value;
147 }
149 SetLimit(value);
150 return *this;
151 }
153
155
163 return m_returnValuesOnConditionCheckFailure;
164 }
165 inline bool ReturnValuesOnConditionCheckFailureHasBeenSet() const { return m_returnValuesOnConditionCheckFailureHasBeenSet; }
167 m_returnValuesOnConditionCheckFailureHasBeenSet = true;
168 m_returnValuesOnConditionCheckFailure = value;
169 }
172 return *this;
173 }
175 private:
176 Aws::String m_statement;
177
178 Aws::Vector<AttributeValue> m_parameters;
179
180 bool m_consistentRead{false};
181
182 Aws::String m_nextToken;
183
185
186 int m_limit{0};
187
189 bool m_statementHasBeenSet = false;
190 bool m_parametersHasBeenSet = false;
191 bool m_consistentReadHasBeenSet = false;
192 bool m_nextTokenHasBeenSet = false;
193 bool m_returnConsumedCapacityHasBeenSet = false;
194 bool m_limitHasBeenSet = false;
195 bool m_returnValuesOnConditionCheckFailureHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace DynamoDB
200} // namespace Aws
void SetReturnConsumedCapacity(ReturnConsumedCapacity value)
ExecuteStatementRequest & WithConsistentRead(bool value)
const Aws::Vector< AttributeValue > & GetParameters() const
AWS_DYNAMODB_API Aws::String SerializePayload() const override
ExecuteStatementRequest & WithParameters(ParametersT &&value)
ReturnValuesOnConditionCheckFailure GetReturnValuesOnConditionCheckFailure() const
ExecuteStatementRequest & WithReturnConsumedCapacity(ReturnConsumedCapacity value)
ExecuteStatementRequest & AddParameters(ParametersT &&value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ExecuteStatementRequest & WithNextToken(NextTokenT &&value)
ExecuteStatementRequest & WithLimit(int value)
ExecuteStatementRequest & WithReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure value)
ExecuteStatementRequest & WithStatement(StatementT &&value)
virtual const char * GetServiceRequestName() const override
void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure value)
AWS_DYNAMODB_API ExecuteStatementRequest()=default
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