AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AttributeValueUpdate.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/model/AttributeValue.h>
9#include <aws/dynamodb/model/AttributeAction.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDB
23{
24namespace Model
25{
26
41 {
42 public:
43 AWS_DYNAMODB_API AttributeValueUpdate() = default;
46 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
57 inline const AttributeValue& GetValue() const { return m_value; }
58 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
59 template<typename ValueT = AttributeValue>
60 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
61 template<typename ValueT = AttributeValue>
62 AttributeValueUpdate& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
64
66
118 inline AttributeAction GetAction() const { return m_action; }
119 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
120 inline void SetAction(AttributeAction value) { m_actionHasBeenSet = true; m_action = value; }
121 inline AttributeValueUpdate& WithAction(AttributeAction value) { SetAction(value); return *this;}
123 private:
124
125 AttributeValue m_value;
126 bool m_valueHasBeenSet = false;
127
129 bool m_actionHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace DynamoDB
134} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
AWS_DYNAMODB_API AttributeValueUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
AttributeValueUpdate & WithAction(AttributeAction value)
AttributeValueUpdate & WithValue(ValueT &&value)
AWS_DYNAMODB_API AttributeValueUpdate()=default
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API AttributeValueUpdate(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue