AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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
34 {
35 public:
36 AWS_CLOUDDIRECTORY_API ObjectAttributeUpdate() = default;
37 AWS_CLOUDDIRECTORY_API ObjectAttributeUpdate(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const AttributeKey& GetObjectAttributeKey() const { return m_objectAttributeKey; }
47 inline bool ObjectAttributeKeyHasBeenSet() const { return m_objectAttributeKeyHasBeenSet; }
48 template<typename ObjectAttributeKeyT = AttributeKey>
49 void SetObjectAttributeKey(ObjectAttributeKeyT&& value) { m_objectAttributeKeyHasBeenSet = true; m_objectAttributeKey = std::forward<ObjectAttributeKeyT>(value); }
50 template<typename ObjectAttributeKeyT = AttributeKey>
51 ObjectAttributeUpdate& WithObjectAttributeKey(ObjectAttributeKeyT&& value) { SetObjectAttributeKey(std::forward<ObjectAttributeKeyT>(value)); return *this;}
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) { m_objectAttributeActionHasBeenSet = true; m_objectAttributeAction = std::forward<ObjectAttributeActionT>(value); }
62 template<typename ObjectAttributeActionT = ObjectAttributeAction>
63 ObjectAttributeUpdate& WithObjectAttributeAction(ObjectAttributeActionT&& value) { SetObjectAttributeAction(std::forward<ObjectAttributeActionT>(value)); return *this;}
65 private:
66
67 AttributeKey m_objectAttributeKey;
68 bool m_objectAttributeKeyHasBeenSet = false;
69
70 ObjectAttributeAction m_objectAttributeAction;
71 bool m_objectAttributeActionHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CloudDirectory
76} // 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