AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EntityPropertyReference.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.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 IoTTwinMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTTWINMAKER_API EntityPropertyReference() = default;
37 AWS_IOTTWINMAKER_API EntityPropertyReference(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetComponentName() const { return m_componentName; }
47 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
48 template<typename ComponentNameT = Aws::String>
49 void SetComponentName(ComponentNameT&& value) { m_componentNameHasBeenSet = true; m_componentName = std::forward<ComponentNameT>(value); }
50 template<typename ComponentNameT = Aws::String>
51 EntityPropertyReference& WithComponentName(ComponentNameT&& value) { SetComponentName(std::forward<ComponentNameT>(value)); return *this;}
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) { m_componentPathHasBeenSet = true; m_componentPath = std::forward<ComponentPathT>(value); }
63 template<typename ComponentPathT = Aws::String>
64 EntityPropertyReference& WithComponentPath(ComponentPathT&& value) { SetComponentPath(std::forward<ComponentPathT>(value)); return *this;}
66
68
72 inline const Aws::Map<Aws::String, Aws::String>& GetExternalIdProperty() const { return m_externalIdProperty; }
73 inline bool ExternalIdPropertyHasBeenSet() const { return m_externalIdPropertyHasBeenSet; }
74 template<typename ExternalIdPropertyT = Aws::Map<Aws::String, Aws::String>>
75 void SetExternalIdProperty(ExternalIdPropertyT&& value) { m_externalIdPropertyHasBeenSet = true; m_externalIdProperty = std::forward<ExternalIdPropertyT>(value); }
76 template<typename ExternalIdPropertyT = Aws::Map<Aws::String, Aws::String>>
77 EntityPropertyReference& WithExternalIdProperty(ExternalIdPropertyT&& value) { SetExternalIdProperty(std::forward<ExternalIdPropertyT>(value)); return *this;}
78 template<typename ExternalIdPropertyKeyT = Aws::String, typename ExternalIdPropertyValueT = Aws::String>
79 EntityPropertyReference& AddExternalIdProperty(ExternalIdPropertyKeyT&& key, ExternalIdPropertyValueT&& value) {
80 m_externalIdPropertyHasBeenSet = true; m_externalIdProperty.emplace(std::forward<ExternalIdPropertyKeyT>(key), std::forward<ExternalIdPropertyValueT>(value)); return *this;
81 }
83
85
88 inline const Aws::String& GetEntityId() const { return m_entityId; }
89 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
90 template<typename EntityIdT = Aws::String>
91 void SetEntityId(EntityIdT&& value) { m_entityIdHasBeenSet = true; m_entityId = std::forward<EntityIdT>(value); }
92 template<typename EntityIdT = Aws::String>
93 EntityPropertyReference& WithEntityId(EntityIdT&& value) { SetEntityId(std::forward<EntityIdT>(value)); return *this;}
95
97
100 inline const Aws::String& GetPropertyName() const { return m_propertyName; }
101 inline bool PropertyNameHasBeenSet() const { return m_propertyNameHasBeenSet; }
102 template<typename PropertyNameT = Aws::String>
103 void SetPropertyName(PropertyNameT&& value) { m_propertyNameHasBeenSet = true; m_propertyName = std::forward<PropertyNameT>(value); }
104 template<typename PropertyNameT = Aws::String>
105 EntityPropertyReference& WithPropertyName(PropertyNameT&& value) { SetPropertyName(std::forward<PropertyNameT>(value)); return *this;}
107 private:
108
109 Aws::String m_componentName;
110 bool m_componentNameHasBeenSet = false;
111
112 Aws::String m_componentPath;
113 bool m_componentPathHasBeenSet = false;
114
115 Aws::Map<Aws::String, Aws::String> m_externalIdProperty;
116 bool m_externalIdPropertyHasBeenSet = false;
117
118 Aws::String m_entityId;
119 bool m_entityIdHasBeenSet = false;
120
121 Aws::String m_propertyName;
122 bool m_propertyNameHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace IoTTwinMaker
127} // 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