AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 AssetSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline AssetSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline AssetSummary& WithId(const char* value) { SetId(value); return *this;}
57
59
66 inline const Aws::String& GetArn() const{ return m_arn; }
67 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
68 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
69 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
70 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
71 inline AssetSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 inline AssetSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
73 inline AssetSummary& WithArn(const char* value) { SetArn(value); return *this;}
75
77
80 inline const Aws::String& GetName() const{ return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
83 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
84 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
85 inline AssetSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
86 inline AssetSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
87 inline AssetSummary& WithName(const char* value) { SetName(value); return *this;}
89
91
94 inline const Aws::String& GetAssetModelId() const{ return m_assetModelId; }
95 inline bool AssetModelIdHasBeenSet() const { return m_assetModelIdHasBeenSet; }
96 inline void SetAssetModelId(const Aws::String& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = value; }
97 inline void SetAssetModelId(Aws::String&& value) { m_assetModelIdHasBeenSet = true; m_assetModelId = std::move(value); }
98 inline void SetAssetModelId(const char* value) { m_assetModelIdHasBeenSet = true; m_assetModelId.assign(value); }
99 inline AssetSummary& WithAssetModelId(const Aws::String& value) { SetAssetModelId(value); return *this;}
100 inline AssetSummary& WithAssetModelId(Aws::String&& value) { SetAssetModelId(std::move(value)); return *this;}
101 inline AssetSummary& WithAssetModelId(const char* value) { SetAssetModelId(value); return *this;}
103
105
108 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
109 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
110 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
111 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
112 inline AssetSummary& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
113 inline AssetSummary& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetLastUpdateDate() const{ return m_lastUpdateDate; }
121 inline bool LastUpdateDateHasBeenSet() const { return m_lastUpdateDateHasBeenSet; }
122 inline void SetLastUpdateDate(const Aws::Utils::DateTime& value) { m_lastUpdateDateHasBeenSet = true; m_lastUpdateDate = value; }
123 inline void SetLastUpdateDate(Aws::Utils::DateTime&& value) { m_lastUpdateDateHasBeenSet = true; m_lastUpdateDate = std::move(value); }
124 inline AssetSummary& WithLastUpdateDate(const Aws::Utils::DateTime& value) { SetLastUpdateDate(value); return *this;}
125 inline AssetSummary& WithLastUpdateDate(Aws::Utils::DateTime&& value) { SetLastUpdateDate(std::move(value)); return *this;}
127
129
132 inline const AssetStatus& GetStatus() const{ return m_status; }
133 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 inline void SetStatus(const AssetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
135 inline void SetStatus(AssetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
136 inline AssetSummary& WithStatus(const AssetStatus& value) { SetStatus(value); return *this;}
137 inline AssetSummary& WithStatus(AssetStatus&& value) { SetStatus(std::move(value)); return *this;}
139
141
145 inline const Aws::Vector<AssetHierarchy>& GetHierarchies() const{ return m_hierarchies; }
146 inline bool HierarchiesHasBeenSet() const { return m_hierarchiesHasBeenSet; }
147 inline void SetHierarchies(const Aws::Vector<AssetHierarchy>& value) { m_hierarchiesHasBeenSet = true; m_hierarchies = value; }
148 inline void SetHierarchies(Aws::Vector<AssetHierarchy>&& value) { m_hierarchiesHasBeenSet = true; m_hierarchies = std::move(value); }
149 inline AssetSummary& WithHierarchies(const Aws::Vector<AssetHierarchy>& value) { SetHierarchies(value); return *this;}
150 inline AssetSummary& WithHierarchies(Aws::Vector<AssetHierarchy>&& value) { SetHierarchies(std::move(value)); return *this;}
151 inline AssetSummary& AddHierarchies(const AssetHierarchy& value) { m_hierarchiesHasBeenSet = true; m_hierarchies.push_back(value); return *this; }
152 inline AssetSummary& AddHierarchies(AssetHierarchy&& value) { m_hierarchiesHasBeenSet = true; m_hierarchies.push_back(std::move(value)); return *this; }
154
156
159 inline const Aws::String& GetDescription() const{ return m_description; }
160 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
161 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
162 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
163 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
164 inline AssetSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
165 inline AssetSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
166 inline AssetSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
168
170
175 inline const Aws::String& GetExternalId() const{ return m_externalId; }
176 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
177 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
178 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
179 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
180 inline AssetSummary& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
181 inline AssetSummary& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
182 inline AssetSummary& WithExternalId(const char* value) { SetExternalId(value); return *this;}
184 private:
185
186 Aws::String m_id;
187 bool m_idHasBeenSet = false;
188
189 Aws::String m_arn;
190 bool m_arnHasBeenSet = false;
191
192 Aws::String m_name;
193 bool m_nameHasBeenSet = false;
194
195 Aws::String m_assetModelId;
196 bool m_assetModelIdHasBeenSet = false;
197
198 Aws::Utils::DateTime m_creationDate;
199 bool m_creationDateHasBeenSet = false;
200
201 Aws::Utils::DateTime m_lastUpdateDate;
202 bool m_lastUpdateDateHasBeenSet = false;
203
204 AssetStatus m_status;
205 bool m_statusHasBeenSet = false;
206
207 Aws::Vector<AssetHierarchy> m_hierarchies;
208 bool m_hierarchiesHasBeenSet = false;
209
210 Aws::String m_description;
211 bool m_descriptionHasBeenSet = false;
212
213 Aws::String m_externalId;
214 bool m_externalIdHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace IoTSiteWise
219} // namespace Aws
void SetArn(Aws::String &&value)
AssetSummary & WithDescription(const char *value)
AWS_IOTSITEWISE_API AssetSummary(Aws::Utils::Json::JsonView jsonValue)
AssetSummary & WithName(Aws::String &&value)
void SetId(const Aws::String &value)
void SetArn(const Aws::String &value)
void SetHierarchies(Aws::Vector< AssetHierarchy > &&value)
AssetSummary & WithExternalId(Aws::String &&value)
const AssetStatus & GetStatus() const
void SetStatus(AssetStatus &&value)
void SetDescription(const Aws::String &value)
void SetHierarchies(const Aws::Vector< AssetHierarchy > &value)
const Aws::Vector< AssetHierarchy > & GetHierarchies() const
void SetAssetModelId(const char *value)
void SetId(Aws::String &&value)
AssetSummary & WithAssetModelId(const char *value)
AssetSummary & WithStatus(const AssetStatus &value)
AssetSummary & WithId(const Aws::String &value)
void SetExternalId(const char *value)
AssetSummary & AddHierarchies(AssetHierarchy &&value)
const Aws::String & GetAssetModelId() const
void SetAssetModelId(const Aws::String &value)
AWS_IOTSITEWISE_API AssetSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdateDate(Aws::Utils::DateTime &&value)
void SetCreationDate(Aws::Utils::DateTime &&value)
AssetSummary & WithAssetModelId(Aws::String &&value)
AssetSummary & WithCreationDate(Aws::Utils::DateTime &&value)
void SetExternalId(Aws::String &&value)
void SetDescription(const char *value)
void SetLastUpdateDate(const Aws::Utils::DateTime &value)
const Aws::String & GetExternalId() const
AssetSummary & WithStatus(AssetStatus &&value)
AssetSummary & WithName(const Aws::String &value)
const Aws::String & GetName() const
void SetExternalId(const Aws::String &value)
AssetSummary & WithAssetModelId(const Aws::String &value)
const Aws::String & GetArn() const
AssetSummary & WithExternalId(const char *value)
const Aws::Utils::DateTime & GetLastUpdateDate() const
AssetSummary & WithName(const char *value)
const Aws::String & GetId() const
void SetName(Aws::String &&value)
void SetName(const char *value)
AssetSummary & WithExternalId(const Aws::String &value)
AssetSummary & WithDescription(Aws::String &&value)
AssetSummary & WithArn(Aws::String &&value)
void SetDescription(Aws::String &&value)
const Aws::String & GetDescription() const
void SetAssetModelId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationDate() const
AssetSummary & WithLastUpdateDate(const Aws::Utils::DateTime &value)
void SetCreationDate(const Aws::Utils::DateTime &value)
AssetSummary & WithLastUpdateDate(Aws::Utils::DateTime &&value)
AssetSummary & WithArn(const Aws::String &value)
AssetSummary & WithHierarchies(Aws::Vector< AssetHierarchy > &&value)
AssetSummary & WithCreationDate(const Aws::Utils::DateTime &value)
AssetSummary & WithId(Aws::String &&value)
AssetSummary & WithDescription(const Aws::String &value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSITEWISE_API AssetSummary()
AssetSummary & WithHierarchies(const Aws::Vector< AssetHierarchy > &value)
AssetSummary & WithId(const char *value)
void SetName(const Aws::String &value)
AssetSummary & AddHierarchies(const AssetHierarchy &value)
void SetStatus(const AssetStatus &value)
AssetSummary & WithArn(const char *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