AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 AssetPropertySummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
65 inline const Aws::String& GetAlias() const { return m_alias; }
66 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
67 template<typename AliasT = Aws::String>
68 void SetAlias(AliasT&& value) { m_aliasHasBeenSet = true; m_alias = std::forward<AliasT>(value); }
69 template<typename AliasT = Aws::String>
70 AssetPropertySummary& WithAlias(AliasT&& value) { SetAlias(std::forward<AliasT>(value)); return *this;}
72
74
77 inline const Aws::String& GetUnit() const { return m_unit; }
78 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
79 template<typename UnitT = Aws::String>
80 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
81 template<typename UnitT = Aws::String>
82 AssetPropertySummary& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
84
86
87 inline const PropertyNotification& GetNotification() const { return m_notification; }
88 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
89 template<typename NotificationT = PropertyNotification>
90 void SetNotification(NotificationT&& value) { m_notificationHasBeenSet = true; m_notification = std::forward<NotificationT>(value); }
91 template<typename NotificationT = PropertyNotification>
92 AssetPropertySummary& WithNotification(NotificationT&& value) { SetNotification(std::forward<NotificationT>(value)); return *this;}
94
96
99 inline const Aws::String& GetAssetCompositeModelId() const { return m_assetCompositeModelId; }
100 inline bool AssetCompositeModelIdHasBeenSet() const { return m_assetCompositeModelIdHasBeenSet; }
101 template<typename AssetCompositeModelIdT = Aws::String>
102 void SetAssetCompositeModelId(AssetCompositeModelIdT&& value) { m_assetCompositeModelIdHasBeenSet = true; m_assetCompositeModelId = std::forward<AssetCompositeModelIdT>(value); }
103 template<typename AssetCompositeModelIdT = Aws::String>
104 AssetPropertySummary& WithAssetCompositeModelId(AssetCompositeModelIdT&& value) { SetAssetCompositeModelId(std::forward<AssetCompositeModelIdT>(value)); return *this;}
106
108
111 inline const Aws::Vector<AssetPropertyPathSegment>& GetPath() const { return m_path; }
112 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
113 template<typename PathT = Aws::Vector<AssetPropertyPathSegment>>
114 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
115 template<typename PathT = Aws::Vector<AssetPropertyPathSegment>>
116 AssetPropertySummary& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
117 template<typename PathT = AssetPropertyPathSegment>
118 AssetPropertySummary& AddPath(PathT&& value) { m_pathHasBeenSet = true; m_path.emplace_back(std::forward<PathT>(value)); return *this; }
120
122
127 inline const Aws::String& GetExternalId() const { return m_externalId; }
128 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
129 template<typename ExternalIdT = Aws::String>
130 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
131 template<typename ExternalIdT = Aws::String>
132 AssetPropertySummary& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
134 private:
135
136 Aws::String m_id;
137 bool m_idHasBeenSet = false;
138
139 Aws::String m_alias;
140 bool m_aliasHasBeenSet = false;
141
142 Aws::String m_unit;
143 bool m_unitHasBeenSet = false;
144
145 PropertyNotification m_notification;
146 bool m_notificationHasBeenSet = false;
147
148 Aws::String m_assetCompositeModelId;
149 bool m_assetCompositeModelIdHasBeenSet = false;
150
152 bool m_pathHasBeenSet = false;
153
154 Aws::String m_externalId;
155 bool m_externalIdHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace IoTSiteWise
160} // namespace Aws
AssetPropertySummary & WithNotification(NotificationT &&value)
AssetPropertySummary & WithAlias(AliasT &&value)
AWS_IOTSITEWISE_API AssetPropertySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetPropertySummary & WithExternalId(ExternalIdT &&value)
const Aws::Vector< AssetPropertyPathSegment > & GetPath() const
AWS_IOTSITEWISE_API AssetPropertySummary(Aws::Utils::Json::JsonView jsonValue)
AssetPropertySummary & WithUnit(UnitT &&value)
AWS_IOTSITEWISE_API AssetPropertySummary()=default
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssetPropertySummary & WithAssetCompositeModelId(AssetCompositeModelIdT &&value)
AssetPropertySummary & WithPath(PathT &&value)
const PropertyNotification & GetNotification() const
void SetAssetCompositeModelId(AssetCompositeModelIdT &&value)
AssetPropertySummary & WithId(IdT &&value)
AssetPropertySummary & AddPath(PathT &&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