AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LinkAttributeAction.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/UpdateActionType.h>
9#include <aws/clouddirectory/model/TypedAttributeValue.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 CloudDirectory
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CLOUDDIRECTORY_API LinkAttributeAction() = default;
38 AWS_CLOUDDIRECTORY_API LinkAttributeAction(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDDIRECTORY_API LinkAttributeAction& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline UpdateActionType GetAttributeActionType() const { return m_attributeActionType; }
49 inline bool AttributeActionTypeHasBeenSet() const { return m_attributeActionTypeHasBeenSet; }
50 inline void SetAttributeActionType(UpdateActionType value) { m_attributeActionTypeHasBeenSet = true; m_attributeActionType = value; }
53
55
58 inline const TypedAttributeValue& GetAttributeUpdateValue() const { return m_attributeUpdateValue; }
59 inline bool AttributeUpdateValueHasBeenSet() const { return m_attributeUpdateValueHasBeenSet; }
60 template<typename AttributeUpdateValueT = TypedAttributeValue>
61 void SetAttributeUpdateValue(AttributeUpdateValueT&& value) { m_attributeUpdateValueHasBeenSet = true; m_attributeUpdateValue = std::forward<AttributeUpdateValueT>(value); }
62 template<typename AttributeUpdateValueT = TypedAttributeValue>
63 LinkAttributeAction& WithAttributeUpdateValue(AttributeUpdateValueT&& value) { SetAttributeUpdateValue(std::forward<AttributeUpdateValueT>(value)); return *this;}
65 private:
66
67 UpdateActionType m_attributeActionType{UpdateActionType::NOT_SET};
68 bool m_attributeActionTypeHasBeenSet = false;
69
70 TypedAttributeValue m_attributeUpdateValue;
71 bool m_attributeUpdateValueHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CloudDirectory
76} // namespace Aws
Aws::Utils::Json::JsonValue JsonValue