AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GetDomainUnitResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/DomainUnitOwnerProperties.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace DataZone {
25namespace Model {
27 public:
28 AWS_DATAZONE_API GetDomainUnitResult() = default;
31
33
36 inline const Aws::String& GetId() const { return m_id; }
37 template <typename IdT = Aws::String>
38 void SetId(IdT&& value) {
39 m_idHasBeenSet = true;
40 m_id = std::forward<IdT>(value);
41 }
42 template <typename IdT = Aws::String>
44 SetId(std::forward<IdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetDomainId() const { return m_domainId; }
54 template <typename DomainIdT = Aws::String>
55 void SetDomainId(DomainIdT&& value) {
56 m_domainIdHasBeenSet = true;
57 m_domainId = std::forward<DomainIdT>(value);
58 }
59 template <typename DomainIdT = Aws::String>
60 GetDomainUnitResult& WithDomainId(DomainIdT&& value) {
61 SetDomainId(std::forward<DomainIdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 template <typename NameT = Aws::String>
72 void SetName(NameT&& value) {
73 m_nameHasBeenSet = true;
74 m_name = std::forward<NameT>(value);
75 }
76 template <typename NameT = Aws::String>
77 GetDomainUnitResult& WithName(NameT&& value) {
78 SetName(std::forward<NameT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetParentDomainUnitId() const { return m_parentDomainUnitId; }
88 template <typename ParentDomainUnitIdT = Aws::String>
89 void SetParentDomainUnitId(ParentDomainUnitIdT&& value) {
90 m_parentDomainUnitIdHasBeenSet = true;
91 m_parentDomainUnitId = std::forward<ParentDomainUnitIdT>(value);
92 }
93 template <typename ParentDomainUnitIdT = Aws::String>
94 GetDomainUnitResult& WithParentDomainUnitId(ParentDomainUnitIdT&& value) {
95 SetParentDomainUnitId(std::forward<ParentDomainUnitIdT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetDescription() const { return m_description; }
105 template <typename DescriptionT = Aws::String>
106 void SetDescription(DescriptionT&& value) {
107 m_descriptionHasBeenSet = true;
108 m_description = std::forward<DescriptionT>(value);
109 }
110 template <typename DescriptionT = Aws::String>
111 GetDomainUnitResult& WithDescription(DescriptionT&& value) {
112 SetDescription(std::forward<DescriptionT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Vector<DomainUnitOwnerProperties>& GetOwners() const { return m_owners; }
122 template <typename OwnersT = Aws::Vector<DomainUnitOwnerProperties>>
123 void SetOwners(OwnersT&& value) {
124 m_ownersHasBeenSet = true;
125 m_owners = std::forward<OwnersT>(value);
126 }
127 template <typename OwnersT = Aws::Vector<DomainUnitOwnerProperties>>
128 GetDomainUnitResult& WithOwners(OwnersT&& value) {
129 SetOwners(std::forward<OwnersT>(value));
130 return *this;
131 }
132 template <typename OwnersT = DomainUnitOwnerProperties>
133 GetDomainUnitResult& AddOwners(OwnersT&& value) {
134 m_ownersHasBeenSet = true;
135 m_owners.emplace_back(std::forward<OwnersT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
145 template <typename CreatedAtT = Aws::Utils::DateTime>
146 void SetCreatedAt(CreatedAtT&& value) {
147 m_createdAtHasBeenSet = true;
148 m_createdAt = std::forward<CreatedAtT>(value);
149 }
150 template <typename CreatedAtT = Aws::Utils::DateTime>
151 GetDomainUnitResult& WithCreatedAt(CreatedAtT&& value) {
152 SetCreatedAt(std::forward<CreatedAtT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
162 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
163 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
164 m_lastUpdatedAtHasBeenSet = true;
165 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
166 }
167 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
168 GetDomainUnitResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
169 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
179 template <typename CreatedByT = Aws::String>
180 void SetCreatedBy(CreatedByT&& value) {
181 m_createdByHasBeenSet = true;
182 m_createdBy = std::forward<CreatedByT>(value);
183 }
184 template <typename CreatedByT = Aws::String>
185 GetDomainUnitResult& WithCreatedBy(CreatedByT&& value) {
186 SetCreatedBy(std::forward<CreatedByT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
196 template <typename LastUpdatedByT = Aws::String>
197 void SetLastUpdatedBy(LastUpdatedByT&& value) {
198 m_lastUpdatedByHasBeenSet = true;
199 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
200 }
201 template <typename LastUpdatedByT = Aws::String>
202 GetDomainUnitResult& WithLastUpdatedBy(LastUpdatedByT&& value) {
203 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
204 return *this;
205 }
207
209
210 inline const Aws::String& GetRequestId() const { return m_requestId; }
211 template <typename RequestIdT = Aws::String>
212 void SetRequestId(RequestIdT&& value) {
213 m_requestIdHasBeenSet = true;
214 m_requestId = std::forward<RequestIdT>(value);
215 }
216 template <typename RequestIdT = Aws::String>
217 GetDomainUnitResult& WithRequestId(RequestIdT&& value) {
218 SetRequestId(std::forward<RequestIdT>(value));
219 return *this;
220 }
222 private:
223 Aws::String m_id;
224
225 Aws::String m_domainId;
226
227 Aws::String m_name;
228
229 Aws::String m_parentDomainUnitId;
230
231 Aws::String m_description;
232
234
235 Aws::Utils::DateTime m_createdAt{};
236
237 Aws::Utils::DateTime m_lastUpdatedAt{};
238
239 Aws::String m_createdBy;
240
241 Aws::String m_lastUpdatedBy;
242
243 Aws::String m_requestId;
244 bool m_idHasBeenSet = false;
245 bool m_domainIdHasBeenSet = false;
246 bool m_nameHasBeenSet = false;
247 bool m_parentDomainUnitIdHasBeenSet = false;
248 bool m_descriptionHasBeenSet = false;
249 bool m_ownersHasBeenSet = false;
250 bool m_createdAtHasBeenSet = false;
251 bool m_lastUpdatedAtHasBeenSet = false;
252 bool m_createdByHasBeenSet = false;
253 bool m_lastUpdatedByHasBeenSet = false;
254 bool m_requestIdHasBeenSet = false;
255};
256
257} // namespace Model
258} // namespace DataZone
259} // namespace Aws
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