AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ParameterizedStatement.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
36 {
37 public:
38 AWS_DYNAMODB_API ParameterizedStatement();
41 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetStatement() const{ return m_statement; }
49 inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; }
50 inline void SetStatement(const Aws::String& value) { m_statementHasBeenSet = true; m_statement = value; }
51 inline void SetStatement(Aws::String&& value) { m_statementHasBeenSet = true; m_statement = std::move(value); }
52 inline void SetStatement(const char* value) { m_statementHasBeenSet = true; m_statement.assign(value); }
53 inline ParameterizedStatement& WithStatement(const Aws::String& value) { SetStatement(value); return *this;}
54 inline ParameterizedStatement& WithStatement(Aws::String&& value) { SetStatement(std::move(value)); return *this;}
55 inline ParameterizedStatement& WithStatement(const char* value) { SetStatement(value); return *this;}
57
59
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 ParameterizedStatement& WithParameters(Aws::Vector<AttributeValue>&& value) { SetParameters(std::move(value)); return *this;}
68 inline ParameterizedStatement& AddParameters(const AttributeValue& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
69 inline ParameterizedStatement& AddParameters(AttributeValue&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
71
73
80 inline const ReturnValuesOnConditionCheckFailure& GetReturnValuesOnConditionCheckFailure() const{ return m_returnValuesOnConditionCheckFailure; }
81 inline bool ReturnValuesOnConditionCheckFailureHasBeenSet() const { return m_returnValuesOnConditionCheckFailureHasBeenSet; }
82 inline void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = value; }
83 inline void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure&& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = std::move(value); }
87 private:
88
89 Aws::String m_statement;
90 bool m_statementHasBeenSet = false;
91
92 Aws::Vector<AttributeValue> m_parameters;
93 bool m_parametersHasBeenSet = false;
94
95 ReturnValuesOnConditionCheckFailure m_returnValuesOnConditionCheckFailure;
96 bool m_returnValuesOnConditionCheckFailureHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace DynamoDB
101} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
ParameterizedStatement & WithStatement(Aws::String &&value)
ParameterizedStatement & WithStatement(const char *value)
ParameterizedStatement & WithParameters(const Aws::Vector< AttributeValue > &value)
ParameterizedStatement & WithReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure &&value)
void SetParameters(const Aws::Vector< AttributeValue > &value)
void SetParameters(Aws::Vector< AttributeValue > &&value)
const Aws::Vector< AttributeValue > & GetParameters() const
AWS_DYNAMODB_API ParameterizedStatement(Aws::Utils::Json::JsonView jsonValue)
const ReturnValuesOnConditionCheckFailure & GetReturnValuesOnConditionCheckFailure() const
ParameterizedStatement & AddParameters(const AttributeValue &value)
ParameterizedStatement & WithStatement(const Aws::String &value)
void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure &value)
ParameterizedStatement & WithParameters(Aws::Vector< AttributeValue > &&value)
AWS_DYNAMODB_API ParameterizedStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
ParameterizedStatement & WithReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure &value)
ParameterizedStatement & AddParameters(AttributeValue &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReturnValuesOnConditionCheckFailure(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