AWS SDK for C++  0.14.3
AWS SDK for C++
Condition.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DynamoDB
31 {
32 namespace Model
33 {
34 
47  {
48  public:
49  Condition();
50  Condition(const Aws::Utils::Json::JsonValue& jsonValue);
51  Condition& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
52  Aws::Utils::Json::JsonValue Jsonize() const;
53 
65  inline const Aws::Vector<AttributeValue>& GetAttributeValueList() const{ return m_attributeValueList; }
66 
78  inline void SetAttributeValueList(const Aws::Vector<AttributeValue>& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList = value; }
79 
91  inline void SetAttributeValueList(Aws::Vector<AttributeValue>&& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList = value; }
92 
104  inline Condition& WithAttributeValueList(const Aws::Vector<AttributeValue>& value) { SetAttributeValueList(value); return *this;}
105 
117  inline Condition& WithAttributeValueList(Aws::Vector<AttributeValue>&& value) { SetAttributeValueList(value); return *this;}
118 
130  inline Condition& AddAttributeValueList(const AttributeValue& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList.push_back(value); return *this; }
131 
143  inline Condition& AddAttributeValueList(AttributeValue&& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList.push_back(value); return *this; }
144 
252  inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
253 
361  inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
362 
470  inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
471 
579  inline Condition& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;}
580 
688  inline Condition& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(value); return *this;}
689 
690  private:
691  Aws::Vector<AttributeValue> m_attributeValueList;
692  bool m_attributeValueListHasBeenSet;
693  ComparisonOperator m_comparisonOperator;
694  bool m_comparisonOperatorHasBeenSet;
695  };
696 
697 } // namespace Model
698 } // namespace DynamoDB
699 } // namespace Aws
Condition & WithComparisonOperator(ComparisonOperator &&value)
Definition: Condition.h:688
Condition & WithAttributeValueList(Aws::Vector< AttributeValue > &&value)
Definition: Condition.h:117
void SetAttributeValueList(Aws::Vector< AttributeValue > &&value)
Definition: Condition.h:91
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetComparisonOperator(const ComparisonOperator &value)
Definition: Condition.h:361
Condition & WithAttributeValueList(const Aws::Vector< AttributeValue > &value)
Definition: Condition.h:104
#define AWS_DYNAMODB_API
void SetAttributeValueList(const Aws::Vector< AttributeValue > &value)
Definition: Condition.h:78
const ComparisonOperator & GetComparisonOperator() const
Definition: Condition.h:252
Condition & AddAttributeValueList(const AttributeValue &value)
Definition: Condition.h:130
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html ...
Condition & WithComparisonOperator(const ComparisonOperator &value)
Definition: Condition.h:579
void SetComparisonOperator(ComparisonOperator &&value)
Definition: Condition.h:470
Condition & AddAttributeValueList(AttributeValue &&value)
Definition: Condition.h:143
JSON (JavaScript Object Notation).
const Aws::Vector< AttributeValue > & GetAttributeValueList() const
Definition: Condition.h:65