AWS SDK for C++  1.8.126
AWS SDK for C++
AssetModelPropertyDefinition.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 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
57  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 
62  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 
67  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 
72  inline AssetModelPropertyDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
77  inline AssetModelPropertyDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 
82  inline AssetModelPropertyDefinition& WithName(const char* value) { SetName(value); return *this;}
83 
84 
90  inline const PropertyDataType& GetDataType() const{ return m_dataType; }
91 
97  inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
98 
104  inline void SetDataType(const PropertyDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
105 
111  inline void SetDataType(PropertyDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
112 
118  inline AssetModelPropertyDefinition& WithDataType(const PropertyDataType& value) { SetDataType(value); return *this;}
119 
125  inline AssetModelPropertyDefinition& WithDataType(PropertyDataType&& value) { SetDataType(std::move(value)); return *this;}
126 
127 
135  inline const Aws::String& GetDataTypeSpec() const{ return m_dataTypeSpec; }
136 
144  inline bool DataTypeSpecHasBeenSet() const { return m_dataTypeSpecHasBeenSet; }
145 
153  inline void SetDataTypeSpec(const Aws::String& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = value; }
154 
162  inline void SetDataTypeSpec(Aws::String&& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = std::move(value); }
163 
171  inline void SetDataTypeSpec(const char* value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec.assign(value); }
172 
180  inline AssetModelPropertyDefinition& WithDataTypeSpec(const Aws::String& value) { SetDataTypeSpec(value); return *this;}
181 
189  inline AssetModelPropertyDefinition& WithDataTypeSpec(Aws::String&& value) { SetDataTypeSpec(std::move(value)); return *this;}
190 
198  inline AssetModelPropertyDefinition& WithDataTypeSpec(const char* value) { SetDataTypeSpec(value); return *this;}
199 
200 
205  inline const Aws::String& GetUnit() const{ return m_unit; }
206 
211  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
212 
217  inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
218 
223  inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
224 
229  inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
230 
235  inline AssetModelPropertyDefinition& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
236 
241  inline AssetModelPropertyDefinition& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
242 
247  inline AssetModelPropertyDefinition& WithUnit(const char* value) { SetUnit(value); return *this;}
248 
249 
254  inline const PropertyType& GetType() const{ return m_type; }
255 
260  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
261 
266  inline void SetType(const PropertyType& value) { m_typeHasBeenSet = true; m_type = value; }
267 
272  inline void SetType(PropertyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
273 
278  inline AssetModelPropertyDefinition& WithType(const PropertyType& value) { SetType(value); return *this;}
279 
284  inline AssetModelPropertyDefinition& WithType(PropertyType&& value) { SetType(std::move(value)); return *this;}
285 
286  private:
287 
288  Aws::String m_name;
289  bool m_nameHasBeenSet;
290 
291  PropertyDataType m_dataType;
292  bool m_dataTypeHasBeenSet;
293 
294  Aws::String m_dataTypeSpec;
295  bool m_dataTypeSpecHasBeenSet;
296 
297  Aws::String m_unit;
298  bool m_unitHasBeenSet;
299 
300  PropertyType m_type;
301  bool m_typeHasBeenSet;
302  };
303 
304 } // namespace Model
305 } // namespace IoTSiteWise
306 } // namespace Aws
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::WithUnit
AssetModelPropertyDefinition & WithUnit(const char *value)
Definition: AssetModelPropertyDefinition.h:247
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::DataTypeSpecHasBeenSet
bool DataTypeSpecHasBeenSet() const
Definition: AssetModelPropertyDefinition.h:144
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::AssetModelPropertyDefinition
AssetModelPropertyDefinition()
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::SetDataType
void SetDataType(const PropertyDataType &value)
Definition: AssetModelPropertyDefinition.h:104
Aws::IoTSiteWise::Model::PropertyType
Definition: PropertyType.h:37
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::WithDataType
AssetModelPropertyDefinition & WithDataType(PropertyDataType &&value)
Definition: AssetModelPropertyDefinition.h:125
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::GetUnit
const Aws::String & GetUnit() const
Definition: AssetModelPropertyDefinition.h:205
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::SetName
void SetName(Aws::String &&value)
Definition: AssetModelPropertyDefinition.h:62
PropertyDataType.h
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::WithDataTypeSpec
AssetModelPropertyDefinition & WithDataTypeSpec(Aws::String &&value)
Definition: AssetModelPropertyDefinition.h:189
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::PropertyDataType
PropertyDataType
Definition: PropertyDataType.h:17
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: AssetModelPropertyDefinition.h:211
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: AssetModelPropertyDefinition.h:260
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::WithName
AssetModelPropertyDefinition & WithName(Aws::String &&value)
Definition: AssetModelPropertyDefinition.h:77
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::AssetModelPropertyDefinition
AssetModelPropertyDefinition(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::WithDataTypeSpec
AssetModelPropertyDefinition & WithDataTypeSpec(const char *value)
Definition: AssetModelPropertyDefinition.h:198
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::SetName
void SetName(const Aws::String &value)
Definition: AssetModelPropertyDefinition.h:57
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::SetDataTypeSpec
void SetDataTypeSpec(const Aws::String &value)
Definition: AssetModelPropertyDefinition.h:153
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::SetDataType
void SetDataType(PropertyDataType &&value)
Definition: AssetModelPropertyDefinition.h:111
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::WithName
AssetModelPropertyDefinition & WithName(const char *value)
Definition: AssetModelPropertyDefinition.h:82
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::WithName
AssetModelPropertyDefinition & WithName(const Aws::String &value)
Definition: AssetModelPropertyDefinition.h:72
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AssetModelPropertyDefinition.h:52
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::SetType
void SetType(PropertyType &&value)
Definition: AssetModelPropertyDefinition.h:272
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::SetDataTypeSpec
void SetDataTypeSpec(const char *value)
Definition: AssetModelPropertyDefinition.h:171
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::WithUnit
AssetModelPropertyDefinition & WithUnit(Aws::String &&value)
Definition: AssetModelPropertyDefinition.h:241
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::SetUnit
void SetUnit(const Aws::String &value)
Definition: AssetModelPropertyDefinition.h:217
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::WithDataTypeSpec
AssetModelPropertyDefinition & WithDataTypeSpec(const Aws::String &value)
Definition: AssetModelPropertyDefinition.h:180
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::WithType
AssetModelPropertyDefinition & WithType(const PropertyType &value)
Definition: AssetModelPropertyDefinition.h:278
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::GetType
const PropertyType & GetType() const
Definition: AssetModelPropertyDefinition.h:254
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::WithDataType
AssetModelPropertyDefinition & WithDataType(const PropertyDataType &value)
Definition: AssetModelPropertyDefinition.h:118
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::WithType
AssetModelPropertyDefinition & WithType(PropertyType &&value)
Definition: AssetModelPropertyDefinition.h:284
PropertyType.h
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition
Definition: AssetModelPropertyDefinition.h:36
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::WithUnit
AssetModelPropertyDefinition & WithUnit(const Aws::String &value)
Definition: AssetModelPropertyDefinition.h:235
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::GetDataType
const PropertyDataType & GetDataType() const
Definition: AssetModelPropertyDefinition.h:90
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::SetType
void SetType(const PropertyType &value)
Definition: AssetModelPropertyDefinition.h:266
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::GetDataTypeSpec
const Aws::String & GetDataTypeSpec() const
Definition: AssetModelPropertyDefinition.h:135
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::SetName
void SetName(const char *value)
Definition: AssetModelPropertyDefinition.h:67
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::SetUnit
void SetUnit(const char *value)
Definition: AssetModelPropertyDefinition.h:229
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::DataTypeHasBeenSet
bool DataTypeHasBeenSet() const
Definition: AssetModelPropertyDefinition.h:97
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::operator=
AssetModelPropertyDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::SetDataTypeSpec
void SetDataTypeSpec(Aws::String &&value)
Definition: AssetModelPropertyDefinition.h:162
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::SetUnit
void SetUnit(Aws::String &&value)
Definition: AssetModelPropertyDefinition.h:223
Aws::IoTSiteWise::Model::AssetModelPropertyDefinition::GetName
const Aws::String & GetName() const
Definition: AssetModelPropertyDefinition.h:47