AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateDomainUnitResult.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 UpdateDomainUnitResult() = 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>
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>
78 SetName(std::forward<NameT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Vector<DomainUnitOwnerProperties>& GetOwners() const { return m_owners; }
88 template <typename OwnersT = Aws::Vector<DomainUnitOwnerProperties>>
89 void SetOwners(OwnersT&& value) {
90 m_ownersHasBeenSet = true;
91 m_owners = std::forward<OwnersT>(value);
92 }
93 template <typename OwnersT = Aws::Vector<DomainUnitOwnerProperties>>
95 SetOwners(std::forward<OwnersT>(value));
96 return *this;
97 }
98 template <typename OwnersT = DomainUnitOwnerProperties>
100 m_ownersHasBeenSet = true;
101 m_owners.emplace_back(std::forward<OwnersT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetDescription() const { return m_description; }
111 template <typename DescriptionT = Aws::String>
112 void SetDescription(DescriptionT&& value) {
113 m_descriptionHasBeenSet = true;
114 m_description = std::forward<DescriptionT>(value);
115 }
116 template <typename DescriptionT = Aws::String>
118 SetDescription(std::forward<DescriptionT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetParentDomainUnitId() const { return m_parentDomainUnitId; }
128 template <typename ParentDomainUnitIdT = Aws::String>
129 void SetParentDomainUnitId(ParentDomainUnitIdT&& value) {
130 m_parentDomainUnitIdHasBeenSet = true;
131 m_parentDomainUnitId = std::forward<ParentDomainUnitIdT>(value);
132 }
133 template <typename ParentDomainUnitIdT = Aws::String>
134 UpdateDomainUnitResult& WithParentDomainUnitId(ParentDomainUnitIdT&& value) {
135 SetParentDomainUnitId(std::forward<ParentDomainUnitIdT>(value));
136 return *this;
137 }
139
141
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>
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 UpdateDomainUnitResult& 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>
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 UpdateDomainUnitResult& 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>
219 SetRequestId(std::forward<RequestIdT>(value));
220 return *this;
221 }
223 private:
224 Aws::String m_id;
225
226 Aws::String m_domainId;
227
228 Aws::String m_name;
229
231
232 Aws::String m_description;
233
234 Aws::String m_parentDomainUnitId;
235
236 Aws::Utils::DateTime m_createdAt{};
237
238 Aws::Utils::DateTime m_lastUpdatedAt{};
239
240 Aws::String m_createdBy;
241
242 Aws::String m_lastUpdatedBy;
243
244 Aws::String m_requestId;
245 bool m_idHasBeenSet = false;
246 bool m_domainIdHasBeenSet = false;
247 bool m_nameHasBeenSet = false;
248 bool m_ownersHasBeenSet = false;
249 bool m_descriptionHasBeenSet = false;
250 bool m_parentDomainUnitIdHasBeenSet = false;
251 bool m_createdAtHasBeenSet = false;
252 bool m_lastUpdatedAtHasBeenSet = false;
253 bool m_createdByHasBeenSet = false;
254 bool m_lastUpdatedByHasBeenSet = false;
255 bool m_requestIdHasBeenSet = false;
256};
257
258} // namespace Model
259} // namespace DataZone
260} // 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)
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