AWS SDK for C++  0.12.9
AWS SDK for C++
ExpectedAttributeValue.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 
55  {
56  public:
59  ExpectedAttributeValue& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
60  Aws::Utils::Json::JsonValue Jsonize() const;
61 
62 
63  inline const AttributeValue& GetValue() const{ return m_value; }
64 
65 
66  inline void SetValue(const AttributeValue& value) { m_valueHasBeenSet = true; m_value = value; }
67 
68 
69  inline void SetValue(AttributeValue&& value) { m_valueHasBeenSet = true; m_value = value; }
70 
71 
72  inline ExpectedAttributeValue& WithValue(const AttributeValue& value) { SetValue(value); return *this;}
73 
74 
75  inline ExpectedAttributeValue& WithValue(AttributeValue&& value) { SetValue(value); return *this;}
76 
98  inline bool GetExists() const{ return m_exists; }
99 
121  inline void SetExists(bool value) { m_existsHasBeenSet = true; m_exists = value; }
122 
144  inline ExpectedAttributeValue& WithExists(bool value) { SetExists(value); return *this;}
145 
250  inline const ComparisonOperator& GetComparisonOperator() const{ return m_comparisonOperator; }
251 
356  inline void SetComparisonOperator(const ComparisonOperator& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
357 
462  inline void SetComparisonOperator(ComparisonOperator&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
463 
568  inline ExpectedAttributeValue& WithComparisonOperator(const ComparisonOperator& value) { SetComparisonOperator(value); return *this;}
569 
674  inline ExpectedAttributeValue& WithComparisonOperator(ComparisonOperator&& value) { SetComparisonOperator(value); return *this;}
675 
690  inline const Aws::Vector<AttributeValue>& GetAttributeValueList() const{ return m_attributeValueList; }
691 
706  inline void SetAttributeValueList(const Aws::Vector<AttributeValue>& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList = value; }
707 
722  inline void SetAttributeValueList(Aws::Vector<AttributeValue>&& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList = value; }
723 
738  inline ExpectedAttributeValue& WithAttributeValueList(const Aws::Vector<AttributeValue>& value) { SetAttributeValueList(value); return *this;}
739 
754  inline ExpectedAttributeValue& WithAttributeValueList(Aws::Vector<AttributeValue>&& value) { SetAttributeValueList(value); return *this;}
755 
770  inline ExpectedAttributeValue& AddAttributeValueList(const AttributeValue& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList.push_back(value); return *this; }
771 
786  inline ExpectedAttributeValue& AddAttributeValueList(AttributeValue&& value) { m_attributeValueListHasBeenSet = true; m_attributeValueList.push_back(value); return *this; }
787 
788  private:
789  AttributeValue m_value;
790  bool m_valueHasBeenSet;
791  bool m_exists;
792  bool m_existsHasBeenSet;
793  ComparisonOperator m_comparisonOperator;
794  bool m_comparisonOperatorHasBeenSet;
795  Aws::Vector<AttributeValue> m_attributeValueList;
796  bool m_attributeValueListHasBeenSet;
797  };
798 
799 } // namespace Model
800 } // namespace DynamoDB
801 } // namespace Aws
ExpectedAttributeValue & WithExists(bool value)
ExpectedAttributeValue & AddAttributeValueList(const AttributeValue &value)
const Aws::Vector< AttributeValue > & GetAttributeValueList() const
ExpectedAttributeValue & AddAttributeValueList(AttributeValue &&value)
const ComparisonOperator & GetComparisonOperator() const
void SetComparisonOperator(ComparisonOperator &&value)
ExpectedAttributeValue & WithComparisonOperator(const ComparisonOperator &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ExpectedAttributeValue & WithAttributeValueList(const Aws::Vector< AttributeValue > &value)
void SetValue(const AttributeValue &value)
void SetAttributeValueList(const Aws::Vector< AttributeValue > &value)
void SetComparisonOperator(const ComparisonOperator &value)
#define AWS_DYNAMODB_API
ExpectedAttributeValue & WithValue(const AttributeValue &value)
ExpectedAttributeValue & WithComparisonOperator(ComparisonOperator &&value)
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html ...
void SetAttributeValueList(Aws::Vector< AttributeValue > &&value)
ExpectedAttributeValue & WithValue(AttributeValue &&value)
ExpectedAttributeValue & WithAttributeValueList(Aws::Vector< AttributeValue > &&value)
JSON (JavaScript Object Notation).