AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BatchStatementRequest.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dynamodb/model/ReturnValuesOnConditionCheckFailure.h>
11#include <aws/dynamodb/model/AttributeValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DynamoDB
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DYNAMODB_API BatchStatementRequest() = default;
40 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetStatement() const { return m_statement; }
48 inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; }
49 template<typename StatementT = Aws::String>
50 void SetStatement(StatementT&& value) { m_statementHasBeenSet = true; m_statement = std::forward<StatementT>(value); }
51 template<typename StatementT = Aws::String>
52 BatchStatementRequest& WithStatement(StatementT&& value) { SetStatement(std::forward<StatementT>(value)); return *this;}
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) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
64 template<typename ParametersT = Aws::Vector<AttributeValue>>
65 BatchStatementRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
66 template<typename ParametersT = AttributeValue>
67 BatchStatementRequest& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
69
71
74 inline bool GetConsistentRead() const { return m_consistentRead; }
75 inline bool ConsistentReadHasBeenSet() const { return m_consistentReadHasBeenSet; }
76 inline void SetConsistentRead(bool value) { m_consistentReadHasBeenSet = true; m_consistentRead = value; }
77 inline BatchStatementRequest& WithConsistentRead(bool value) { SetConsistentRead(value); return *this;}
79
81
88 inline ReturnValuesOnConditionCheckFailure GetReturnValuesOnConditionCheckFailure() const { return m_returnValuesOnConditionCheckFailure; }
89 inline bool ReturnValuesOnConditionCheckFailureHasBeenSet() const { return m_returnValuesOnConditionCheckFailureHasBeenSet; }
90 inline void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = value; }
93 private:
94
95 Aws::String m_statement;
96 bool m_statementHasBeenSet = false;
97
98 Aws::Vector<AttributeValue> m_parameters;
99 bool m_parametersHasBeenSet = false;
100
101 bool m_consistentRead{false};
102 bool m_consistentReadHasBeenSet = false;
103
105 bool m_returnValuesOnConditionCheckFailureHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace DynamoDB
110} // 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