AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ParameterizedStatement.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
32 public:
33 AWS_DYNAMODB_API ParameterizedStatement() = default;
36 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetStatement() const { return m_statement; }
43 inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; }
44 template <typename StatementT = Aws::String>
45 void SetStatement(StatementT&& value) {
46 m_statementHasBeenSet = true;
47 m_statement = std::forward<StatementT>(value);
48 }
49 template <typename StatementT = Aws::String>
51 SetStatement(std::forward<StatementT>(value));
52 return *this;
53 }
55
57
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 ParameterizedStatement& WithParameters(ParametersT&& value) {
69 SetParameters(std::forward<ParametersT>(value));
70 return *this;
71 }
72 template <typename ParametersT = AttributeValue>
73 ParameterizedStatement& AddParameters(ParametersT&& value) {
74 m_parametersHasBeenSet = true;
75 m_parameters.emplace_back(std::forward<ParametersT>(value));
76 return *this;
77 }
79
81
89 return m_returnValuesOnConditionCheckFailure;
90 }
91 inline bool ReturnValuesOnConditionCheckFailureHasBeenSet() const { return m_returnValuesOnConditionCheckFailureHasBeenSet; }
93 m_returnValuesOnConditionCheckFailureHasBeenSet = true;
94 m_returnValuesOnConditionCheckFailure = value;
95 }
98 return *this;
99 }
101 private:
102 Aws::String m_statement;
103
104 Aws::Vector<AttributeValue> m_parameters;
105
107 bool m_statementHasBeenSet = false;
108 bool m_parametersHasBeenSet = false;
109 bool m_returnValuesOnConditionCheckFailureHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace DynamoDB
114} // namespace Aws
ParameterizedStatement & WithStatement(StatementT &&value)
ReturnValuesOnConditionCheckFailure GetReturnValuesOnConditionCheckFailure() const
ParameterizedStatement & AddParameters(ParametersT &&value)
void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure value)
AWS_DYNAMODB_API ParameterizedStatement()=default
const Aws::Vector< AttributeValue > & GetParameters() const
AWS_DYNAMODB_API ParameterizedStatement(Aws::Utils::Json::JsonView jsonValue)
ParameterizedStatement & WithReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure value)
ParameterizedStatement & WithParameters(ParametersT &&value)
AWS_DYNAMODB_API ParameterizedStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
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