AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociatedAssetsSummary.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 AssociatedAssetsSummary();
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 AssociatedAssetsSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline AssociatedAssetsSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline AssociatedAssetsSummary& 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 AssociatedAssetsSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 inline AssociatedAssetsSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
73 inline AssociatedAssetsSummary& 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 AssociatedAssetsSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
86 inline AssociatedAssetsSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
87 inline AssociatedAssetsSummary& 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 AssociatedAssetsSummary& WithAssetModelId(const Aws::String& value) { SetAssetModelId(value); return *this;}
100 inline AssociatedAssetsSummary& WithAssetModelId(Aws::String&& value) { SetAssetModelId(std::move(value)); return *this;}
101 inline AssociatedAssetsSummary& 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); }
113 inline AssociatedAssetsSummary& 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); }
125 inline AssociatedAssetsSummary& 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 AssociatedAssetsSummary& WithStatus(const AssetStatus& value) { SetStatus(value); return *this;}
137 inline AssociatedAssetsSummary& 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); }
150 inline AssociatedAssetsSummary& WithHierarchies(Aws::Vector<AssetHierarchy>&& value) { SetHierarchies(std::move(value)); return *this;}
151 inline AssociatedAssetsSummary& AddHierarchies(const AssetHierarchy& value) { m_hierarchiesHasBeenSet = true; m_hierarchies.push_back(value); return *this; }
152 inline AssociatedAssetsSummary& 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 AssociatedAssetsSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
165 inline AssociatedAssetsSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
166 inline AssociatedAssetsSummary& 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 AssociatedAssetsSummary& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
181 inline AssociatedAssetsSummary& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
182 inline AssociatedAssetsSummary& 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 SetHierarchies(const Aws::Vector< AssetHierarchy > &value)
AssociatedAssetsSummary & WithStatus(const AssetStatus &value)
AssociatedAssetsSummary & WithId(const Aws::String &value)
AssociatedAssetsSummary & WithName(Aws::String &&value)
AssociatedAssetsSummary & WithLastUpdateDate(const Aws::Utils::DateTime &value)
AssociatedAssetsSummary & WithArn(Aws::String &&value)
AssociatedAssetsSummary & WithHierarchies(const Aws::Vector< AssetHierarchy > &value)
AssociatedAssetsSummary & AddHierarchies(AssetHierarchy &&value)
AssociatedAssetsSummary & AddHierarchies(const AssetHierarchy &value)
AssociatedAssetsSummary & WithCreationDate(Aws::Utils::DateTime &&value)
AssociatedAssetsSummary & WithExternalId(const Aws::String &value)
AssociatedAssetsSummary & WithDescription(Aws::String &&value)
const Aws::Vector< AssetHierarchy > & GetHierarchies() const
AssociatedAssetsSummary & WithExternalId(const char *value)
AssociatedAssetsSummary & WithHierarchies(Aws::Vector< AssetHierarchy > &&value)
const Aws::Utils::DateTime & GetCreationDate() const
AssociatedAssetsSummary & WithExternalId(Aws::String &&value)
void SetHierarchies(Aws::Vector< AssetHierarchy > &&value)
AssociatedAssetsSummary & WithAssetModelId(Aws::String &&value)
void SetLastUpdateDate(const Aws::Utils::DateTime &value)
AssociatedAssetsSummary & WithStatus(AssetStatus &&value)
AssociatedAssetsSummary & WithName(const Aws::String &value)
AssociatedAssetsSummary & WithCreationDate(const Aws::Utils::DateTime &value)
AssociatedAssetsSummary & WithArn(const char *value)
void SetCreationDate(const Aws::Utils::DateTime &value)
AssociatedAssetsSummary & WithAssetModelId(const char *value)
AssociatedAssetsSummary & WithArn(const Aws::String &value)
AssociatedAssetsSummary & WithAssetModelId(const Aws::String &value)
AssociatedAssetsSummary & WithId(Aws::String &&value)
const Aws::Utils::DateTime & GetLastUpdateDate() const
AWS_IOTSITEWISE_API AssociatedAssetsSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AssociatedAssetsSummary & WithName(const char *value)
AWS_IOTSITEWISE_API AssociatedAssetsSummary(Aws::Utils::Json::JsonView jsonValue)
AssociatedAssetsSummary & WithLastUpdateDate(Aws::Utils::DateTime &&value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssociatedAssetsSummary & WithDescription(const Aws::String &value)
AssociatedAssetsSummary & WithDescription(const char *value)
AssociatedAssetsSummary & WithId(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