AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetDomainUnitResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/DomainUnitOwnerProperties.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace DataZone {
26namespace Model {
28 public:
29 AWS_DATAZONE_API GetDomainUnitResult() = default;
32
34
37 inline const Aws::String& GetId() const { return m_id; }
38 template <typename IdT = Aws::String>
39 void SetId(IdT&& value) {
40 m_idHasBeenSet = true;
41 m_id = std::forward<IdT>(value);
42 }
43 template <typename IdT = Aws::String>
45 SetId(std::forward<IdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetDomainId() const { return m_domainId; }
55 template <typename DomainIdT = Aws::String>
56 void SetDomainId(DomainIdT&& value) {
57 m_domainIdHasBeenSet = true;
58 m_domainId = std::forward<DomainIdT>(value);
59 }
60 template <typename DomainIdT = Aws::String>
61 GetDomainUnitResult& WithDomainId(DomainIdT&& value) {
62 SetDomainId(std::forward<DomainIdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 template <typename NameT = Aws::String>
73 void SetName(NameT&& value) {
74 m_nameHasBeenSet = true;
75 m_name = std::forward<NameT>(value);
76 }
77 template <typename NameT = Aws::String>
78 GetDomainUnitResult& WithName(NameT&& value) {
79 SetName(std::forward<NameT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetParentDomainUnitId() const { return m_parentDomainUnitId; }
89 template <typename ParentDomainUnitIdT = Aws::String>
90 void SetParentDomainUnitId(ParentDomainUnitIdT&& value) {
91 m_parentDomainUnitIdHasBeenSet = true;
92 m_parentDomainUnitId = std::forward<ParentDomainUnitIdT>(value);
93 }
94 template <typename ParentDomainUnitIdT = Aws::String>
95 GetDomainUnitResult& WithParentDomainUnitId(ParentDomainUnitIdT&& value) {
96 SetParentDomainUnitId(std::forward<ParentDomainUnitIdT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetDescription() const { return m_description; }
106 template <typename DescriptionT = Aws::String>
107 void SetDescription(DescriptionT&& value) {
108 m_descriptionHasBeenSet = true;
109 m_description = std::forward<DescriptionT>(value);
110 }
111 template <typename DescriptionT = Aws::String>
112 GetDomainUnitResult& WithDescription(DescriptionT&& value) {
113 SetDescription(std::forward<DescriptionT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Vector<DomainUnitOwnerProperties>& GetOwners() const { return m_owners; }
123 template <typename OwnersT = Aws::Vector<DomainUnitOwnerProperties>>
124 void SetOwners(OwnersT&& value) {
125 m_ownersHasBeenSet = true;
126 m_owners = std::forward<OwnersT>(value);
127 }
128 template <typename OwnersT = Aws::Vector<DomainUnitOwnerProperties>>
129 GetDomainUnitResult& WithOwners(OwnersT&& value) {
130 SetOwners(std::forward<OwnersT>(value));
131 return *this;
132 }
133 template <typename OwnersT = DomainUnitOwnerProperties>
134 GetDomainUnitResult& AddOwners(OwnersT&& value) {
135 m_ownersHasBeenSet = true;
136 m_owners.emplace_back(std::forward<OwnersT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
146 template <typename CreatedAtT = Aws::Utils::DateTime>
147 void SetCreatedAt(CreatedAtT&& value) {
148 m_createdAtHasBeenSet = true;
149 m_createdAt = std::forward<CreatedAtT>(value);
150 }
151 template <typename CreatedAtT = Aws::Utils::DateTime>
152 GetDomainUnitResult& WithCreatedAt(CreatedAtT&& value) {
153 SetCreatedAt(std::forward<CreatedAtT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
163 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
164 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
165 m_lastUpdatedAtHasBeenSet = true;
166 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
167 }
168 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
169 GetDomainUnitResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
170 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
180 template <typename CreatedByT = Aws::String>
181 void SetCreatedBy(CreatedByT&& value) {
182 m_createdByHasBeenSet = true;
183 m_createdBy = std::forward<CreatedByT>(value);
184 }
185 template <typename CreatedByT = Aws::String>
186 GetDomainUnitResult& WithCreatedBy(CreatedByT&& value) {
187 SetCreatedBy(std::forward<CreatedByT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
197 template <typename LastUpdatedByT = Aws::String>
198 void SetLastUpdatedBy(LastUpdatedByT&& value) {
199 m_lastUpdatedByHasBeenSet = true;
200 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
201 }
202 template <typename LastUpdatedByT = Aws::String>
203 GetDomainUnitResult& WithLastUpdatedBy(LastUpdatedByT&& value) {
204 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
205 return *this;
206 }
208
210
211 inline const Aws::String& GetRequestId() const { return m_requestId; }
212 template <typename RequestIdT = Aws::String>
213 void SetRequestId(RequestIdT&& value) {
214 m_requestIdHasBeenSet = true;
215 m_requestId = std::forward<RequestIdT>(value);
216 }
217 template <typename RequestIdT = Aws::String>
218 GetDomainUnitResult& WithRequestId(RequestIdT&& value) {
219 SetRequestId(std::forward<RequestIdT>(value));
220 return *this;
221 }
223 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
224
225 private:
226 Aws::String m_id;
227
228 Aws::String m_domainId;
229
230 Aws::String m_name;
231
232 Aws::String m_parentDomainUnitId;
233
234 Aws::String m_description;
235
237
238 Aws::Utils::DateTime m_createdAt{};
239
240 Aws::Utils::DateTime m_lastUpdatedAt{};
241
242 Aws::String m_createdBy;
243
244 Aws::String m_lastUpdatedBy;
245
246 Aws::String m_requestId;
247 Aws::Http::HttpResponseCode m_HttpResponseCode;
248 bool m_idHasBeenSet = false;
249 bool m_domainIdHasBeenSet = false;
250 bool m_nameHasBeenSet = false;
251 bool m_parentDomainUnitIdHasBeenSet = false;
252 bool m_descriptionHasBeenSet = false;
253 bool m_ownersHasBeenSet = false;
254 bool m_createdAtHasBeenSet = false;
255 bool m_lastUpdatedAtHasBeenSet = false;
256 bool m_createdByHasBeenSet = false;
257 bool m_lastUpdatedByHasBeenSet = false;
258 bool m_requestIdHasBeenSet = false;
259};
260
261} // namespace Model
262} // namespace DataZone
263} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetParentDomainUnitId() const
AWS_DATAZONE_API GetDomainUnitResult()=default
void SetParentDomainUnitId(ParentDomainUnitIdT &&value)
GetDomainUnitResult & WithLastUpdatedBy(LastUpdatedByT &&value)
AWS_DATAZONE_API GetDomainUnitResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDomainUnitResult & WithParentDomainUnitId(ParentDomainUnitIdT &&value)
GetDomainUnitResult & WithDescription(DescriptionT &&value)
GetDomainUnitResult & WithDomainId(DomainIdT &&value)
const Aws::Vector< DomainUnitOwnerProperties > & GetOwners() const
GetDomainUnitResult & AddOwners(OwnersT &&value)
GetDomainUnitResult & WithRequestId(RequestIdT &&value)
AWS_DATAZONE_API GetDomainUnitResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDomainUnitResult & WithOwners(OwnersT &&value)
GetDomainUnitResult & WithId(IdT &&value)
GetDomainUnitResult & WithName(NameT &&value)
GetDomainUnitResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetLastUpdatedBy(LastUpdatedByT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
GetDomainUnitResult & WithCreatedBy(CreatedByT &&value)
GetDomainUnitResult & WithCreatedAt(CreatedAtT &&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