AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
UpdateDomainUnitResult.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 UpdateDomainUnitResult() = 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>
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>
79 SetName(std::forward<NameT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Vector<DomainUnitOwnerProperties>& GetOwners() const { return m_owners; }
89 template <typename OwnersT = Aws::Vector<DomainUnitOwnerProperties>>
90 void SetOwners(OwnersT&& value) {
91 m_ownersHasBeenSet = true;
92 m_owners = std::forward<OwnersT>(value);
93 }
94 template <typename OwnersT = Aws::Vector<DomainUnitOwnerProperties>>
96 SetOwners(std::forward<OwnersT>(value));
97 return *this;
98 }
99 template <typename OwnersT = DomainUnitOwnerProperties>
101 m_ownersHasBeenSet = true;
102 m_owners.emplace_back(std::forward<OwnersT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetDescription() const { return m_description; }
112 template <typename DescriptionT = Aws::String>
113 void SetDescription(DescriptionT&& value) {
114 m_descriptionHasBeenSet = true;
115 m_description = std::forward<DescriptionT>(value);
116 }
117 template <typename DescriptionT = Aws::String>
119 SetDescription(std::forward<DescriptionT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetParentDomainUnitId() const { return m_parentDomainUnitId; }
129 template <typename ParentDomainUnitIdT = Aws::String>
130 void SetParentDomainUnitId(ParentDomainUnitIdT&& value) {
131 m_parentDomainUnitIdHasBeenSet = true;
132 m_parentDomainUnitId = std::forward<ParentDomainUnitIdT>(value);
133 }
134 template <typename ParentDomainUnitIdT = Aws::String>
135 UpdateDomainUnitResult& WithParentDomainUnitId(ParentDomainUnitIdT&& value) {
136 SetParentDomainUnitId(std::forward<ParentDomainUnitIdT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
147 template <typename CreatedAtT = Aws::Utils::DateTime>
148 void SetCreatedAt(CreatedAtT&& value) {
149 m_createdAtHasBeenSet = true;
150 m_createdAt = std::forward<CreatedAtT>(value);
151 }
152 template <typename CreatedAtT = Aws::Utils::DateTime>
154 SetCreatedAt(std::forward<CreatedAtT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
164 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
165 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
166 m_lastUpdatedAtHasBeenSet = true;
167 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
168 }
169 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
170 UpdateDomainUnitResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
171 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
181 template <typename CreatedByT = Aws::String>
182 void SetCreatedBy(CreatedByT&& value) {
183 m_createdByHasBeenSet = true;
184 m_createdBy = std::forward<CreatedByT>(value);
185 }
186 template <typename CreatedByT = Aws::String>
188 SetCreatedBy(std::forward<CreatedByT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
198 template <typename LastUpdatedByT = Aws::String>
199 void SetLastUpdatedBy(LastUpdatedByT&& value) {
200 m_lastUpdatedByHasBeenSet = true;
201 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
202 }
203 template <typename LastUpdatedByT = Aws::String>
204 UpdateDomainUnitResult& WithLastUpdatedBy(LastUpdatedByT&& value) {
205 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
206 return *this;
207 }
209
211
212 inline const Aws::String& GetRequestId() const { return m_requestId; }
213 template <typename RequestIdT = Aws::String>
214 void SetRequestId(RequestIdT&& value) {
215 m_requestIdHasBeenSet = true;
216 m_requestId = std::forward<RequestIdT>(value);
217 }
218 template <typename RequestIdT = Aws::String>
220 SetRequestId(std::forward<RequestIdT>(value));
221 return *this;
222 }
224 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
225
226 private:
227 Aws::String m_id;
228
229 Aws::String m_domainId;
230
231 Aws::String m_name;
232
234
235 Aws::String m_description;
236
237 Aws::String m_parentDomainUnitId;
238
239 Aws::Utils::DateTime m_createdAt{};
240
241 Aws::Utils::DateTime m_lastUpdatedAt{};
242
243 Aws::String m_createdBy;
244
245 Aws::String m_lastUpdatedBy;
246
247 Aws::String m_requestId;
248 Aws::Http::HttpResponseCode m_HttpResponseCode;
249 bool m_idHasBeenSet = false;
250 bool m_domainIdHasBeenSet = false;
251 bool m_nameHasBeenSet = false;
252 bool m_ownersHasBeenSet = false;
253 bool m_descriptionHasBeenSet = false;
254 bool m_parentDomainUnitIdHasBeenSet = false;
255 bool m_createdAtHasBeenSet = false;
256 bool m_lastUpdatedAtHasBeenSet = false;
257 bool m_createdByHasBeenSet = false;
258 bool m_lastUpdatedByHasBeenSet = false;
259 bool m_requestIdHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace DataZone
264} // namespace Aws
UpdateDomainUnitResult & AddOwners(OwnersT &&value)
const Aws::Vector< DomainUnitOwnerProperties > & GetOwners() const
AWS_DATAZONE_API UpdateDomainUnitResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateDomainUnitResult & WithCreatedBy(CreatedByT &&value)
UpdateDomainUnitResult & WithDescription(DescriptionT &&value)
UpdateDomainUnitResult & WithRequestId(RequestIdT &&value)
UpdateDomainUnitResult & WithCreatedAt(CreatedAtT &&value)
AWS_DATAZONE_API UpdateDomainUnitResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateDomainUnitResult & WithOwners(OwnersT &&value)
AWS_DATAZONE_API UpdateDomainUnitResult()=default
const Aws::Utils::DateTime & GetCreatedAt() const
void SetParentDomainUnitId(ParentDomainUnitIdT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
UpdateDomainUnitResult & WithName(NameT &&value)
UpdateDomainUnitResult & WithLastUpdatedBy(LastUpdatedByT &&value)
UpdateDomainUnitResult & WithId(IdT &&value)
UpdateDomainUnitResult & WithParentDomainUnitId(ParentDomainUnitIdT &&value)
UpdateDomainUnitResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
UpdateDomainUnitResult & WithDomainId(DomainIdT &&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