AWS SDK for C++  1.9.155
AWS SDK for C++
Property.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoTSiteWise
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetId() const{ return m_id; }
47 
51  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 
56  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 
61  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
62 
66  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67 
71  inline Property& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline Property& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 
81  inline Property& WithId(const char* value) { SetId(value); return *this;}
82 
83 
87  inline const Aws::String& GetName() const{ return m_name; }
88 
92  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 
97  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
98 
102  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
103 
107  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
108 
112  inline Property& WithName(const Aws::String& value) { SetName(value); return *this;}
113 
117  inline Property& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 
122  inline Property& WithName(const char* value) { SetName(value); return *this;}
123 
124 
133  inline const Aws::String& GetAlias() const{ return m_alias; }
134 
143  inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
144 
153  inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
154 
163  inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
164 
173  inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
174 
183  inline Property& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
184 
193  inline Property& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
194 
203  inline Property& WithAlias(const char* value) { SetAlias(value); return *this;}
204 
205 
211  inline const PropertyNotification& GetNotification() const{ return m_notification; }
212 
218  inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
219 
225  inline void SetNotification(const PropertyNotification& value) { m_notificationHasBeenSet = true; m_notification = value; }
226 
232  inline void SetNotification(PropertyNotification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
233 
239  inline Property& WithNotification(const PropertyNotification& value) { SetNotification(value); return *this;}
240 
246  inline Property& WithNotification(PropertyNotification&& value) { SetNotification(std::move(value)); return *this;}
247 
248 
252  inline const PropertyDataType& GetDataType() const{ return m_dataType; }
253 
257  inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
258 
262  inline void SetDataType(const PropertyDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
263 
267  inline void SetDataType(PropertyDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
268 
272  inline Property& WithDataType(const PropertyDataType& value) { SetDataType(value); return *this;}
273 
277  inline Property& WithDataType(PropertyDataType&& value) { SetDataType(std::move(value)); return *this;}
278 
279 
284  inline const Aws::String& GetUnit() const{ return m_unit; }
285 
290  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
291 
296  inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
297 
302  inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
303 
308  inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
309 
314  inline Property& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
315 
320  inline Property& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
321 
326  inline Property& WithUnit(const char* value) { SetUnit(value); return *this;}
327 
328 
333  inline const PropertyType& GetType() const{ return m_type; }
334 
339  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
340 
345  inline void SetType(const PropertyType& value) { m_typeHasBeenSet = true; m_type = value; }
346 
351  inline void SetType(PropertyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
352 
357  inline Property& WithType(const PropertyType& value) { SetType(value); return *this;}
358 
363  inline Property& WithType(PropertyType&& value) { SetType(std::move(value)); return *this;}
364 
365  private:
366 
367  Aws::String m_id;
368  bool m_idHasBeenSet;
369 
370  Aws::String m_name;
371  bool m_nameHasBeenSet;
372 
373  Aws::String m_alias;
374  bool m_aliasHasBeenSet;
375 
376  PropertyNotification m_notification;
377  bool m_notificationHasBeenSet;
378 
379  PropertyDataType m_dataType;
380  bool m_dataTypeHasBeenSet;
381 
382  Aws::String m_unit;
383  bool m_unitHasBeenSet;
384 
385  PropertyType m_type;
386  bool m_typeHasBeenSet;
387  };
388 
389 } // namespace Model
390 } // namespace IoTSiteWise
391 } // namespace Aws
Aws::IoTSiteWise::Model::Property::NotificationHasBeenSet
bool NotificationHasBeenSet() const
Definition: Property.h:218
Aws::IoTSiteWise::Model::Property::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Property.h:92
Aws::IoTSiteWise::Model::Property::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::PropertyType
Definition: PropertyType.h:37
Aws::IoTSiteWise::Model::Property::WithType
Property & WithType(PropertyType &&value)
Definition: Property.h:363
Aws::IoTSiteWise::Model::PropertyNotification
Definition: PropertyNotification.h:38
Aws::IoTSiteWise::Model::Property::WithUnit
Property & WithUnit(const Aws::String &value)
Definition: Property.h:314
PropertyDataType.h
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::Property::SetUnit
void SetUnit(Aws::String &&value)
Definition: Property.h:302
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::Property::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Property.h:339
PropertyNotification.h
Aws::IoTSiteWise::Model::Property::WithType
Property & WithType(const PropertyType &value)
Definition: Property.h:357
Aws::IoTSiteWise::Model::Property::SetAlias
void SetAlias(const char *value)
Definition: Property.h:173
Aws::IoTSiteWise::Model::Property::AliasHasBeenSet
bool AliasHasBeenSet() const
Definition: Property.h:143
Aws::IoTSiteWise::Model::Property::WithAlias
Property & WithAlias(const Aws::String &value)
Definition: Property.h:183
Aws::IoTSiteWise::Model::Property
Definition: Property.h:35
Aws::IoTSiteWise::Model::PropertyDataType
PropertyDataType
Definition: PropertyDataType.h:17
Aws::IoTSiteWise::Model::Property::GetUnit
const Aws::String & GetUnit() const
Definition: Property.h:284
Aws::IoTSiteWise::Model::Property::WithName
Property & WithName(const Aws::String &value)
Definition: Property.h:112
Aws::IoTSiteWise::Model::Property::GetName
const Aws::String & GetName() const
Definition: Property.h:87
Aws::IoTSiteWise::Model::Property::SetName
void SetName(const Aws::String &value)
Definition: Property.h:97
Aws::IoTSiteWise::Model::Property::SetAlias
void SetAlias(const Aws::String &value)
Definition: Property.h:153
Aws::IoTSiteWise::Model::Property::SetId
void SetId(const Aws::String &value)
Definition: Property.h:56
Aws::IoTSiteWise::Model::Property::SetType
void SetType(const PropertyType &value)
Definition: Property.h:345
Aws::IoTSiteWise::Model::Property::WithId
Property & WithId(const Aws::String &value)
Definition: Property.h:71
Aws::IoTSiteWise::Model::Property::operator=
Property & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::Property::SetName
void SetName(const char *value)
Definition: Property.h:107
Aws::IoTSiteWise::Model::Property::SetAlias
void SetAlias(Aws::String &&value)
Definition: Property.h:163
Aws::IoTSiteWise::Model::Property::GetAlias
const Aws::String & GetAlias() const
Definition: Property.h:133
Aws::IoTSiteWise::Model::Property::SetNotification
void SetNotification(const PropertyNotification &value)
Definition: Property.h:225
Aws::IoTSiteWise::Model::Property::GetNotification
const PropertyNotification & GetNotification() const
Definition: Property.h:211
Aws::IoTSiteWise::Model::Property::SetUnit
void SetUnit(const char *value)
Definition: Property.h:308
Aws::IoTSiteWise::Model::Property::WithDataType
Property & WithDataType(PropertyDataType &&value)
Definition: Property.h:277
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoTSiteWise::Model::Property::SetNotification
void SetNotification(PropertyNotification &&value)
Definition: Property.h:232
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::Property::WithAlias
Property & WithAlias(Aws::String &&value)
Definition: Property.h:193
Aws::IoTSiteWise::Model::Property::SetType
void SetType(PropertyType &&value)
Definition: Property.h:351
Aws::IoTSiteWise::Model::Property::Property
Property(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::Property::SetUnit
void SetUnit(const Aws::String &value)
Definition: Property.h:296
Aws::IoTSiteWise::Model::Property::WithUnit
Property & WithUnit(Aws::String &&value)
Definition: Property.h:320
Aws::IoTSiteWise::Model::Property::Property
Property()
Aws::IoTSiteWise::Model::Property::WithDataType
Property & WithDataType(const PropertyDataType &value)
Definition: Property.h:272
Aws::IoTSiteWise::Model::Property::GetId
const Aws::String & GetId() const
Definition: Property.h:46
Aws::IoTSiteWise::Model::Property::WithId
Property & WithId(const char *value)
Definition: Property.h:81
PropertyType.h
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::IoTSiteWise::Model::Property::WithName
Property & WithName(Aws::String &&value)
Definition: Property.h:117
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::Property::WithId
Property & WithId(Aws::String &&value)
Definition: Property.h:76
Aws::IoTSiteWise::Model::Property::WithNotification
Property & WithNotification(PropertyNotification &&value)
Definition: Property.h:246
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::Property::SetName
void SetName(Aws::String &&value)
Definition: Property.h:102
Aws::IoTSiteWise::Model::Property::GetType
const PropertyType & GetType() const
Definition: Property.h:333
Aws::IoTSiteWise::Model::Property::SetId
void SetId(Aws::String &&value)
Definition: Property.h:61
Aws::IoTSiteWise::Model::Property::DataTypeHasBeenSet
bool DataTypeHasBeenSet() const
Definition: Property.h:257
Aws::IoTSiteWise::Model::Property::SetId
void SetId(const char *value)
Definition: Property.h:66
Aws::IoTSiteWise::Model::Property::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Property.h:51
Aws::IoTSiteWise::Model::Property::WithName
Property & WithName(const char *value)
Definition: Property.h:122
Aws::IoTSiteWise::Model::Property::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: Property.h:290
Aws::IoTSiteWise::Model::Property::WithNotification
Property & WithNotification(const PropertyNotification &value)
Definition: Property.h:239
Aws::IoTSiteWise::Model::Property::SetDataType
void SetDataType(PropertyDataType &&value)
Definition: Property.h:267
Aws::IoTSiteWise::Model::Property::WithUnit
Property & WithUnit(const char *value)
Definition: Property.h:326
Aws::IoTSiteWise::Model::Property::GetDataType
const PropertyDataType & GetDataType() const
Definition: Property.h:252
Aws::IoTSiteWise::Model::Property::SetDataType
void SetDataType(const PropertyDataType &value)
Definition: Property.h:262
Aws::IoTSiteWise::Model::Property::WithAlias
Property & WithAlias(const char *value)
Definition: Property.h:203