AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetValue(const AttributeValue& value) { m_valueHasBeenSet = true; m_value = value; }
71 inline void SetValue(AttributeValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
72 inline ExpectedAttributeValue& WithValue(const AttributeValue& value) { SetValue(value); return *this;}
73 inline ExpectedAttributeValue& WithValue(AttributeValue&& value) { SetValue(std::move(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 const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
214 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
215 inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
216 inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
220
222
236 inline const Aws::Vector<AttributeValue>& GetAttributeValueList() const{ return m_attributeValueList; }
237 inline bool AttributeValueListHasBeenSet() const { return m_attributeValueListHasBeenSet; }
238 inline void SetAttributeValueList(const Aws::Vector<AttributeValue>& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList = value; }
239 inline void SetAttributeValueList(Aws::Vector<AttributeValue>&& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList = std::move(value); }
242 inline ExpectedAttributeValue& AddAttributeValueList(const AttributeValue& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList.push_back(value); return *this; }
243 inline ExpectedAttributeValue& AddAttributeValueList(AttributeValue&& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList.push_back(std::move(value)); return *this; }
245 private:
246
247 AttributeValue m_value;
248 bool m_valueHasBeenSet = false;
249
250 bool m_exists;
251 bool m_existsHasBeenSet = false;
252
253 ComparisonOperator m_comparisonOperator;
254 bool m_comparisonOperatorHasBeenSet = false;
255
256 Aws::Vector<AttributeValue> m_attributeValueList;
257 bool m_attributeValueListHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace DynamoDB
262} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
ExpectedAttributeValue & WithValue(const AttributeValue &value)
ExpectedAttributeValue & WithComparisonOperator(ComparisonOperator &&value)
void SetAttributeValueList(Aws::Vector< AttributeValue > &&value)
ExpectedAttributeValue & WithAttributeValueList(const Aws::Vector< AttributeValue > &value)
void SetComparisonOperator(ComparisonOperator &&value)
AWS_DYNAMODB_API ExpectedAttributeValue(Aws::Utils::Json::JsonView jsonValue)
ExpectedAttributeValue & AddAttributeValueList(const AttributeValue &value)
AWS_DYNAMODB_API ExpectedAttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
ExpectedAttributeValue & WithExists(bool value)
ExpectedAttributeValue & AddAttributeValueList(AttributeValue &&value)
const ComparisonOperator & GetComparisonOperator() const
ExpectedAttributeValue & WithComparisonOperator(const ComparisonOperator &value)
ExpectedAttributeValue & WithAttributeValueList(Aws::Vector< AttributeValue > &&value)
ExpectedAttributeValue & WithValue(AttributeValue &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttributeValueList(const Aws::Vector< AttributeValue > &value)
void SetComparisonOperator(const ComparisonOperator &value)
const Aws::Vector< AttributeValue > & GetAttributeValueList() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue