AWS SDK for C++  1.9.156
AWS SDK for C++
AssetProperty.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace IoTSiteWise
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetId() const{ return m_id; }
46 
50  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 
55  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 
60  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
61 
65  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 
70  inline AssetProperty& WithId(const Aws::String& value) { SetId(value); return *this;}
71 
75  inline AssetProperty& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
76 
80  inline AssetProperty& WithId(const char* value) { SetId(value); return *this;}
81 
82 
86  inline const Aws::String& GetName() const{ return m_name; }
87 
91  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 
96  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
97 
101  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
102 
106  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
107 
111  inline AssetProperty& WithName(const Aws::String& value) { SetName(value); return *this;}
112 
116  inline AssetProperty& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
117 
121  inline AssetProperty& WithName(const char* value) { SetName(value); return *this;}
122 
123 
132  inline const Aws::String& GetAlias() const{ return m_alias; }
133 
142  inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
143 
152  inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
153 
162  inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
163 
172  inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
173 
182  inline AssetProperty& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
183 
192  inline AssetProperty& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
193 
202  inline AssetProperty& WithAlias(const char* value) { SetAlias(value); return *this;}
203 
204 
210  inline const PropertyNotification& GetNotification() const{ return m_notification; }
211 
217  inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
218 
224  inline void SetNotification(const PropertyNotification& value) { m_notificationHasBeenSet = true; m_notification = value; }
225 
231  inline void SetNotification(PropertyNotification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
232 
238  inline AssetProperty& WithNotification(const PropertyNotification& value) { SetNotification(value); return *this;}
239 
245  inline AssetProperty& WithNotification(PropertyNotification&& value) { SetNotification(std::move(value)); return *this;}
246 
247 
251  inline const PropertyDataType& GetDataType() const{ return m_dataType; }
252 
256  inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
257 
261  inline void SetDataType(const PropertyDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
262 
266  inline void SetDataType(PropertyDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
267 
271  inline AssetProperty& WithDataType(const PropertyDataType& value) { SetDataType(value); return *this;}
272 
276  inline AssetProperty& WithDataType(PropertyDataType&& value) { SetDataType(std::move(value)); return *this;}
277 
278 
283  inline const Aws::String& GetDataTypeSpec() const{ return m_dataTypeSpec; }
284 
289  inline bool DataTypeSpecHasBeenSet() const { return m_dataTypeSpecHasBeenSet; }
290 
295  inline void SetDataTypeSpec(const Aws::String& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = value; }
296 
301  inline void SetDataTypeSpec(Aws::String&& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = std::move(value); }
302 
307  inline void SetDataTypeSpec(const char* value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec.assign(value); }
308 
313  inline AssetProperty& WithDataTypeSpec(const Aws::String& value) { SetDataTypeSpec(value); return *this;}
314 
319  inline AssetProperty& WithDataTypeSpec(Aws::String&& value) { SetDataTypeSpec(std::move(value)); return *this;}
320 
325  inline AssetProperty& WithDataTypeSpec(const char* value) { SetDataTypeSpec(value); return *this;}
326 
327 
332  inline const Aws::String& GetUnit() const{ return m_unit; }
333 
338  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
339 
344  inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
345 
350  inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
351 
356  inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
357 
362  inline AssetProperty& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
363 
368  inline AssetProperty& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
369 
374  inline AssetProperty& WithUnit(const char* value) { SetUnit(value); return *this;}
375 
376  private:
377 
378  Aws::String m_id;
379  bool m_idHasBeenSet;
380 
381  Aws::String m_name;
382  bool m_nameHasBeenSet;
383 
384  Aws::String m_alias;
385  bool m_aliasHasBeenSet;
386 
387  PropertyNotification m_notification;
388  bool m_notificationHasBeenSet;
389 
390  PropertyDataType m_dataType;
391  bool m_dataTypeHasBeenSet;
392 
393  Aws::String m_dataTypeSpec;
394  bool m_dataTypeSpecHasBeenSet;
395 
396  Aws::String m_unit;
397  bool m_unitHasBeenSet;
398  };
399 
400 } // namespace Model
401 } // namespace IoTSiteWise
402 } // namespace Aws
Aws::IoTSiteWise::Model::AssetProperty::GetDataTypeSpec
const Aws::String & GetDataTypeSpec() const
Definition: AssetProperty.h:283
Aws::IoTSiteWise::Model::AssetProperty::GetUnit
const Aws::String & GetUnit() const
Definition: AssetProperty.h:332
Aws::IoTSiteWise::Model::AssetProperty::IdHasBeenSet
bool IdHasBeenSet() const
Definition: AssetProperty.h:50
Aws::IoTSiteWise::Model::AssetProperty::AssetProperty
AssetProperty(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetProperty::GetDataType
const PropertyDataType & GetDataType() const
Definition: AssetProperty.h:251
Aws::IoTSiteWise::Model::AssetProperty::DataTypeSpecHasBeenSet
bool DataTypeSpecHasBeenSet() const
Definition: AssetProperty.h:289
Aws::IoTSiteWise::Model::AssetProperty::SetId
void SetId(const Aws::String &value)
Definition: AssetProperty.h:55
Aws::IoTSiteWise::Model::PropertyNotification
Definition: PropertyNotification.h:38
Aws::IoTSiteWise::Model::AssetProperty::SetName
void SetName(Aws::String &&value)
Definition: AssetProperty.h:101
Aws::IoTSiteWise::Model::AssetProperty::AssetProperty
AssetProperty()
PropertyDataType.h
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::AssetProperty::SetId
void SetId(Aws::String &&value)
Definition: AssetProperty.h:60
Aws::IoTSiteWise::Model::AssetProperty::SetUnit
void SetUnit(Aws::String &&value)
Definition: AssetProperty.h:350
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::AssetProperty::SetAlias
void SetAlias(const char *value)
Definition: AssetProperty.h:172
PropertyNotification.h
Aws::IoTSiteWise::Model::AssetProperty::WithDataTypeSpec
AssetProperty & WithDataTypeSpec(Aws::String &&value)
Definition: AssetProperty.h:319
Aws::IoTSiteWise::Model::PropertyDataType
PropertyDataType
Definition: PropertyDataType.h:17
Aws::IoTSiteWise::Model::AssetProperty::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::AssetProperty::WithAlias
AssetProperty & WithAlias(const Aws::String &value)
Definition: AssetProperty.h:182
Aws::IoTSiteWise::Model::AssetProperty::WithAlias
AssetProperty & WithAlias(const char *value)
Definition: AssetProperty.h:202
Aws::IoTSiteWise::Model::AssetProperty::AliasHasBeenSet
bool AliasHasBeenSet() const
Definition: AssetProperty.h:142
Aws::IoTSiteWise::Model::AssetProperty::SetDataTypeSpec
void SetDataTypeSpec(const Aws::String &value)
Definition: AssetProperty.h:295
Aws::IoTSiteWise::Model::AssetProperty::SetName
void SetName(const char *value)
Definition: AssetProperty.h:106
Aws::IoTSiteWise::Model::AssetProperty::WithAlias
AssetProperty & WithAlias(Aws::String &&value)
Definition: AssetProperty.h:192
Aws::IoTSiteWise::Model::AssetProperty::SetDataTypeSpec
void SetDataTypeSpec(Aws::String &&value)
Definition: AssetProperty.h:301
Aws::IoTSiteWise::Model::AssetProperty::GetId
const Aws::String & GetId() const
Definition: AssetProperty.h:45
Aws::IoTSiteWise::Model::AssetProperty::WithUnit
AssetProperty & WithUnit(const char *value)
Definition: AssetProperty.h:374
Aws::IoTSiteWise::Model::AssetProperty::SetDataType
void SetDataType(PropertyDataType &&value)
Definition: AssetProperty.h:266
Aws::IoTSiteWise::Model::AssetProperty::WithNotification
AssetProperty & WithNotification(PropertyNotification &&value)
Definition: AssetProperty.h:245
Aws::IoTSiteWise::Model::AssetProperty::WithDataType
AssetProperty & WithDataType(const PropertyDataType &value)
Definition: AssetProperty.h:271
Aws::IoTSiteWise::Model::AssetProperty::WithDataTypeSpec
AssetProperty & WithDataTypeSpec(const Aws::String &value)
Definition: AssetProperty.h:313
Aws::IoTSiteWise::Model::AssetProperty::SetAlias
void SetAlias(Aws::String &&value)
Definition: AssetProperty.h:162
Aws::IoTSiteWise::Model::AssetProperty::SetName
void SetName(const Aws::String &value)
Definition: AssetProperty.h:96
Aws::IoTSiteWise::Model::AssetProperty::SetUnit
void SetUnit(const char *value)
Definition: AssetProperty.h:356
Aws::IoTSiteWise::Model::AssetProperty::WithName
AssetProperty & WithName(const Aws::String &value)
Definition: AssetProperty.h:111
Aws::IoTSiteWise::Model::AssetProperty::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AssetProperty.h:91
Aws::IoTSiteWise::Model::AssetProperty::WithNotification
AssetProperty & WithNotification(const PropertyNotification &value)
Definition: AssetProperty.h:238
Aws::IoTSiteWise::Model::AssetProperty::WithId
AssetProperty & WithId(const Aws::String &value)
Definition: AssetProperty.h:70
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoTSiteWise::Model::AssetProperty::WithName
AssetProperty & WithName(Aws::String &&value)
Definition: AssetProperty.h:116
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::AssetProperty::SetId
void SetId(const char *value)
Definition: AssetProperty.h:65
Aws::IoTSiteWise::Model::AssetProperty::WithUnit
AssetProperty & WithUnit(const Aws::String &value)
Definition: AssetProperty.h:362
Aws::IoTSiteWise::Model::AssetProperty::DataTypeHasBeenSet
bool DataTypeHasBeenSet() const
Definition: AssetProperty.h:256
Aws::IoTSiteWise::Model::AssetProperty::GetNotification
const PropertyNotification & GetNotification() const
Definition: AssetProperty.h:210
Aws::IoTSiteWise::Model::AssetProperty::WithName
AssetProperty & WithName(const char *value)
Definition: AssetProperty.h:121
Aws::IoTSiteWise::Model::AssetProperty
Definition: AssetProperty.h:34
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::AssetProperty::SetNotification
void SetNotification(const PropertyNotification &value)
Definition: AssetProperty.h:224
Aws::IoTSiteWise::Model::AssetProperty::SetAlias
void SetAlias(const Aws::String &value)
Definition: AssetProperty.h:152
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::AssetProperty::SetUnit
void SetUnit(const Aws::String &value)
Definition: AssetProperty.h:344
Aws::IoTSiteWise::Model::AssetProperty::SetDataTypeSpec
void SetDataTypeSpec(const char *value)
Definition: AssetProperty.h:307
Aws::IoTSiteWise::Model::AssetProperty::WithDataTypeSpec
AssetProperty & WithDataTypeSpec(const char *value)
Definition: AssetProperty.h:325
Aws::IoTSiteWise::Model::AssetProperty::WithUnit
AssetProperty & WithUnit(Aws::String &&value)
Definition: AssetProperty.h:368
Aws::IoTSiteWise::Model::AssetProperty::operator=
AssetProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetProperty::NotificationHasBeenSet
bool NotificationHasBeenSet() const
Definition: AssetProperty.h:217
Aws::IoTSiteWise::Model::AssetProperty::GetName
const Aws::String & GetName() const
Definition: AssetProperty.h:86
Aws::IoTSiteWise::Model::AssetProperty::SetNotification
void SetNotification(PropertyNotification &&value)
Definition: AssetProperty.h:231
Aws::IoTSiteWise::Model::AssetProperty::WithId
AssetProperty & WithId(const char *value)
Definition: AssetProperty.h:80
Aws::IoTSiteWise::Model::AssetProperty::SetDataType
void SetDataType(const PropertyDataType &value)
Definition: AssetProperty.h:261
Aws::IoTSiteWise::Model::AssetProperty::GetAlias
const Aws::String & GetAlias() const
Definition: AssetProperty.h:132
Aws::IoTSiteWise::Model::AssetProperty::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: AssetProperty.h:338
Aws::IoTSiteWise::Model::AssetProperty::WithDataType
AssetProperty & WithDataType(PropertyDataType &&value)
Definition: AssetProperty.h:276
Aws::IoTSiteWise::Model::AssetProperty::WithId
AssetProperty & WithId(Aws::String &&value)
Definition: AssetProperty.h:75