AWS SDK for C++  1.9.1
AWS SDK for C++
Condition.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace DynamoDB
24 {
25 namespace Model
26 {
27 
44  {
45  public:
50 
51 
63  inline const Aws::Vector<AttributeValue>& GetAttributeValueList() const{ return m_attributeValueList; }
64 
76  inline bool AttributeValueListHasBeenSet() const { return m_attributeValueListHasBeenSet; }
77 
89  inline void SetAttributeValueList(const Aws::Vector<AttributeValue>& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList = value; }
90 
102  inline void SetAttributeValueList(Aws::Vector<AttributeValue>&& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList = std::move(value); }
103 
115  inline Condition& WithAttributeValueList(const Aws::Vector<AttributeValue>& value) { SetAttributeValueList(value); return *this;}
116 
128  inline Condition& WithAttributeValueList(Aws::Vector<AttributeValue>&& value) { SetAttributeValueList(std::move(value)); return *this;}
129 
141  inline Condition& AddAttributeValueList(const AttributeValue& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList.push_back(value); return *this; }
142 
154  inline Condition& AddAttributeValueList(AttributeValue&& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList.push_back(std::move(value)); return *this; }
155 
156 
266  inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
267 
377  inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
378 
488  inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
489 
599  inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
600 
710  inline Condition& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;}
711 
821  inline Condition& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(std::move(value)); return *this;}
822 
823  private:
824 
825  Aws::Vector<AttributeValue> m_attributeValueList;
826  bool m_attributeValueListHasBeenSet;
827 
828  ComparisonOperator m_comparisonOperator;
829  bool m_comparisonOperatorHasBeenSet;
830  };
831 
832 } // namespace Model
833 } // namespace DynamoDB
834 } // namespace Aws
Aws::DynamoDB::Model::Condition::SetComparisonOperator
void SetComparisonOperator(ComparisonOperator &&value)
Definition: Condition.h:599
Aws::DynamoDB::Model::Condition::WithAttributeValueList
Condition & WithAttributeValueList(Aws::Vector< AttributeValue > &&value)
Definition: Condition.h:128
Aws::DynamoDB::Model::Condition::Condition
Condition()
Aws::DynamoDB::Model::AttributeValue
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
Definition: AttributeValue.h:26
Aws::DynamoDB::Model::Condition::WithComparisonOperator
Condition & WithComparisonOperator(ComparisonOperator &&value)
Definition: Condition.h:821
Aws::DynamoDB::Model::Condition::SetAttributeValueList
void SetAttributeValueList(const Aws::Vector< AttributeValue > &value)
Definition: Condition.h:89
Aws::DynamoDB::Model::ComparisonOperator
ComparisonOperator
Definition: ComparisonOperator.h:17
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AttributeValue.h
AWSVector.h
Aws::DynamoDB::Model::Condition::WithAttributeValueList
Condition & WithAttributeValueList(const Aws::Vector< AttributeValue > &value)
Definition: Condition.h:115
Aws::DynamoDB::Model::Condition::GetComparisonOperator
const ComparisonOperator & GetComparisonOperator() const
Definition: Condition.h:266
Aws::DynamoDB::Model::Condition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
ComparisonOperator.h
Aws::DynamoDB::Model::Condition::AddAttributeValueList
Condition & AddAttributeValueList(const AttributeValue &value)
Definition: Condition.h:141
Aws::DynamoDB::Model::Condition::AddAttributeValueList
Condition & AddAttributeValueList(AttributeValue &&value)
Definition: Condition.h:154
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DynamoDB::Model::Condition::WithComparisonOperator
Condition & WithComparisonOperator(const ComparisonOperator &value)
Definition: Condition.h:710
Aws::DynamoDB::Model::Condition::SetComparisonOperator
void SetComparisonOperator(const ComparisonOperator &value)
Definition: Condition.h:488
DynamoDB_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::DynamoDB::Model::Condition::SetAttributeValueList
void SetAttributeValueList(Aws::Vector< AttributeValue > &&value)
Definition: Condition.h:102
Aws::DynamoDB::Model::Condition::operator=
Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DynamoDB::Model::Condition::Condition
Condition(Aws::Utils::Json::JsonView jsonValue)
Aws::DynamoDB::Model::Condition::ComparisonOperatorHasBeenSet
bool ComparisonOperatorHasBeenSet() const
Definition: Condition.h:377
AWS_DYNAMODB_API
#define AWS_DYNAMODB_API
Definition: DynamoDB_EXPORTS.h:28
Aws::DynamoDB::Model::Condition
Definition: Condition.h:44
Aws::DynamoDB::Model::Condition::AttributeValueListHasBeenSet
bool AttributeValueListHasBeenSet() const
Definition: Condition.h:76
Aws::DynamoDB::Model::Condition::GetAttributeValueList
const Aws::Vector< AttributeValue > & GetAttributeValueList() const
Definition: Condition.h:63