AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssetModelProperty.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/PropertyDataType.h>
10#include <aws/iotsitewise/model/PropertyType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iotsitewise/model/AssetModelPropertyPathSegment.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace IoTSiteWise
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_IOTSITEWISE_API AssetModelProperty();
40 AWS_IOTSITEWISE_API AssetModelProperty(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
61 inline const Aws::String& GetId() const{ return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
64 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
65 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 inline AssetModelProperty& WithId(const Aws::String& value) { SetId(value); return *this;}
67 inline AssetModelProperty& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
68 inline AssetModelProperty& WithId(const char* value) { SetId(value); return *this;}
70
72
85 inline const Aws::String& GetExternalId() const{ return m_externalId; }
86 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
87 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
88 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
89 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
90 inline AssetModelProperty& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
91 inline AssetModelProperty& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
92 inline AssetModelProperty& WithExternalId(const char* value) { SetExternalId(value); return *this;}
94
96
99 inline const Aws::String& GetName() const{ return m_name; }
100 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
102 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
103 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
104 inline AssetModelProperty& WithName(const Aws::String& value) { SetName(value); return *this;}
105 inline AssetModelProperty& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
106 inline AssetModelProperty& WithName(const char* value) { SetName(value); return *this;}
108
110
113 inline const PropertyDataType& GetDataType() const{ return m_dataType; }
114 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
115 inline void SetDataType(const PropertyDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
116 inline void SetDataType(PropertyDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
117 inline AssetModelProperty& WithDataType(const PropertyDataType& value) { SetDataType(value); return *this;}
118 inline AssetModelProperty& WithDataType(PropertyDataType&& value) { SetDataType(std::move(value)); return *this;}
120
122
126 inline const Aws::String& GetDataTypeSpec() const{ return m_dataTypeSpec; }
127 inline bool DataTypeSpecHasBeenSet() const { return m_dataTypeSpecHasBeenSet; }
128 inline void SetDataTypeSpec(const Aws::String& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = value; }
129 inline void SetDataTypeSpec(Aws::String&& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = std::move(value); }
130 inline void SetDataTypeSpec(const char* value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec.assign(value); }
131 inline AssetModelProperty& WithDataTypeSpec(const Aws::String& value) { SetDataTypeSpec(value); return *this;}
132 inline AssetModelProperty& WithDataTypeSpec(Aws::String&& value) { SetDataTypeSpec(std::move(value)); return *this;}
133 inline AssetModelProperty& WithDataTypeSpec(const char* value) { SetDataTypeSpec(value); return *this;}
135
137
141 inline const Aws::String& GetUnit() const{ return m_unit; }
142 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
143 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
144 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
145 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
146 inline AssetModelProperty& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
147 inline AssetModelProperty& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
148 inline AssetModelProperty& WithUnit(const char* value) { SetUnit(value); return *this;}
150
152
155 inline const PropertyType& GetType() const{ return m_type; }
156 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
157 inline void SetType(const PropertyType& value) { m_typeHasBeenSet = true; m_type = value; }
158 inline void SetType(PropertyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
159 inline AssetModelProperty& WithType(const PropertyType& value) { SetType(value); return *this;}
160 inline AssetModelProperty& WithType(PropertyType&& value) { SetType(std::move(value)); return *this;}
162
164
167 inline const Aws::Vector<AssetModelPropertyPathSegment>& GetPath() const{ return m_path; }
168 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
169 inline void SetPath(const Aws::Vector<AssetModelPropertyPathSegment>& value) { m_pathHasBeenSet = true; m_path = value; }
170 inline void SetPath(Aws::Vector<AssetModelPropertyPathSegment>&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
172 inline AssetModelProperty& WithPath(Aws::Vector<AssetModelPropertyPathSegment>&& value) { SetPath(std::move(value)); return *this;}
173 inline AssetModelProperty& AddPath(const AssetModelPropertyPathSegment& value) { m_pathHasBeenSet = true; m_path.push_back(value); return *this; }
174 inline AssetModelProperty& AddPath(AssetModelPropertyPathSegment&& value) { m_pathHasBeenSet = true; m_path.push_back(std::move(value)); return *this; }
176 private:
177
178 Aws::String m_id;
179 bool m_idHasBeenSet = false;
180
181 Aws::String m_externalId;
182 bool m_externalIdHasBeenSet = false;
183
184 Aws::String m_name;
185 bool m_nameHasBeenSet = false;
186
187 PropertyDataType m_dataType;
188 bool m_dataTypeHasBeenSet = false;
189
190 Aws::String m_dataTypeSpec;
191 bool m_dataTypeSpecHasBeenSet = false;
192
193 Aws::String m_unit;
194 bool m_unitHasBeenSet = false;
195
196 PropertyType m_type;
197 bool m_typeHasBeenSet = false;
198
200 bool m_pathHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace IoTSiteWise
205} // namespace Aws
AssetModelProperty & WithType(PropertyType &&value)
void SetPath(const Aws::Vector< AssetModelPropertyPathSegment > &value)
AssetModelProperty & AddPath(const AssetModelPropertyPathSegment &value)
AssetModelProperty & WithExternalId(Aws::String &&value)
AssetModelProperty & WithDataType(PropertyDataType &&value)
AssetModelProperty & WithName(const char *value)
void SetPath(Aws::Vector< AssetModelPropertyPathSegment > &&value)
AssetModelProperty & WithUnit(Aws::String &&value)
AssetModelProperty & WithExternalId(const char *value)
AssetModelProperty & WithDataType(const PropertyDataType &value)
AssetModelProperty & WithId(Aws::String &&value)
AssetModelProperty & WithExternalId(const Aws::String &value)
const Aws::Vector< AssetModelPropertyPathSegment > & GetPath() const
AWS_IOTSITEWISE_API AssetModelProperty(Aws::Utils::Json::JsonView jsonValue)
AssetModelProperty & WithId(const Aws::String &value)
AssetModelProperty & WithUnit(const Aws::String &value)
AssetModelProperty & WithName(const Aws::String &value)
AssetModelProperty & WithPath(const Aws::Vector< AssetModelPropertyPathSegment > &value)
AssetModelProperty & WithUnit(const char *value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDataTypeSpec(const Aws::String &value)
AssetModelProperty & WithDataTypeSpec(const Aws::String &value)
AssetModelProperty & WithDataTypeSpec(const char *value)
AssetModelProperty & AddPath(AssetModelPropertyPathSegment &&value)
AWS_IOTSITEWISE_API AssetModelProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
const PropertyDataType & GetDataType() const
AssetModelProperty & WithType(const PropertyType &value)
AssetModelProperty & WithName(Aws::String &&value)
void SetExternalId(const Aws::String &value)
AssetModelProperty & WithPath(Aws::Vector< AssetModelPropertyPathSegment > &&value)
AssetModelProperty & WithDataTypeSpec(Aws::String &&value)
AssetModelProperty & WithId(const char *value)
void SetDataType(const PropertyDataType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue