AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
ObjectAttributeUpdate.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/AttributeKey.h>
9#include <aws/clouddirectory/model/ObjectAttributeAction.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 ObjectAttributeUpdate() = default;
32 AWS_CLOUDDIRECTORY_API ObjectAttributeUpdate(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const AttributeKey& GetObjectAttributeKey() const { return m_objectAttributeKey; }
41 inline bool ObjectAttributeKeyHasBeenSet() const { return m_objectAttributeKeyHasBeenSet; }
42 template <typename ObjectAttributeKeyT = AttributeKey>
43 void SetObjectAttributeKey(ObjectAttributeKeyT&& value) {
44 m_objectAttributeKeyHasBeenSet = true;
45 m_objectAttributeKey = std::forward<ObjectAttributeKeyT>(value);
46 }
47 template <typename ObjectAttributeKeyT = AttributeKey>
48 ObjectAttributeUpdate& WithObjectAttributeKey(ObjectAttributeKeyT&& value) {
49 SetObjectAttributeKey(std::forward<ObjectAttributeKeyT>(value));
50 return *this;
51 }
53
55
58 inline const ObjectAttributeAction& GetObjectAttributeAction() const { return m_objectAttributeAction; }
59 inline bool ObjectAttributeActionHasBeenSet() const { return m_objectAttributeActionHasBeenSet; }
60 template <typename ObjectAttributeActionT = ObjectAttributeAction>
61 void SetObjectAttributeAction(ObjectAttributeActionT&& value) {
62 m_objectAttributeActionHasBeenSet = true;
63 m_objectAttributeAction = std::forward<ObjectAttributeActionT>(value);
64 }
65 template <typename ObjectAttributeActionT = ObjectAttributeAction>
66 ObjectAttributeUpdate& WithObjectAttributeAction(ObjectAttributeActionT&& value) {
67 SetObjectAttributeAction(std::forward<ObjectAttributeActionT>(value));
68 return *this;
69 }
71 private:
72 AttributeKey m_objectAttributeKey;
73
74 ObjectAttributeAction m_objectAttributeAction;
75 bool m_objectAttributeKeyHasBeenSet = false;
76 bool m_objectAttributeActionHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CloudDirectory
81} // namespace Aws
AWS_CLOUDDIRECTORY_API ObjectAttributeUpdate(Aws::Utils::Json::JsonView jsonValue)
const ObjectAttributeAction & GetObjectAttributeAction() const
AWS_CLOUDDIRECTORY_API ObjectAttributeUpdate()=default
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetObjectAttributeKey(ObjectAttributeKeyT &&value)
ObjectAttributeUpdate & WithObjectAttributeAction(ObjectAttributeActionT &&value)
void SetObjectAttributeAction(ObjectAttributeActionT &&value)
ObjectAttributeUpdate & WithObjectAttributeKey(ObjectAttributeKeyT &&value)
AWS_CLOUDDIRECTORY_API ObjectAttributeUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue