AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
BatchStatementRequest.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/DynamoDB_EXPORTS.h>
10#include <aws/dynamodb/model/AttributeValue.h>
11#include <aws/dynamodb/model/ReturnValuesOnConditionCheckFailure.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDB {
23namespace Model {
24
31 public:
32 AWS_DYNAMODB_API BatchStatementRequest() = default;
35 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
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>
49 BatchStatementRequest& WithStatement(StatementT&& value) {
50 SetStatement(std::forward<StatementT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<AttributeValue>& GetParameters() const { return m_parameters; }
61 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
62 template <typename ParametersT = Aws::Vector<AttributeValue>>
63 void SetParameters(ParametersT&& value) {
64 m_parametersHasBeenSet = true;
65 m_parameters = std::forward<ParametersT>(value);
66 }
67 template <typename ParametersT = Aws::Vector<AttributeValue>>
68 BatchStatementRequest& WithParameters(ParametersT&& value) {
69 SetParameters(std::forward<ParametersT>(value));
70 return *this;
71 }
72 template <typename ParametersT = AttributeValue>
73 BatchStatementRequest& AddParameters(ParametersT&& value) {
74 m_parametersHasBeenSet = true;
75 m_parameters.emplace_back(std::forward<ParametersT>(value));
76 return *this;
77 }
79
81
84 inline bool GetConsistentRead() const { return m_consistentRead; }
85 inline bool ConsistentReadHasBeenSet() const { return m_consistentReadHasBeenSet; }
86 inline void SetConsistentRead(bool value) {
87 m_consistentReadHasBeenSet = true;
88 m_consistentRead = value;
89 }
91 SetConsistentRead(value);
92 return *this;
93 }
95
97
105 return m_returnValuesOnConditionCheckFailure;
106 }
107 inline bool ReturnValuesOnConditionCheckFailureHasBeenSet() const { return m_returnValuesOnConditionCheckFailureHasBeenSet; }
109 m_returnValuesOnConditionCheckFailureHasBeenSet = true;
110 m_returnValuesOnConditionCheckFailure = value;
111 }
114 return *this;
115 }
117 private:
118 Aws::String m_statement;
119
120 Aws::Vector<AttributeValue> m_parameters;
121
122 bool m_consistentRead{false};
123
125 bool m_statementHasBeenSet = false;
126 bool m_parametersHasBeenSet = false;
127 bool m_consistentReadHasBeenSet = false;
128 bool m_returnValuesOnConditionCheckFailureHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace DynamoDB
133} // namespace Aws
void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure value)
AWS_DYNAMODB_API BatchStatementRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchStatementRequest & WithStatement(StatementT &&value)
BatchStatementRequest & WithParameters(ParametersT &&value)
BatchStatementRequest & WithConsistentRead(bool value)
AWS_DYNAMODB_API BatchStatementRequest(Aws::Utils::Json::JsonView jsonValue)
ReturnValuesOnConditionCheckFailure GetReturnValuesOnConditionCheckFailure() const
BatchStatementRequest & AddParameters(ParametersT &&value)
AWS_DYNAMODB_API BatchStatementRequest()=default
const Aws::Vector< AttributeValue > & GetParameters() const
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
BatchStatementRequest & WithReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue