AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename StatementT = Aws::String>
48 void SetStatement(StatementT&& value) { m_statementHasBeenSet = true; m_statement = std::forward<StatementT>(value); }
49 template<typename StatementT = Aws::String>
50 ExecuteStatementRequest& WithStatement(StatementT&& value) { SetStatement(std::forward<StatementT>(value)); return *this;}
52
54
57 inline const Aws::Vector<AttributeValue>& GetParameters() const { return m_parameters; }
58 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
59 template<typename ParametersT = Aws::Vector<AttributeValue>>
60 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
61 template<typename ParametersT = Aws::Vector<AttributeValue>>
62 ExecuteStatementRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
63 template<typename ParametersT = AttributeValue>
64 ExecuteStatementRequest& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
66
68
73 inline bool GetConsistentRead() const { return m_consistentRead; }
74 inline bool ConsistentReadHasBeenSet() const { return m_consistentReadHasBeenSet; }
75 inline void SetConsistentRead(bool value) { m_consistentReadHasBeenSet = true; m_consistentRead = value; }
76 inline ExecuteStatementRequest& WithConsistentRead(bool value) { SetConsistentRead(value); return *this;}
78
80
84 inline const Aws::String& GetNextToken() const { return m_nextToken; }
85 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
86 template<typename NextTokenT = Aws::String>
87 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
88 template<typename NextTokenT = Aws::String>
89 ExecuteStatementRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
91
93
94 inline ReturnConsumedCapacity GetReturnConsumedCapacity() const { return m_returnConsumedCapacity; }
95 inline bool ReturnConsumedCapacityHasBeenSet() const { return m_returnConsumedCapacityHasBeenSet; }
96 inline void SetReturnConsumedCapacity(ReturnConsumedCapacity value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = value; }
99
101
112 inline int GetLimit() const { return m_limit; }
113 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
114 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
115 inline ExecuteStatementRequest& WithLimit(int value) { SetLimit(value); return *this;}
117
119
126 inline ReturnValuesOnConditionCheckFailure GetReturnValuesOnConditionCheckFailure() const { return m_returnValuesOnConditionCheckFailure; }
127 inline bool ReturnValuesOnConditionCheckFailureHasBeenSet() const { return m_returnValuesOnConditionCheckFailureHasBeenSet; }
128 inline void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = value; }
131 private:
132
133 Aws::String m_statement;
134 bool m_statementHasBeenSet = false;
135
136 Aws::Vector<AttributeValue> m_parameters;
137 bool m_parametersHasBeenSet = false;
138
139 bool m_consistentRead{false};
140 bool m_consistentReadHasBeenSet = false;
141
142 Aws::String m_nextToken;
143 bool m_nextTokenHasBeenSet = false;
144
146 bool m_returnConsumedCapacityHasBeenSet = false;
147
148 int m_limit{0};
149 bool m_limitHasBeenSet = false;
150
152 bool m_returnValuesOnConditionCheckFailureHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace DynamoDB
157} // namespace Aws
void SetReturnConsumedCapacity(ReturnConsumedCapacity value)
ExecuteStatementRequest & WithConsistentRead(bool value)
const Aws::Vector< AttributeValue > & GetParameters() const
ReturnConsumedCapacity GetReturnConsumedCapacity() 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