AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ExpectedAttributeValue.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/model/AttributeValue.h>
9#include <aws/dynamodb/model/ComparisonOperator.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DynamoDB
24{
25namespace Model
26{
27
52 {
53 public:
54 AWS_DYNAMODB_API ExpectedAttributeValue() = default;
57 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
58
59
61
68 inline const AttributeValue& GetValue() const { return m_value; }
69 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
70 template<typename ValueT = AttributeValue>
71 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
72 template<typename ValueT = AttributeValue>
73 ExpectedAttributeValue& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
75
77
99 inline bool GetExists() const { return m_exists; }
100 inline bool ExistsHasBeenSet() const { return m_existsHasBeenSet; }
101 inline void SetExists(bool value) { m_existsHasBeenSet = true; m_exists = value; }
102 inline ExpectedAttributeValue& WithExists(bool value) { SetExists(value); return *this;}
104
106
213 inline ComparisonOperator GetComparisonOperator() const { return m_comparisonOperator; }
214 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
215 inline void SetComparisonOperator(ComparisonOperator value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
218
220
234 inline const Aws::Vector<AttributeValue>& GetAttributeValueList() const { return m_attributeValueList; }
235 inline bool AttributeValueListHasBeenSet() const { return m_attributeValueListHasBeenSet; }
236 template<typename AttributeValueListT = Aws::Vector<AttributeValue>>
237 void SetAttributeValueList(AttributeValueListT&& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList = std::forward<AttributeValueListT>(value); }
238 template<typename AttributeValueListT = Aws::Vector<AttributeValue>>
239 ExpectedAttributeValue& WithAttributeValueList(AttributeValueListT&& value) { SetAttributeValueList(std::forward<AttributeValueListT>(value)); return *this;}
240 template<typename AttributeValueListT = AttributeValue>
241 ExpectedAttributeValue& AddAttributeValueList(AttributeValueListT&& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList.emplace_back(std::forward<AttributeValueListT>(value)); return *this; }
243 private:
244
245 AttributeValue m_value;
246 bool m_valueHasBeenSet = false;
247
248 bool m_exists{false};
249 bool m_existsHasBeenSet = false;
250
252 bool m_comparisonOperatorHasBeenSet = false;
253
254 Aws::Vector<AttributeValue> m_attributeValueList;
255 bool m_attributeValueListHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace DynamoDB
260} // 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