AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
LinkAttributeUpdate.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/AttributeKey.h>
9#include <aws/clouddirectory/model/LinkAttributeAction.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
30 public:
31 AWS_CLOUDDIRECTORY_API LinkAttributeUpdate() = default;
32 AWS_CLOUDDIRECTORY_API LinkAttributeUpdate(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDDIRECTORY_API LinkAttributeUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const AttributeKey& GetAttributeKey() const { return m_attributeKey; }
41 inline bool AttributeKeyHasBeenSet() const { return m_attributeKeyHasBeenSet; }
42 template <typename AttributeKeyT = AttributeKey>
43 void SetAttributeKey(AttributeKeyT&& value) {
44 m_attributeKeyHasBeenSet = true;
45 m_attributeKey = std::forward<AttributeKeyT>(value);
46 }
47 template <typename AttributeKeyT = AttributeKey>
48 LinkAttributeUpdate& WithAttributeKey(AttributeKeyT&& value) {
49 SetAttributeKey(std::forward<AttributeKeyT>(value));
50 return *this;
51 }
53
55
58 inline const LinkAttributeAction& GetAttributeAction() const { return m_attributeAction; }
59 inline bool AttributeActionHasBeenSet() const { return m_attributeActionHasBeenSet; }
60 template <typename AttributeActionT = LinkAttributeAction>
61 void SetAttributeAction(AttributeActionT&& value) {
62 m_attributeActionHasBeenSet = true;
63 m_attributeAction = std::forward<AttributeActionT>(value);
64 }
65 template <typename AttributeActionT = LinkAttributeAction>
66 LinkAttributeUpdate& WithAttributeAction(AttributeActionT&& value) {
67 SetAttributeAction(std::forward<AttributeActionT>(value));
68 return *this;
69 }
71 private:
72 AttributeKey m_attributeKey;
73
74 LinkAttributeAction m_attributeAction;
75 bool m_attributeKeyHasBeenSet = false;
76 bool m_attributeActionHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CloudDirectory
81} // namespace Aws
Aws::Utils::Json::JsonValue JsonValue