AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStatement(const Aws::String& value) { m_statementHasBeenSet = true; m_statement = value; }
50 inline void SetStatement(Aws::String&& value) { m_statementHasBeenSet = true; m_statement = std::move(value); }
51 inline void SetStatement(const char* value) { m_statementHasBeenSet = true; m_statement.assign(value); }
52 inline BatchStatementRequest& WithStatement(const Aws::String& value) { SetStatement(value); return *this;}
53 inline BatchStatementRequest& WithStatement(Aws::String&& value) { SetStatement(std::move(value)); return *this;}
54 inline BatchStatementRequest& WithStatement(const char* value) { SetStatement(value); return *this;}
56
58
62 inline const Aws::Vector<AttributeValue>& GetParameters() const{ return m_parameters; }
63 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
64 inline void SetParameters(const Aws::Vector<AttributeValue>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
65 inline void SetParameters(Aws::Vector<AttributeValue>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
67 inline BatchStatementRequest& WithParameters(Aws::Vector<AttributeValue>&& value) { SetParameters(std::move(value)); return *this;}
68 inline BatchStatementRequest& AddParameters(const AttributeValue& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
69 inline BatchStatementRequest& AddParameters(AttributeValue&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
71
73
76 inline bool GetConsistentRead() const{ return m_consistentRead; }
77 inline bool ConsistentReadHasBeenSet() const { return m_consistentReadHasBeenSet; }
78 inline void SetConsistentRead(bool value) { m_consistentReadHasBeenSet = true; m_consistentRead = value; }
79 inline BatchStatementRequest& WithConsistentRead(bool value) { SetConsistentRead(value); return *this;}
81
83
90 inline const ReturnValuesOnConditionCheckFailure& GetReturnValuesOnConditionCheckFailure() const{ return m_returnValuesOnConditionCheckFailure; }
91 inline bool ReturnValuesOnConditionCheckFailureHasBeenSet() const { return m_returnValuesOnConditionCheckFailureHasBeenSet; }
92 inline void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = value; }
93 inline void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure&& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = std::move(value); }
97 private:
98
99 Aws::String m_statement;
100 bool m_statementHasBeenSet = false;
101
102 Aws::Vector<AttributeValue> m_parameters;
103 bool m_parametersHasBeenSet = false;
104
105 bool m_consistentRead;
106 bool m_consistentReadHasBeenSet = false;
107
108 ReturnValuesOnConditionCheckFailure m_returnValuesOnConditionCheckFailure;
109 bool m_returnValuesOnConditionCheckFailureHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace DynamoDB
114} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
BatchStatementRequest & WithReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure &&value)
BatchStatementRequest & WithParameters(const Aws::Vector< AttributeValue > &value)
const ReturnValuesOnConditionCheckFailure & GetReturnValuesOnConditionCheckFailure() const
BatchStatementRequest & WithStatement(const char *value)
AWS_DYNAMODB_API BatchStatementRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchStatementRequest & WithParameters(Aws::Vector< AttributeValue > &&value)
BatchStatementRequest & WithStatement(Aws::String &&value)
BatchStatementRequest & AddParameters(const AttributeValue &value)
void SetParameters(Aws::Vector< AttributeValue > &&value)
void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure &value)
BatchStatementRequest & WithStatement(const Aws::String &value)
BatchStatementRequest & WithConsistentRead(bool value)
void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure &&value)
AWS_DYNAMODB_API BatchStatementRequest(Aws::Utils::Json::JsonView jsonValue)
void SetParameters(const Aws::Vector< AttributeValue > &value)
BatchStatementRequest & WithReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure &value)
const Aws::Vector< AttributeValue > & GetParameters() const
BatchStatementRequest & AddParameters(AttributeValue &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue