AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Property.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotsitewise/model/PropertyNotification.h>
10#include <aws/iotsitewise/model/PropertyDataType.h>
11#include <aws/iotsitewise/model/PropertyType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/iotsitewise/model/AssetPropertyPathSegment.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace IoTSiteWise
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_IOTSITEWISE_API Property();
40 AWS_IOTSITEWISE_API Property(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTSITEWISE_API Property& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline Property& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline Property& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline Property& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline Property& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline Property& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline Property& WithName(const char* value) { SetName(value); return *this;}
72
74
82 inline const Aws::String& GetAlias() const{ return m_alias; }
83 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
84 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
85 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
86 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
87 inline Property& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
88 inline Property& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
89 inline Property& WithAlias(const char* value) { SetAlias(value); return *this;}
91
93
98 inline const PropertyNotification& GetNotification() const{ return m_notification; }
99 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
100 inline void SetNotification(const PropertyNotification& value) { m_notificationHasBeenSet = true; m_notification = value; }
101 inline void SetNotification(PropertyNotification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
102 inline Property& WithNotification(const PropertyNotification& value) { SetNotification(value); return *this;}
103 inline Property& WithNotification(PropertyNotification&& value) { SetNotification(std::move(value)); return *this;}
105
107
110 inline const PropertyDataType& GetDataType() const{ return m_dataType; }
111 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
112 inline void SetDataType(const PropertyDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
113 inline void SetDataType(PropertyDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
114 inline Property& WithDataType(const PropertyDataType& value) { SetDataType(value); return *this;}
115 inline Property& WithDataType(PropertyDataType&& value) { SetDataType(std::move(value)); return *this;}
117
119
123 inline const Aws::String& GetUnit() const{ return m_unit; }
124 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
125 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
126 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
127 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
128 inline Property& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
129 inline Property& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
130 inline Property& WithUnit(const char* value) { SetUnit(value); return *this;}
132
134
138 inline const PropertyType& GetType() const{ return m_type; }
139 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
140 inline void SetType(const PropertyType& value) { m_typeHasBeenSet = true; m_type = value; }
141 inline void SetType(PropertyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
142 inline Property& WithType(const PropertyType& value) { SetType(value); return *this;}
143 inline Property& WithType(PropertyType&& value) { SetType(std::move(value)); return *this;}
145
147
150 inline const Aws::Vector<AssetPropertyPathSegment>& GetPath() const{ return m_path; }
151 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
152 inline void SetPath(const Aws::Vector<AssetPropertyPathSegment>& value) { m_pathHasBeenSet = true; m_path = value; }
153 inline void SetPath(Aws::Vector<AssetPropertyPathSegment>&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
154 inline Property& WithPath(const Aws::Vector<AssetPropertyPathSegment>& value) { SetPath(value); return *this;}
155 inline Property& WithPath(Aws::Vector<AssetPropertyPathSegment>&& value) { SetPath(std::move(value)); return *this;}
156 inline Property& AddPath(const AssetPropertyPathSegment& value) { m_pathHasBeenSet = true; m_path.push_back(value); return *this; }
157 inline Property& AddPath(AssetPropertyPathSegment&& value) { m_pathHasBeenSet = true; m_path.push_back(std::move(value)); return *this; }
159
161
166 inline const Aws::String& GetExternalId() const{ return m_externalId; }
167 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
168 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
169 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
170 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
171 inline Property& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
172 inline Property& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
173 inline Property& WithExternalId(const char* value) { SetExternalId(value); return *this;}
175 private:
176
177 Aws::String m_id;
178 bool m_idHasBeenSet = false;
179
180 Aws::String m_name;
181 bool m_nameHasBeenSet = false;
182
183 Aws::String m_alias;
184 bool m_aliasHasBeenSet = false;
185
186 PropertyNotification m_notification;
187 bool m_notificationHasBeenSet = false;
188
189 PropertyDataType m_dataType;
190 bool m_dataTypeHasBeenSet = false;
191
192 Aws::String m_unit;
193 bool m_unitHasBeenSet = false;
194
195 PropertyType m_type;
196 bool m_typeHasBeenSet = false;
197
199 bool m_pathHasBeenSet = false;
200
201 Aws::String m_externalId;
202 bool m_externalIdHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace IoTSiteWise
207} // namespace Aws
void SetAlias(Aws::String &&value)
Definition Property.h:85
Property & WithAlias(const char *value)
Definition Property.h:89
void SetUnit(Aws::String &&value)
Definition Property.h:126
void SetType(const PropertyType &value)
Definition Property.h:140
void SetId(const Aws::String &value)
Definition Property.h:51
const Aws::String & GetName() const
Definition Property.h:63
Property & WithPath(const Aws::Vector< AssetPropertyPathSegment > &value)
Definition Property.h:154
Property & WithUnit(const Aws::String &value)
Definition Property.h:128
void SetDataType(const PropertyDataType &value)
Definition Property.h:112
void SetExternalId(const Aws::String &value)
Definition Property.h:168
const PropertyType & GetType() const
Definition Property.h:138
Property & WithExternalId(const char *value)
Definition Property.h:173
void SetType(PropertyType &&value)
Definition Property.h:141
Property & WithType(PropertyType &&value)
Definition Property.h:143
AWS_IOTSITEWISE_API Property(Aws::Utils::Json::JsonView jsonValue)
Property & WithType(const PropertyType &value)
Definition Property.h:142
Property & WithExternalId(const Aws::String &value)
Definition Property.h:171
Property & WithDataType(const PropertyDataType &value)
Definition Property.h:114
AWS_IOTSITEWISE_API Property & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUnit() const
Definition Property.h:123
void SetPath(Aws::Vector< AssetPropertyPathSegment > &&value)
Definition Property.h:153
Property & WithDataType(PropertyDataType &&value)
Definition Property.h:115
void SetUnit(const char *value)
Definition Property.h:127
const PropertyNotification & GetNotification() const
Definition Property.h:98
Property & WithUnit(const char *value)
Definition Property.h:130
void SetName(const char *value)
Definition Property.h:67
Property & WithNotification(const PropertyNotification &value)
Definition Property.h:102
Property & WithExternalId(Aws::String &&value)
Definition Property.h:172
Property & AddPath(const AssetPropertyPathSegment &value)
Definition Property.h:156
void SetUnit(const Aws::String &value)
Definition Property.h:125
void SetExternalId(Aws::String &&value)
Definition Property.h:169
void SetName(const Aws::String &value)
Definition Property.h:65
Property & WithName(const Aws::String &value)
Definition Property.h:68
void SetId(Aws::String &&value)
Definition Property.h:52
const Aws::String & GetId() const
Definition Property.h:49
void SetPath(const Aws::Vector< AssetPropertyPathSegment > &value)
Definition Property.h:152
const Aws::String & GetExternalId() const
Definition Property.h:166
void SetAlias(const char *value)
Definition Property.h:86
Property & WithId(Aws::String &&value)
Definition Property.h:55
Property & AddPath(AssetPropertyPathSegment &&value)
Definition Property.h:157
Property & WithName(Aws::String &&value)
Definition Property.h:69
void SetName(Aws::String &&value)
Definition Property.h:66
Property & WithAlias(const Aws::String &value)
Definition Property.h:87
void SetDataType(PropertyDataType &&value)
Definition Property.h:113
Property & WithName(const char *value)
Definition Property.h:70
void SetNotification(const PropertyNotification &value)
Definition Property.h:100
AWS_IOTSITEWISE_API Property()
void SetAlias(const Aws::String &value)
Definition Property.h:84
Property & WithNotification(PropertyNotification &&value)
Definition Property.h:103
const Aws::String & GetAlias() const
Definition Property.h:82
Property & WithId(const Aws::String &value)
Definition Property.h:54
Property & WithUnit(Aws::String &&value)
Definition Property.h:129
const PropertyDataType & GetDataType() const
Definition Property.h:110
void SetExternalId(const char *value)
Definition Property.h:170
void SetId(const char *value)
Definition Property.h:53
void SetNotification(PropertyNotification &&value)
Definition Property.h:101
Property & WithPath(Aws::Vector< AssetPropertyPathSegment > &&value)
Definition Property.h:155
Property & WithAlias(Aws::String &&value)
Definition Property.h:88
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AssetPropertyPathSegment > & GetPath() const
Definition Property.h:150
Property & WithId(const char *value)
Definition Property.h:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue