AWS SDK for C++  1.9.153
AWS SDK for C++
AssetModelProperty.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 
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 AssetModelProperty& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline AssetModelProperty& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 
81  inline AssetModelProperty& 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 AssetModelProperty& WithName(const Aws::String& value) { SetName(value); return *this;}
113 
117  inline AssetModelProperty& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 
122  inline AssetModelProperty& WithName(const char* value) { SetName(value); return *this;}
123 
124 
128  inline const PropertyDataType& GetDataType() const{ return m_dataType; }
129 
133  inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
134 
138  inline void SetDataType(const PropertyDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
139 
143  inline void SetDataType(PropertyDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
144 
148  inline AssetModelProperty& WithDataType(const PropertyDataType& value) { SetDataType(value); return *this;}
149 
153  inline AssetModelProperty& WithDataType(PropertyDataType&& value) { SetDataType(std::move(value)); return *this;}
154 
155 
160  inline const Aws::String& GetDataTypeSpec() const{ return m_dataTypeSpec; }
161 
166  inline bool DataTypeSpecHasBeenSet() const { return m_dataTypeSpecHasBeenSet; }
167 
172  inline void SetDataTypeSpec(const Aws::String& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = value; }
173 
178  inline void SetDataTypeSpec(Aws::String&& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = std::move(value); }
179 
184  inline void SetDataTypeSpec(const char* value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec.assign(value); }
185 
190  inline AssetModelProperty& WithDataTypeSpec(const Aws::String& value) { SetDataTypeSpec(value); return *this;}
191 
196  inline AssetModelProperty& WithDataTypeSpec(Aws::String&& value) { SetDataTypeSpec(std::move(value)); return *this;}
197 
202  inline AssetModelProperty& WithDataTypeSpec(const char* value) { SetDataTypeSpec(value); return *this;}
203 
204 
209  inline const Aws::String& GetUnit() const{ return m_unit; }
210 
215  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
216 
221  inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
222 
227  inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
228 
233  inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
234 
239  inline AssetModelProperty& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
240 
245  inline AssetModelProperty& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
246 
251  inline AssetModelProperty& WithUnit(const char* value) { SetUnit(value); return *this;}
252 
253 
257  inline const PropertyType& GetType() const{ return m_type; }
258 
262  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
263 
267  inline void SetType(const PropertyType& value) { m_typeHasBeenSet = true; m_type = value; }
268 
272  inline void SetType(PropertyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
273 
277  inline AssetModelProperty& WithType(const PropertyType& value) { SetType(value); return *this;}
278 
282  inline AssetModelProperty& WithType(PropertyType&& value) { SetType(std::move(value)); return *this;}
283 
284  private:
285 
286  Aws::String m_id;
287  bool m_idHasBeenSet;
288 
289  Aws::String m_name;
290  bool m_nameHasBeenSet;
291 
292  PropertyDataType m_dataType;
293  bool m_dataTypeHasBeenSet;
294 
295  Aws::String m_dataTypeSpec;
296  bool m_dataTypeSpecHasBeenSet;
297 
298  Aws::String m_unit;
299  bool m_unitHasBeenSet;
300 
301  PropertyType m_type;
302  bool m_typeHasBeenSet;
303  };
304 
305 } // namespace Model
306 } // namespace IoTSiteWise
307 } // namespace Aws
Aws::IoTSiteWise::Model::AssetModelProperty::SetType
void SetType(PropertyType &&value)
Definition: AssetModelProperty.h:272
Aws::IoTSiteWise::Model::AssetModelProperty
Definition: AssetModelProperty.h:35
Aws::IoTSiteWise::Model::AssetModelProperty::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: AssetModelProperty.h:262
Aws::IoTSiteWise::Model::AssetModelProperty::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: AssetModelProperty.h:215
Aws::IoTSiteWise::Model::PropertyType
Definition: PropertyType.h:37
Aws::IoTSiteWise::Model::AssetModelProperty::WithUnit
AssetModelProperty & WithUnit(const char *value)
Definition: AssetModelProperty.h:251
Aws::IoTSiteWise::Model::AssetModelProperty::WithId
AssetModelProperty & WithId(Aws::String &&value)
Definition: AssetModelProperty.h:76
Aws::IoTSiteWise::Model::AssetModelProperty::SetUnit
void SetUnit(Aws::String &&value)
Definition: AssetModelProperty.h:227
Aws::IoTSiteWise::Model::AssetModelProperty::GetId
const Aws::String & GetId() const
Definition: AssetModelProperty.h:46
PropertyDataType.h
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::AssetModelProperty::WithType
AssetModelProperty & WithType(const PropertyType &value)
Definition: AssetModelProperty.h:277
Aws::IoTSiteWise::Model::AssetModelProperty::SetUnit
void SetUnit(const char *value)
Definition: AssetModelProperty.h:233
Aws::IoTSiteWise::Model::AssetModelProperty::WithId
AssetModelProperty & WithId(const Aws::String &value)
Definition: AssetModelProperty.h:71
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::AssetModelProperty::SetType
void SetType(const PropertyType &value)
Definition: AssetModelProperty.h:267
Aws::IoTSiteWise::Model::PropertyDataType
PropertyDataType
Definition: PropertyDataType.h:17
Aws::IoTSiteWise::Model::AssetModelProperty::SetId
void SetId(Aws::String &&value)
Definition: AssetModelProperty.h:61
Aws::IoTSiteWise::Model::AssetModelProperty::AssetModelProperty
AssetModelProperty(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetModelProperty::WithName
AssetModelProperty & WithName(const Aws::String &value)
Definition: AssetModelProperty.h:112
Aws::IoTSiteWise::Model::AssetModelProperty::SetName
void SetName(Aws::String &&value)
Definition: AssetModelProperty.h:102
Aws::IoTSiteWise::Model::AssetModelProperty::WithUnit
AssetModelProperty & WithUnit(const Aws::String &value)
Definition: AssetModelProperty.h:239
Aws::IoTSiteWise::Model::AssetModelProperty::SetUnit
void SetUnit(const Aws::String &value)
Definition: AssetModelProperty.h:221
Aws::IoTSiteWise::Model::AssetModelProperty::WithType
AssetModelProperty & WithType(PropertyType &&value)
Definition: AssetModelProperty.h:282
Aws::IoTSiteWise::Model::AssetModelProperty::SetDataType
void SetDataType(PropertyDataType &&value)
Definition: AssetModelProperty.h:143
Aws::IoTSiteWise::Model::AssetModelProperty::WithId
AssetModelProperty & WithId(const char *value)
Definition: AssetModelProperty.h:81
Aws::IoTSiteWise::Model::AssetModelProperty::WithDataTypeSpec
AssetModelProperty & WithDataTypeSpec(const char *value)
Definition: AssetModelProperty.h:202
Aws::IoTSiteWise::Model::AssetModelProperty::SetId
void SetId(const Aws::String &value)
Definition: AssetModelProperty.h:56
Aws::IoTSiteWise::Model::AssetModelProperty::WithDataTypeSpec
AssetModelProperty & WithDataTypeSpec(const Aws::String &value)
Definition: AssetModelProperty.h:190
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::AssetModelProperty::AssetModelProperty
AssetModelProperty()
Aws::IoTSiteWise::Model::AssetModelProperty::SetName
void SetName(const Aws::String &value)
Definition: AssetModelProperty.h:97
Aws::IoTSiteWise::Model::AssetModelProperty::IdHasBeenSet
bool IdHasBeenSet() const
Definition: AssetModelProperty.h:51
Aws::IoTSiteWise::Model::AssetModelProperty::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::AssetModelProperty::WithDataType
AssetModelProperty & WithDataType(PropertyDataType &&value)
Definition: AssetModelProperty.h:153
Aws::IoTSiteWise::Model::AssetModelProperty::GetType
const PropertyType & GetType() const
Definition: AssetModelProperty.h:257
Aws::IoTSiteWise::Model::AssetModelProperty::SetDataTypeSpec
void SetDataTypeSpec(const char *value)
Definition: AssetModelProperty.h:184
Aws::IoTSiteWise::Model::AssetModelProperty::GetName
const Aws::String & GetName() const
Definition: AssetModelProperty.h:87
Aws::IoTSiteWise::Model::AssetModelProperty::WithName
AssetModelProperty & WithName(const char *value)
Definition: AssetModelProperty.h:122
Aws::IoTSiteWise::Model::AssetModelProperty::WithUnit
AssetModelProperty & WithUnit(Aws::String &&value)
Definition: AssetModelProperty.h:245
PropertyType.h
Aws::IoTSiteWise::Model::AssetModelProperty::WithDataTypeSpec
AssetModelProperty & WithDataTypeSpec(Aws::String &&value)
Definition: AssetModelProperty.h:196
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::IoTSiteWise::Model::AssetModelProperty::DataTypeHasBeenSet
bool DataTypeHasBeenSet() const
Definition: AssetModelProperty.h:133
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::AssetModelProperty::SetId
void SetId(const char *value)
Definition: AssetModelProperty.h:66
Aws::IoTSiteWise::Model::AssetModelProperty::GetDataType
const PropertyDataType & GetDataType() const
Definition: AssetModelProperty.h:128
Aws::IoTSiteWise::Model::AssetModelProperty::operator=
AssetModelProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetModelProperty::WithDataType
AssetModelProperty & WithDataType(const PropertyDataType &value)
Definition: AssetModelProperty.h:148
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::AssetModelProperty::SetDataTypeSpec
void SetDataTypeSpec(Aws::String &&value)
Definition: AssetModelProperty.h:178
Aws::IoTSiteWise::Model::AssetModelProperty::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AssetModelProperty.h:92
Aws::IoTSiteWise::Model::AssetModelProperty::SetDataType
void SetDataType(const PropertyDataType &value)
Definition: AssetModelProperty.h:138
Aws::IoTSiteWise::Model::AssetModelProperty::DataTypeSpecHasBeenSet
bool DataTypeSpecHasBeenSet() const
Definition: AssetModelProperty.h:166
Aws::IoTSiteWise::Model::AssetModelProperty::GetUnit
const Aws::String & GetUnit() const
Definition: AssetModelProperty.h:209
Aws::IoTSiteWise::Model::AssetModelProperty::SetDataTypeSpec
void SetDataTypeSpec(const Aws::String &value)
Definition: AssetModelProperty.h:172
Aws::IoTSiteWise::Model::AssetModelProperty::WithName
AssetModelProperty & WithName(Aws::String &&value)
Definition: AssetModelProperty.h:117
Aws::IoTSiteWise::Model::AssetModelProperty::GetDataTypeSpec
const Aws::String & GetDataTypeSpec() const
Definition: AssetModelProperty.h:160
Aws::IoTSiteWise::Model::AssetModelProperty::SetName
void SetName(const char *value)
Definition: AssetModelProperty.h:107