AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AttributeValueUpdate.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/model/AttributeAction.h>
9#include <aws/dynamodb/model/AttributeValue.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DynamoDB {
21namespace Model {
22
37 public:
38 AWS_DYNAMODB_API AttributeValueUpdate() = default;
41 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
51 inline const AttributeValue& GetValue() const { return m_value; }
52 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
53 template <typename ValueT = AttributeValue>
54 void SetValue(ValueT&& value) {
55 m_valueHasBeenSet = true;
56 m_value = std::forward<ValueT>(value);
57 }
58 template <typename ValueT = AttributeValue>
60 SetValue(std::forward<ValueT>(value));
61 return *this;
62 }
64
66
118 inline AttributeAction GetAction() const { return m_action; }
119 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
120 inline void SetAction(AttributeAction value) {
121 m_actionHasBeenSet = true;
122 m_action = value;
123 }
125 SetAction(value);
126 return *this;
127 }
129 private:
130 AttributeValue m_value;
131
133 bool m_valueHasBeenSet = false;
134 bool m_actionHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace DynamoDB
139} // 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