AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssetModelPropertySummary.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 AssetModelPropertySummary();
42 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline AssetModelPropertySummary& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline AssetModelPropertySummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline AssetModelPropertySummary& WithId(const char* value) { SetId(value); return *this;}
58
60
65 inline const Aws::String& GetExternalId() const{ return m_externalId; }
66 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
67 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
68 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
69 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
70 inline AssetModelPropertySummary& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
71 inline AssetModelPropertySummary& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
72 inline AssetModelPropertySummary& WithExternalId(const char* value) { SetExternalId(value); return *this;}
74
76
79 inline const Aws::String& GetName() const{ return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
82 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
83 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
84 inline AssetModelPropertySummary& WithName(const Aws::String& value) { SetName(value); return *this;}
85 inline AssetModelPropertySummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
86 inline AssetModelPropertySummary& WithName(const char* value) { SetName(value); return *this;}
88
90
93 inline const PropertyDataType& GetDataType() const{ return m_dataType; }
94 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
95 inline void SetDataType(const PropertyDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
96 inline void SetDataType(PropertyDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
97 inline AssetModelPropertySummary& WithDataType(const PropertyDataType& value) { SetDataType(value); return *this;}
98 inline AssetModelPropertySummary& WithDataType(PropertyDataType&& value) { SetDataType(std::move(value)); return *this;}
100
102
106 inline const Aws::String& GetDataTypeSpec() const{ return m_dataTypeSpec; }
107 inline bool DataTypeSpecHasBeenSet() const { return m_dataTypeSpecHasBeenSet; }
108 inline void SetDataTypeSpec(const Aws::String& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = value; }
109 inline void SetDataTypeSpec(Aws::String&& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = std::move(value); }
110 inline void SetDataTypeSpec(const char* value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec.assign(value); }
111 inline AssetModelPropertySummary& WithDataTypeSpec(const Aws::String& value) { SetDataTypeSpec(value); return *this;}
112 inline AssetModelPropertySummary& WithDataTypeSpec(Aws::String&& value) { SetDataTypeSpec(std::move(value)); return *this;}
113 inline AssetModelPropertySummary& WithDataTypeSpec(const char* value) { SetDataTypeSpec(value); return *this;}
115
117
121 inline const Aws::String& GetUnit() const{ return m_unit; }
122 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
123 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
124 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
125 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
126 inline AssetModelPropertySummary& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
127 inline AssetModelPropertySummary& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
128 inline AssetModelPropertySummary& WithUnit(const char* value) { SetUnit(value); return *this;}
130
132
133 inline const PropertyType& GetType() const{ return m_type; }
134 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
135 inline void SetType(const PropertyType& value) { m_typeHasBeenSet = true; m_type = value; }
136 inline void SetType(PropertyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
137 inline AssetModelPropertySummary& WithType(const PropertyType& value) { SetType(value); return *this;}
138 inline AssetModelPropertySummary& WithType(PropertyType&& value) { SetType(std::move(value)); return *this;}
140
142
145 inline const Aws::String& GetAssetModelCompositeModelId() const{ return m_assetModelCompositeModelId; }
146 inline bool AssetModelCompositeModelIdHasBeenSet() const { return m_assetModelCompositeModelIdHasBeenSet; }
147 inline void SetAssetModelCompositeModelId(const Aws::String& value) { m_assetModelCompositeModelIdHasBeenSet = true; m_assetModelCompositeModelId = value; }
148 inline void SetAssetModelCompositeModelId(Aws::String&& value) { m_assetModelCompositeModelIdHasBeenSet = true; m_assetModelCompositeModelId = std::move(value); }
149 inline void SetAssetModelCompositeModelId(const char* value) { m_assetModelCompositeModelIdHasBeenSet = true; m_assetModelCompositeModelId.assign(value); }
154
156
159 inline const Aws::Vector<AssetModelPropertyPathSegment>& GetPath() const{ return m_path; }
160 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
161 inline void SetPath(const Aws::Vector<AssetModelPropertyPathSegment>& value) { m_pathHasBeenSet = true; m_path = value; }
162 inline void SetPath(Aws::Vector<AssetModelPropertyPathSegment>&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
165 inline AssetModelPropertySummary& AddPath(const AssetModelPropertyPathSegment& value) { m_pathHasBeenSet = true; m_path.push_back(value); return *this; }
166 inline AssetModelPropertySummary& AddPath(AssetModelPropertyPathSegment&& value) { m_pathHasBeenSet = true; m_path.push_back(std::move(value)); return *this; }
168 private:
169
170 Aws::String m_id;
171 bool m_idHasBeenSet = false;
172
173 Aws::String m_externalId;
174 bool m_externalIdHasBeenSet = false;
175
176 Aws::String m_name;
177 bool m_nameHasBeenSet = false;
178
179 PropertyDataType m_dataType;
180 bool m_dataTypeHasBeenSet = false;
181
182 Aws::String m_dataTypeSpec;
183 bool m_dataTypeSpecHasBeenSet = false;
184
185 Aws::String m_unit;
186 bool m_unitHasBeenSet = false;
187
188 PropertyType m_type;
189 bool m_typeHasBeenSet = false;
190
191 Aws::String m_assetModelCompositeModelId;
192 bool m_assetModelCompositeModelIdHasBeenSet = false;
193
195 bool m_pathHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace IoTSiteWise
200} // namespace Aws
AssetModelPropertySummary & WithName(const char *value)
AssetModelPropertySummary & WithId(const char *value)
AssetModelPropertySummary & WithUnit(Aws::String &&value)
AssetModelPropertySummary & WithUnit(const char *value)
void SetPath(Aws::Vector< AssetModelPropertyPathSegment > &&value)
const Aws::Vector< AssetModelPropertyPathSegment > & GetPath() const
void SetPath(const Aws::Vector< AssetModelPropertyPathSegment > &value)
AssetModelPropertySummary & WithId(Aws::String &&value)
AssetModelPropertySummary & WithId(const Aws::String &value)
AssetModelPropertySummary & WithName(Aws::String &&value)
AssetModelPropertySummary & WithType(const PropertyType &value)
AssetModelPropertySummary & WithAssetModelCompositeModelId(Aws::String &&value)
AssetModelPropertySummary & WithDataTypeSpec(const char *value)
AssetModelPropertySummary & AddPath(AssetModelPropertyPathSegment &&value)
AssetModelPropertySummary & WithAssetModelCompositeModelId(const Aws::String &value)
AssetModelPropertySummary & WithDataTypeSpec(Aws::String &&value)
AssetModelPropertySummary & WithExternalId(const char *value)
AssetModelPropertySummary & WithPath(const Aws::Vector< AssetModelPropertyPathSegment > &value)
AssetModelPropertySummary & WithDataType(const PropertyDataType &value)
AssetModelPropertySummary & WithExternalId(const Aws::String &value)
AssetModelPropertySummary & WithPath(Aws::Vector< AssetModelPropertyPathSegment > &&value)
AssetModelPropertySummary & AddPath(const AssetModelPropertyPathSegment &value)
AssetModelPropertySummary & WithType(PropertyType &&value)
AssetModelPropertySummary & WithUnit(const Aws::String &value)
AssetModelPropertySummary & WithName(const Aws::String &value)
AssetModelPropertySummary & WithAssetModelCompositeModelId(const char *value)
AssetModelPropertySummary & WithExternalId(Aws::String &&value)
AWS_IOTSITEWISE_API AssetModelPropertySummary(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API AssetModelPropertySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetModelPropertySummary & WithDataTypeSpec(const Aws::String &value)
AssetModelPropertySummary & WithDataType(PropertyDataType &&value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue