AWS SDK for C++  0.14.3
AWS SDK for C++
AttributeValueUpdate.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace DynamoDB
30 {
31 namespace Model
32 {
33 
45  {
46  public:
49  AttributeValueUpdate& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
50  Aws::Utils::Json::JsonValue Jsonize() const;
51 
52 
53  inline const AttributeValue& GetValue() const{ return m_value; }
54 
55 
56  inline void SetValue(const AttributeValue& value) { m_valueHasBeenSet = true; m_value = value; }
57 
58 
59  inline void SetValue(AttributeValue&& value) { m_valueHasBeenSet = true; m_value = value; }
60 
61 
62  inline AttributeValueUpdate& WithValue(const AttributeValue& value) { SetValue(value); return *this;}
63 
64 
65  inline AttributeValueUpdate& WithValue(AttributeValue&& value) { SetValue(value); return *this;}
66 
119  inline const AttributeAction& GetAction() const{ return m_action; }
120 
173  inline void SetAction(const AttributeAction& value) { m_actionHasBeenSet = true; m_action = value; }
174 
227  inline void SetAction(AttributeAction&& value) { m_actionHasBeenSet = true; m_action = value; }
228 
281  inline AttributeValueUpdate& WithAction(const AttributeAction& value) { SetAction(value); return *this;}
282 
335  inline AttributeValueUpdate& WithAction(AttributeAction&& value) { SetAction(value); return *this;}
336 
337  private:
338  AttributeValue m_value;
339  bool m_valueHasBeenSet;
340  AttributeAction m_action;
341  bool m_actionHasBeenSet;
342  };
343 
344 } // namespace Model
345 } // namespace DynamoDB
346 } // namespace Aws
const AttributeAction & GetAction() const
AttributeValueUpdate & WithAction(AttributeAction &&value)
#define AWS_DYNAMODB_API
void SetValue(const AttributeValue &value)
const AttributeValue & GetValue() const
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html ...
void SetAction(const AttributeAction &value)
AttributeValueUpdate & WithAction(const AttributeAction &value)
AttributeValueUpdate & WithValue(const AttributeValue &value)
AttributeValueUpdate & WithValue(AttributeValue &&value)
JSON (JavaScript Object Notation).