AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
EntityPropertyReference.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTTwinMaker {
21namespace Model {
22
30 public:
31 AWS_IOTTWINMAKER_API EntityPropertyReference() = default;
32 AWS_IOTTWINMAKER_API EntityPropertyReference(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetComponentName() const { return m_componentName; }
41 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
42 template <typename ComponentNameT = Aws::String>
43 void SetComponentName(ComponentNameT&& value) {
44 m_componentNameHasBeenSet = true;
45 m_componentName = std::forward<ComponentNameT>(value);
46 }
47 template <typename ComponentNameT = Aws::String>
48 EntityPropertyReference& WithComponentName(ComponentNameT&& value) {
49 SetComponentName(std::forward<ComponentNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetComponentPath() const { return m_componentPath; }
60 inline bool ComponentPathHasBeenSet() const { return m_componentPathHasBeenSet; }
61 template <typename ComponentPathT = Aws::String>
62 void SetComponentPath(ComponentPathT&& value) {
63 m_componentPathHasBeenSet = true;
64 m_componentPath = std::forward<ComponentPathT>(value);
65 }
66 template <typename ComponentPathT = Aws::String>
67 EntityPropertyReference& WithComponentPath(ComponentPathT&& value) {
68 SetComponentPath(std::forward<ComponentPathT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Map<Aws::String, Aws::String>& GetExternalIdProperty() const { return m_externalIdProperty; }
79 inline bool ExternalIdPropertyHasBeenSet() const { return m_externalIdPropertyHasBeenSet; }
80 template <typename ExternalIdPropertyT = Aws::Map<Aws::String, Aws::String>>
81 void SetExternalIdProperty(ExternalIdPropertyT&& value) {
82 m_externalIdPropertyHasBeenSet = true;
83 m_externalIdProperty = std::forward<ExternalIdPropertyT>(value);
84 }
85 template <typename ExternalIdPropertyT = Aws::Map<Aws::String, Aws::String>>
86 EntityPropertyReference& WithExternalIdProperty(ExternalIdPropertyT&& value) {
87 SetExternalIdProperty(std::forward<ExternalIdPropertyT>(value));
88 return *this;
89 }
90 template <typename ExternalIdPropertyKeyT = Aws::String, typename ExternalIdPropertyValueT = Aws::String>
91 EntityPropertyReference& AddExternalIdProperty(ExternalIdPropertyKeyT&& key, ExternalIdPropertyValueT&& value) {
92 m_externalIdPropertyHasBeenSet = true;
93 m_externalIdProperty.emplace(std::forward<ExternalIdPropertyKeyT>(key), std::forward<ExternalIdPropertyValueT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetEntityId() const { return m_entityId; }
103 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
104 template <typename EntityIdT = Aws::String>
105 void SetEntityId(EntityIdT&& value) {
106 m_entityIdHasBeenSet = true;
107 m_entityId = std::forward<EntityIdT>(value);
108 }
109 template <typename EntityIdT = Aws::String>
111 SetEntityId(std::forward<EntityIdT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetPropertyName() const { return m_propertyName; }
121 inline bool PropertyNameHasBeenSet() const { return m_propertyNameHasBeenSet; }
122 template <typename PropertyNameT = Aws::String>
123 void SetPropertyName(PropertyNameT&& value) {
124 m_propertyNameHasBeenSet = true;
125 m_propertyName = std::forward<PropertyNameT>(value);
126 }
127 template <typename PropertyNameT = Aws::String>
129 SetPropertyName(std::forward<PropertyNameT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_componentName;
135
136 Aws::String m_componentPath;
137
138 Aws::Map<Aws::String, Aws::String> m_externalIdProperty;
139
140 Aws::String m_entityId;
141
142 Aws::String m_propertyName;
143 bool m_componentNameHasBeenSet = false;
144 bool m_componentPathHasBeenSet = false;
145 bool m_externalIdPropertyHasBeenSet = false;
146 bool m_entityIdHasBeenSet = false;
147 bool m_propertyNameHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace IoTTwinMaker
152} // namespace Aws
EntityPropertyReference & WithComponentPath(ComponentPathT &&value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
EntityPropertyReference & WithPropertyName(PropertyNameT &&value)
EntityPropertyReference & WithEntityId(EntityIdT &&value)
AWS_IOTTWINMAKER_API EntityPropertyReference & operator=(Aws::Utils::Json::JsonView jsonValue)
EntityPropertyReference & WithComponentName(ComponentNameT &&value)
EntityPropertyReference & AddExternalIdProperty(ExternalIdPropertyKeyT &&key, ExternalIdPropertyValueT &&value)
AWS_IOTTWINMAKER_API EntityPropertyReference()=default
EntityPropertyReference & WithExternalIdProperty(ExternalIdPropertyT &&value)
const Aws::Map< Aws::String, Aws::String > & GetExternalIdProperty() const
AWS_IOTTWINMAKER_API EntityPropertyReference(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue