AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DomainSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/DomainStatus.h>
11#include <aws/datazone/model/DomainVersion.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataZone {
23namespace Model {
24
31 public:
32 AWS_DATAZONE_API DomainSummary() = default;
33 AWS_DATAZONE_API DomainSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 DomainSummary& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 DomainSummary& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 DomainSummary& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetArn() const { return m_arn; }
96 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
97 template <typename ArnT = Aws::String>
98 void SetArn(ArnT&& value) {
99 m_arnHasBeenSet = true;
100 m_arn = std::forward<ArnT>(value);
101 }
102 template <typename ArnT = Aws::String>
103 DomainSummary& WithArn(ArnT&& value) {
104 SetArn(std::forward<ArnT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetManagedAccountId() const { return m_managedAccountId; }
115 inline bool ManagedAccountIdHasBeenSet() const { return m_managedAccountIdHasBeenSet; }
116 template <typename ManagedAccountIdT = Aws::String>
117 void SetManagedAccountId(ManagedAccountIdT&& value) {
118 m_managedAccountIdHasBeenSet = true;
119 m_managedAccountId = std::forward<ManagedAccountIdT>(value);
120 }
121 template <typename ManagedAccountIdT = Aws::String>
122 DomainSummary& WithManagedAccountId(ManagedAccountIdT&& value) {
123 SetManagedAccountId(std::forward<ManagedAccountIdT>(value));
124 return *this;
125 }
127
129
132 inline DomainStatus GetStatus() const { return m_status; }
133 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
134 inline void SetStatus(DomainStatus value) {
135 m_statusHasBeenSet = true;
136 m_status = value;
137 }
139 SetStatus(value);
140 return *this;
141 }
143
145
148 inline const Aws::String& GetPortalUrl() const { return m_portalUrl; }
149 inline bool PortalUrlHasBeenSet() const { return m_portalUrlHasBeenSet; }
150 template <typename PortalUrlT = Aws::String>
151 void SetPortalUrl(PortalUrlT&& value) {
152 m_portalUrlHasBeenSet = true;
153 m_portalUrl = std::forward<PortalUrlT>(value);
154 }
155 template <typename PortalUrlT = Aws::String>
156 DomainSummary& WithPortalUrl(PortalUrlT&& value) {
157 SetPortalUrl(std::forward<PortalUrlT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
167 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
168 template <typename CreatedAtT = Aws::Utils::DateTime>
169 void SetCreatedAt(CreatedAtT&& value) {
170 m_createdAtHasBeenSet = true;
171 m_createdAt = std::forward<CreatedAtT>(value);
172 }
173 template <typename CreatedAtT = Aws::Utils::DateTime>
174 DomainSummary& WithCreatedAt(CreatedAtT&& value) {
175 SetCreatedAt(std::forward<CreatedAtT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
185 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
186 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
187 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
188 m_lastUpdatedAtHasBeenSet = true;
189 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
190 }
191 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
192 DomainSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) {
193 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
194 return *this;
195 }
197
199
202 inline DomainVersion GetDomainVersion() const { return m_domainVersion; }
203 inline bool DomainVersionHasBeenSet() const { return m_domainVersionHasBeenSet; }
204 inline void SetDomainVersion(DomainVersion value) {
205 m_domainVersionHasBeenSet = true;
206 m_domainVersion = value;
207 }
209 SetDomainVersion(value);
210 return *this;
211 }
213 private:
214 Aws::String m_id;
215
216 Aws::String m_name;
217
218 Aws::String m_description;
219
220 Aws::String m_arn;
221
222 Aws::String m_managedAccountId;
223
225
226 Aws::String m_portalUrl;
227
228 Aws::Utils::DateTime m_createdAt{};
229
230 Aws::Utils::DateTime m_lastUpdatedAt{};
231
232 DomainVersion m_domainVersion{DomainVersion::NOT_SET};
233 bool m_idHasBeenSet = false;
234 bool m_nameHasBeenSet = false;
235 bool m_descriptionHasBeenSet = false;
236 bool m_arnHasBeenSet = false;
237 bool m_managedAccountIdHasBeenSet = false;
238 bool m_statusHasBeenSet = false;
239 bool m_portalUrlHasBeenSet = false;
240 bool m_createdAtHasBeenSet = false;
241 bool m_lastUpdatedAtHasBeenSet = false;
242 bool m_domainVersionHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace DataZone
247} // namespace Aws
const Aws::String & GetId() const
DomainSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::String & GetDescription() const
DomainSummary & WithManagedAccountId(ManagedAccountIdT &&value)
const Aws::String & GetManagedAccountId() const
DomainSummary & WithArn(ArnT &&value)
AWS_DATAZONE_API DomainSummary()=default
const Aws::String & GetName() const
void SetDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetStatus(DomainStatus value)
DomainSummary & WithName(NameT &&value)
const Aws::String & GetPortalUrl() const
DomainSummary & WithDescription(DescriptionT &&value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
void SetPortalUrl(PortalUrlT &&value)
AWS_DATAZONE_API DomainSummary(Aws::Utils::Json::JsonView jsonValue)
DomainSummary & WithCreatedAt(CreatedAtT &&value)
void SetManagedAccountId(ManagedAccountIdT &&value)
DomainSummary & WithId(IdT &&value)
DomainSummary & WithDomainVersion(DomainVersion value)
DomainSummary & WithPortalUrl(PortalUrlT &&value)
DomainVersion GetDomainVersion() const
const Aws::String & GetArn() const
void SetDomainVersion(DomainVersion value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
DomainSummary & WithStatus(DomainStatus value)
void SetCreatedAt(CreatedAtT &&value)
AWS_DATAZONE_API DomainSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue