AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssetPropertySummary.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotsitewise/model/AssetPropertyPathSegment.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTSiteWise
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IOTSITEWISE_API AssetPropertySummary();
39 AWS_IOTSITEWISE_API AssetPropertySummary(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 AssetPropertySummary& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline AssetPropertySummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline AssetPropertySummary& WithId(const char* value) { SetId(value); return *this;}
57
59
67 inline const Aws::String& GetAlias() const{ return m_alias; }
68 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
69 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
70 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
71 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
72 inline AssetPropertySummary& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
73 inline AssetPropertySummary& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
74 inline AssetPropertySummary& WithAlias(const char* value) { SetAlias(value); return *this;}
76
78
81 inline const Aws::String& GetUnit() const{ return m_unit; }
82 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
83 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
84 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
85 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
86 inline AssetPropertySummary& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
87 inline AssetPropertySummary& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
88 inline AssetPropertySummary& WithUnit(const char* value) { SetUnit(value); return *this;}
90
92
93 inline const PropertyNotification& GetNotification() const{ return m_notification; }
94 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
95 inline void SetNotification(const PropertyNotification& value) { m_notificationHasBeenSet = true; m_notification = value; }
96 inline void SetNotification(PropertyNotification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
97 inline AssetPropertySummary& WithNotification(const PropertyNotification& value) { SetNotification(value); return *this;}
98 inline AssetPropertySummary& WithNotification(PropertyNotification&& value) { SetNotification(std::move(value)); return *this;}
100
102
105 inline const Aws::String& GetAssetCompositeModelId() const{ return m_assetCompositeModelId; }
106 inline bool AssetCompositeModelIdHasBeenSet() const { return m_assetCompositeModelIdHasBeenSet; }
107 inline void SetAssetCompositeModelId(const Aws::String& value) { m_assetCompositeModelIdHasBeenSet = true; m_assetCompositeModelId = value; }
108 inline void SetAssetCompositeModelId(Aws::String&& value) { m_assetCompositeModelIdHasBeenSet = true; m_assetCompositeModelId = std::move(value); }
109 inline void SetAssetCompositeModelId(const char* value) { m_assetCompositeModelIdHasBeenSet = true; m_assetCompositeModelId.assign(value); }
111 inline AssetPropertySummary& WithAssetCompositeModelId(Aws::String&& value) { SetAssetCompositeModelId(std::move(value)); return *this;}
112 inline AssetPropertySummary& WithAssetCompositeModelId(const char* value) { SetAssetCompositeModelId(value); return *this;}
114
116
119 inline const Aws::Vector<AssetPropertyPathSegment>& GetPath() const{ return m_path; }
120 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
121 inline void SetPath(const Aws::Vector<AssetPropertyPathSegment>& value) { m_pathHasBeenSet = true; m_path = value; }
122 inline void SetPath(Aws::Vector<AssetPropertyPathSegment>&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
123 inline AssetPropertySummary& WithPath(const Aws::Vector<AssetPropertyPathSegment>& value) { SetPath(value); return *this;}
124 inline AssetPropertySummary& WithPath(Aws::Vector<AssetPropertyPathSegment>&& value) { SetPath(std::move(value)); return *this;}
125 inline AssetPropertySummary& AddPath(const AssetPropertyPathSegment& value) { m_pathHasBeenSet = true; m_path.push_back(value); return *this; }
126 inline AssetPropertySummary& AddPath(AssetPropertyPathSegment&& value) { m_pathHasBeenSet = true; m_path.push_back(std::move(value)); return *this; }
128
130
135 inline const Aws::String& GetExternalId() const{ return m_externalId; }
136 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
137 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
138 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
139 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
140 inline AssetPropertySummary& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
141 inline AssetPropertySummary& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
142 inline AssetPropertySummary& WithExternalId(const char* value) { SetExternalId(value); return *this;}
144 private:
145
146 Aws::String m_id;
147 bool m_idHasBeenSet = false;
148
149 Aws::String m_alias;
150 bool m_aliasHasBeenSet = false;
151
152 Aws::String m_unit;
153 bool m_unitHasBeenSet = false;
154
155 PropertyNotification m_notification;
156 bool m_notificationHasBeenSet = false;
157
158 Aws::String m_assetCompositeModelId;
159 bool m_assetCompositeModelIdHasBeenSet = false;
160
162 bool m_pathHasBeenSet = false;
163
164 Aws::String m_externalId;
165 bool m_externalIdHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace IoTSiteWise
170} // namespace Aws
AssetPropertySummary & WithExternalId(const char *value)
AssetPropertySummary & WithId(const char *value)
AssetPropertySummary & WithUnit(const Aws::String &value)
AssetPropertySummary & AddPath(const AssetPropertyPathSegment &value)
AWS_IOTSITEWISE_API AssetPropertySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetPropertySummary & WithUnit(const char *value)
const Aws::Vector< AssetPropertyPathSegment > & GetPath() const
AWS_IOTSITEWISE_API AssetPropertySummary(Aws::Utils::Json::JsonView jsonValue)
AssetPropertySummary & WithAlias(const Aws::String &value)
void SetNotification(PropertyNotification &&value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssetPropertySummary & WithAssetCompositeModelId(const Aws::String &value)
AssetPropertySummary & WithAlias(const char *value)
AssetPropertySummary & WithUnit(Aws::String &&value)
AssetPropertySummary & WithAlias(Aws::String &&value)
void SetPath(Aws::Vector< AssetPropertyPathSegment > &&value)
AssetPropertySummary & WithExternalId(Aws::String &&value)
AssetPropertySummary & WithAssetCompositeModelId(const char *value)
const PropertyNotification & GetNotification() const
AssetPropertySummary & WithId(Aws::String &&value)
AssetPropertySummary & WithNotification(const PropertyNotification &value)
AssetPropertySummary & WithId(const Aws::String &value)
AssetPropertySummary & AddPath(AssetPropertyPathSegment &&value)
AssetPropertySummary & WithExternalId(const Aws::String &value)
void SetAssetCompositeModelId(const Aws::String &value)
AssetPropertySummary & WithAssetCompositeModelId(Aws::String &&value)
void SetPath(const Aws::Vector< AssetPropertyPathSegment > &value)
AssetPropertySummary & WithPath(Aws::Vector< AssetPropertyPathSegment > &&value)
void SetNotification(const PropertyNotification &value)
AssetPropertySummary & WithPath(const Aws::Vector< AssetPropertyPathSegment > &value)
AssetPropertySummary & WithNotification(PropertyNotification &&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