AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ExpectedAttributeValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/dynamodb/DynamoDB_EXPORTS.h>
9#include <aws/dynamodb/model/AttributeValue.h>
10#include <aws/dynamodb/model/ComparisonOperator.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DynamoDB {
22namespace Model {
23
48 public:
49 AWS_DYNAMODB_API ExpectedAttributeValue() = default;
52 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
53
55
62 inline const AttributeValue& GetValue() const { return m_value; }
63 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
64 template <typename ValueT = AttributeValue>
65 void SetValue(ValueT&& value) {
66 m_valueHasBeenSet = true;
67 m_value = std::forward<ValueT>(value);
68 }
69 template <typename ValueT = AttributeValue>
71 SetValue(std::forward<ValueT>(value));
72 return *this;
73 }
75
77
99 inline bool GetExists() const { return m_exists; }
100 inline bool ExistsHasBeenSet() const { return m_existsHasBeenSet; }
101 inline void SetExists(bool value) {
102 m_existsHasBeenSet = true;
103 m_exists = value;
104 }
105 inline ExpectedAttributeValue& WithExists(bool value) {
106 SetExists(value);
107 return *this;
108 }
110
112
219 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
220 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
222 m_comparisonOperatorHasBeenSet = true;
223 m_comparisonOperator = value;
224 }
227 return *this;
228 }
230
232
246 inline const Aws::Vector<AttributeValue>& GetAttributeValueList() const { return m_attributeValueList; }
247 inline bool AttributeValueListHasBeenSet() const { return m_attributeValueListHasBeenSet; }
248 template <typename AttributeValueListT = Aws::Vector<AttributeValue>>
249 void SetAttributeValueList(AttributeValueListT&& value) {
250 m_attributeValueListHasBeenSet = true;
251 m_attributeValueList = std::forward<AttributeValueListT>(value);
252 }
253 template <typename AttributeValueListT = Aws::Vector<AttributeValue>>
254 ExpectedAttributeValue& WithAttributeValueList(AttributeValueListT&& value) {
255 SetAttributeValueList(std::forward<AttributeValueListT>(value));
256 return *this;
257 }
258 template <typename AttributeValueListT = AttributeValue>
259 ExpectedAttributeValue& AddAttributeValueList(AttributeValueListT&& value) {
260 m_attributeValueListHasBeenSet = true;
261 m_attributeValueList.emplace_back(std::forward<AttributeValueListT>(value));
262 return *this;
263 }
265 private:
266 AttributeValue m_value;
267
268 bool m_exists{false};
269
271
272 Aws::Vector<AttributeValue> m_attributeValueList;
273 bool m_valueHasBeenSet = false;
274 bool m_existsHasBeenSet = false;
275 bool m_comparisonOperatorHasBeenSet = false;
276 bool m_attributeValueListHasBeenSet = false;
277};
278
279} // namespace Model
280} // namespace DynamoDB
281} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
ExpectedAttributeValue & AddAttributeValueList(AttributeValueListT &&value)
ExpectedAttributeValue & WithValue(ValueT &&value)
ExpectedAttributeValue & WithComparisonOperator(ComparisonOperator value)
AWS_DYNAMODB_API ExpectedAttributeValue(Aws::Utils::Json::JsonView jsonValue)
ExpectedAttributeValue & WithAttributeValueList(AttributeValueListT &&value)
AWS_DYNAMODB_API ExpectedAttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
ExpectedAttributeValue & WithExists(bool value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttributeValueList(AttributeValueListT &&value)
const Aws::Vector< AttributeValue > & GetAttributeValueList() const
AWS_DYNAMODB_API ExpectedAttributeValue()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue