AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssetProperty.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/PropertyNotification.h>
10#include <aws/iotsitewise/model/PropertyDataType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iotsitewise/model/AssetPropertyPathSegment.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
36 {
37 public:
38 AWS_IOTSITEWISE_API AssetProperty();
39 AWS_IOTSITEWISE_API AssetProperty(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTSITEWISE_API AssetProperty& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline AssetProperty& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline AssetProperty& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline AssetProperty& WithId(const char* value) { SetId(value); return *this;}
57
59
62 inline const Aws::String& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline AssetProperty& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline AssetProperty& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline AssetProperty& WithName(const char* value) { SetName(value); return *this;}
71
73
81 inline const Aws::String& GetAlias() const{ return m_alias; }
82 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
83 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
84 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
85 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
86 inline AssetProperty& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
87 inline AssetProperty& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
88 inline AssetProperty& WithAlias(const char* value) { SetAlias(value); return *this;}
90
92
97 inline const PropertyNotification& GetNotification() const{ return m_notification; }
98 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
99 inline void SetNotification(const PropertyNotification& value) { m_notificationHasBeenSet = true; m_notification = value; }
100 inline void SetNotification(PropertyNotification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
101 inline AssetProperty& WithNotification(const PropertyNotification& value) { SetNotification(value); return *this;}
102 inline AssetProperty& WithNotification(PropertyNotification&& value) { SetNotification(std::move(value)); return *this;}
104
106
109 inline const PropertyDataType& GetDataType() const{ return m_dataType; }
110 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
111 inline void SetDataType(const PropertyDataType& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
112 inline void SetDataType(PropertyDataType&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
113 inline AssetProperty& WithDataType(const PropertyDataType& value) { SetDataType(value); return *this;}
114 inline AssetProperty& WithDataType(PropertyDataType&& value) { SetDataType(std::move(value)); return *this;}
116
118
122 inline const Aws::String& GetDataTypeSpec() const{ return m_dataTypeSpec; }
123 inline bool DataTypeSpecHasBeenSet() const { return m_dataTypeSpecHasBeenSet; }
124 inline void SetDataTypeSpec(const Aws::String& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = value; }
125 inline void SetDataTypeSpec(Aws::String&& value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec = std::move(value); }
126 inline void SetDataTypeSpec(const char* value) { m_dataTypeSpecHasBeenSet = true; m_dataTypeSpec.assign(value); }
127 inline AssetProperty& WithDataTypeSpec(const Aws::String& value) { SetDataTypeSpec(value); return *this;}
128 inline AssetProperty& WithDataTypeSpec(Aws::String&& value) { SetDataTypeSpec(std::move(value)); return *this;}
129 inline AssetProperty& WithDataTypeSpec(const char* value) { SetDataTypeSpec(value); return *this;}
131
133
137 inline const Aws::String& GetUnit() const{ return m_unit; }
138 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
139 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
140 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
141 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
142 inline AssetProperty& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
143 inline AssetProperty& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
144 inline AssetProperty& WithUnit(const char* value) { SetUnit(value); return *this;}
146
148
151 inline const Aws::Vector<AssetPropertyPathSegment>& GetPath() const{ return m_path; }
152 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
153 inline void SetPath(const Aws::Vector<AssetPropertyPathSegment>& value) { m_pathHasBeenSet = true; m_path = value; }
154 inline void SetPath(Aws::Vector<AssetPropertyPathSegment>&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
155 inline AssetProperty& WithPath(const Aws::Vector<AssetPropertyPathSegment>& value) { SetPath(value); return *this;}
156 inline AssetProperty& WithPath(Aws::Vector<AssetPropertyPathSegment>&& value) { SetPath(std::move(value)); return *this;}
157 inline AssetProperty& AddPath(const AssetPropertyPathSegment& value) { m_pathHasBeenSet = true; m_path.push_back(value); return *this; }
158 inline AssetProperty& AddPath(AssetPropertyPathSegment&& value) { m_pathHasBeenSet = true; m_path.push_back(std::move(value)); return *this; }
160
162
167 inline const Aws::String& GetExternalId() const{ return m_externalId; }
168 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
169 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
170 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
171 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
172 inline AssetProperty& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
173 inline AssetProperty& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
174 inline AssetProperty& WithExternalId(const char* value) { SetExternalId(value); return *this;}
176 private:
177
178 Aws::String m_id;
179 bool m_idHasBeenSet = false;
180
181 Aws::String m_name;
182 bool m_nameHasBeenSet = false;
183
184 Aws::String m_alias;
185 bool m_aliasHasBeenSet = false;
186
187 PropertyNotification m_notification;
188 bool m_notificationHasBeenSet = false;
189
190 PropertyDataType m_dataType;
191 bool m_dataTypeHasBeenSet = false;
192
193 Aws::String m_dataTypeSpec;
194 bool m_dataTypeSpecHasBeenSet = false;
195
196 Aws::String m_unit;
197 bool m_unitHasBeenSet = false;
198
200 bool m_pathHasBeenSet = false;
201
202 Aws::String m_externalId;
203 bool m_externalIdHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace IoTSiteWise
208} // namespace Aws
void SetDataType(PropertyDataType &&value)
const Aws::String & GetUnit() const
AssetProperty & WithExternalId(Aws::String &&value)
AssetProperty & WithNotification(const PropertyNotification &value)
const Aws::String & GetExternalId() const
void SetNotification(PropertyNotification &&value)
void SetAlias(const Aws::String &value)
AssetProperty & WithUnit(Aws::String &&value)
const PropertyDataType & GetDataType() const
const Aws::String & GetDataTypeSpec() const
AssetProperty & WithDataTypeSpec(const char *value)
AssetProperty & WithPath(Aws::Vector< AssetPropertyPathSegment > &&value)
AssetProperty & WithId(Aws::String &&value)
void SetDataTypeSpec(const char *value)
AssetProperty & WithName(Aws::String &&value)
AssetProperty & WithAlias(Aws::String &&value)
void SetExternalId(const Aws::String &value)
AWS_IOTSITEWISE_API AssetProperty(Aws::Utils::Json::JsonView jsonValue)
void SetPath(const Aws::Vector< AssetPropertyPathSegment > &value)
AssetProperty & WithDataType(const PropertyDataType &value)
AssetProperty & WithExternalId(const char *value)
const Aws::String & GetAlias() const
void SetNotification(const PropertyNotification &value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
const PropertyNotification & GetNotification() const
AWS_IOTSITEWISE_API AssetProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
AssetProperty & WithAlias(const char *value)
void SetDataType(const PropertyDataType &value)
void SetId(Aws::String &&value)
const Aws::String & GetName() const
AssetProperty & WithId(const char *value)
AssetProperty & WithDataType(PropertyDataType &&value)
const Aws::String & GetId() const
AssetProperty & WithId(const Aws::String &value)
void SetExternalId(const char *value)
AssetProperty & WithUnit(const char *value)
AssetProperty & AddPath(const AssetPropertyPathSegment &value)
void SetDataTypeSpec(const Aws::String &value)
AssetProperty & WithDataTypeSpec(Aws::String &&value)
AssetProperty & WithName(const char *value)
AssetProperty & WithName(const Aws::String &value)
void SetUnit(const Aws::String &value)
void SetPath(Aws::Vector< AssetPropertyPathSegment > &&value)
AssetProperty & AddPath(AssetPropertyPathSegment &&value)
AssetProperty & WithNotification(PropertyNotification &&value)
AssetProperty & WithUnit(const Aws::String &value)
void SetId(const Aws::String &value)
void SetExternalId(Aws::String &&value)
void SetAlias(Aws::String &&value)
AssetProperty & WithExternalId(const Aws::String &value)
AssetProperty & WithDataTypeSpec(const Aws::String &value)
AssetProperty & WithAlias(const Aws::String &value)
AssetProperty & WithPath(const Aws::Vector< AssetPropertyPathSegment > &value)
const Aws::Vector< AssetPropertyPathSegment > & GetPath() const
void SetUnit(Aws::String &&value)
void SetName(const Aws::String &value)
void SetDataTypeSpec(Aws::String &&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