AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
LinkAttributeAction.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/TypedAttributeValue.h>
9#include <aws/clouddirectory/model/UpdateActionType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudDirectory {
21namespace Model {
22
31 public:
32 AWS_CLOUDDIRECTORY_API LinkAttributeAction() = default;
33 AWS_CLOUDDIRECTORY_API LinkAttributeAction(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDDIRECTORY_API LinkAttributeAction& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline UpdateActionType GetAttributeActionType() const { return m_attributeActionType; }
43 inline bool AttributeActionTypeHasBeenSet() const { return m_attributeActionTypeHasBeenSet; }
45 m_attributeActionTypeHasBeenSet = true;
46 m_attributeActionType = value;
47 }
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) {
62 m_attributeUpdateValueHasBeenSet = true;
63 m_attributeUpdateValue = std::forward<AttributeUpdateValueT>(value);
64 }
65 template <typename AttributeUpdateValueT = TypedAttributeValue>
66 LinkAttributeAction& WithAttributeUpdateValue(AttributeUpdateValueT&& value) {
67 SetAttributeUpdateValue(std::forward<AttributeUpdateValueT>(value));
68 return *this;
69 }
71 private:
72 UpdateActionType m_attributeActionType{UpdateActionType::NOT_SET};
73
74 TypedAttributeValue m_attributeUpdateValue;
75 bool m_attributeActionTypeHasBeenSet = false;
76 bool m_attributeUpdateValueHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CloudDirectory
81} // namespace Aws
Aws::Utils::Json::JsonValue JsonValue