AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AssetSummary.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/iotsitewise/model/AssetStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iotsitewise/model/AssetHierarchy.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 AssetSummary() = default;
39 AWS_IOTSITEWISE_API AssetSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTSITEWISE_API AssetSummary& 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 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 AssetSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
64 inline const Aws::String& GetArn() const { return m_arn; }
65 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
66 template<typename ArnT = Aws::String>
67 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
68 template<typename ArnT = Aws::String>
69 AssetSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template<typename NameT = Aws::String>
79 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
80 template<typename NameT = Aws::String>
81 AssetSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
83
85
88 inline const Aws::String& GetAssetModelId() const { return m_assetModelId; }
89 inline bool AssetModelIdHasBeenSet() const { return m_assetModelIdHasBeenSet; }
90 template<typename AssetModelIdT = Aws::String>
91 void SetAssetModelId(AssetModelIdT&& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = std::forward<AssetModelIdT>(value); }
92 template<typename AssetModelIdT = Aws::String>
93 AssetSummary& WithAssetModelId(AssetModelIdT&& value) { SetAssetModelId(std::forward<AssetModelIdT>(value)); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
101 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
102 template<typename CreationDateT = Aws::Utils::DateTime>
103 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
104 template<typename CreationDateT = Aws::Utils::DateTime>
105 AssetSummary& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetLastUpdateDate() const { return m_lastUpdateDate; }
113 inline bool LastUpdateDateHasBeenSet() const { return m_lastUpdateDateHasBeenSet; }
114 template<typename LastUpdateDateT = Aws::Utils::DateTime>
115 void SetLastUpdateDate(LastUpdateDateT&& value) { m_lastUpdateDateHasBeenSet = true; m_lastUpdateDate = std::forward<LastUpdateDateT>(value); }
116 template<typename LastUpdateDateT = Aws::Utils::DateTime>
117 AssetSummary& WithLastUpdateDate(LastUpdateDateT&& value) { SetLastUpdateDate(std::forward<LastUpdateDateT>(value)); return *this;}
119
121
124 inline const AssetStatus& GetStatus() const { return m_status; }
125 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
126 template<typename StatusT = AssetStatus>
127 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
128 template<typename StatusT = AssetStatus>
129 AssetSummary& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
131
133
137 inline const Aws::Vector<AssetHierarchy>& GetHierarchies() const { return m_hierarchies; }
138 inline bool HierarchiesHasBeenSet() const { return m_hierarchiesHasBeenSet; }
139 template<typename HierarchiesT = Aws::Vector<AssetHierarchy>>
140 void SetHierarchies(HierarchiesT&& value) { m_hierarchiesHasBeenSet = true; m_hierarchies = std::forward<HierarchiesT>(value); }
141 template<typename HierarchiesT = Aws::Vector<AssetHierarchy>>
142 AssetSummary& WithHierarchies(HierarchiesT&& value) { SetHierarchies(std::forward<HierarchiesT>(value)); return *this;}
143 template<typename HierarchiesT = AssetHierarchy>
144 AssetSummary& AddHierarchies(HierarchiesT&& value) { m_hierarchiesHasBeenSet = true; m_hierarchies.emplace_back(std::forward<HierarchiesT>(value)); return *this; }
146
148
151 inline const Aws::String& GetDescription() const { return m_description; }
152 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
153 template<typename DescriptionT = Aws::String>
154 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
155 template<typename DescriptionT = Aws::String>
156 AssetSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
158
160
165 inline const Aws::String& GetExternalId() const { return m_externalId; }
166 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
167 template<typename ExternalIdT = Aws::String>
168 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
169 template<typename ExternalIdT = Aws::String>
170 AssetSummary& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
172 private:
173
174 Aws::String m_id;
175 bool m_idHasBeenSet = false;
176
177 Aws::String m_arn;
178 bool m_arnHasBeenSet = false;
179
180 Aws::String m_name;
181 bool m_nameHasBeenSet = false;
182
183 Aws::String m_assetModelId;
184 bool m_assetModelIdHasBeenSet = false;
185
186 Aws::Utils::DateTime m_creationDate{};
187 bool m_creationDateHasBeenSet = false;
188
189 Aws::Utils::DateTime m_lastUpdateDate{};
190 bool m_lastUpdateDateHasBeenSet = false;
191
192 AssetStatus m_status;
193 bool m_statusHasBeenSet = false;
194
195 Aws::Vector<AssetHierarchy> m_hierarchies;
196 bool m_hierarchiesHasBeenSet = false;
197
198 Aws::String m_description;
199 bool m_descriptionHasBeenSet = false;
200
201 Aws::String m_externalId;
202 bool m_externalIdHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace IoTSiteWise
207} // namespace Aws
AWS_IOTSITEWISE_API AssetSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCreationDate(CreationDateT &&value)
const AssetStatus & GetStatus() const
AssetSummary & WithAssetModelId(AssetModelIdT &&value)
AssetSummary & WithStatus(StatusT &&value)
const Aws::Vector< AssetHierarchy > & GetHierarchies() const
void SetLastUpdateDate(LastUpdateDateT &&value)
AssetSummary & WithCreationDate(CreationDateT &&value)
const Aws::String & GetAssetModelId() const
AWS_IOTSITEWISE_API AssetSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
const Aws::String & GetExternalId() const
AWS_IOTSITEWISE_API AssetSummary()=default
AssetSummary & WithName(NameT &&value)
const Aws::String & GetName() const
void SetHierarchies(HierarchiesT &&value)
const Aws::String & GetArn() const
AssetSummary & WithArn(ArnT &&value)
AssetSummary & WithHierarchies(HierarchiesT &&value)
const Aws::Utils::DateTime & GetLastUpdateDate() const
const Aws::String & GetId() const
void SetExternalId(ExternalIdT &&value)
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetCreationDate() const
AssetSummary & WithLastUpdateDate(LastUpdateDateT &&value)
AssetSummary & WithId(IdT &&value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAssetModelId(AssetModelIdT &&value)
AssetSummary & AddHierarchies(HierarchiesT &&value)
AssetSummary & WithExternalId(ExternalIdT &&value)
AssetSummary & WithDescription(DescriptionT &&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