AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
CreateDomainUnitResult.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 CreateDomainUnitResult() = 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::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 CreateDomainUnitResult& 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>
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>>
130 SetOwners(std::forward<OwnersT>(value));
131 return *this;
132 }
133 template <typename OwnersT = DomainUnitOwnerProperties>
135 m_ownersHasBeenSet = true;
136 m_owners.emplace_back(std::forward<OwnersT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Vector<Aws::String>& GetAncestorDomainUnitIds() const { return m_ancestorDomainUnitIds; }
146 template <typename AncestorDomainUnitIdsT = Aws::Vector<Aws::String>>
147 void SetAncestorDomainUnitIds(AncestorDomainUnitIdsT&& value) {
148 m_ancestorDomainUnitIdsHasBeenSet = true;
149 m_ancestorDomainUnitIds = std::forward<AncestorDomainUnitIdsT>(value);
150 }
151 template <typename AncestorDomainUnitIdsT = Aws::Vector<Aws::String>>
152 CreateDomainUnitResult& WithAncestorDomainUnitIds(AncestorDomainUnitIdsT&& value) {
153 SetAncestorDomainUnitIds(std::forward<AncestorDomainUnitIdsT>(value));
154 return *this;
155 }
156 template <typename AncestorDomainUnitIdsT = Aws::String>
157 CreateDomainUnitResult& AddAncestorDomainUnitIds(AncestorDomainUnitIdsT&& value) {
158 m_ancestorDomainUnitIdsHasBeenSet = true;
159 m_ancestorDomainUnitIds.emplace_back(std::forward<AncestorDomainUnitIdsT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
169 template <typename CreatedAtT = Aws::Utils::DateTime>
170 void SetCreatedAt(CreatedAtT&& value) {
171 m_createdAtHasBeenSet = true;
172 m_createdAt = std::forward<CreatedAtT>(value);
173 }
174 template <typename CreatedAtT = Aws::Utils::DateTime>
176 SetCreatedAt(std::forward<CreatedAtT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
186 template <typename CreatedByT = Aws::String>
187 void SetCreatedBy(CreatedByT&& value) {
188 m_createdByHasBeenSet = true;
189 m_createdBy = std::forward<CreatedByT>(value);
190 }
191 template <typename CreatedByT = Aws::String>
193 SetCreatedBy(std::forward<CreatedByT>(value));
194 return *this;
195 }
197
199
200 inline const Aws::String& GetRequestId() const { return m_requestId; }
201 template <typename RequestIdT = Aws::String>
202 void SetRequestId(RequestIdT&& value) {
203 m_requestIdHasBeenSet = true;
204 m_requestId = std::forward<RequestIdT>(value);
205 }
206 template <typename RequestIdT = Aws::String>
208 SetRequestId(std::forward<RequestIdT>(value));
209 return *this;
210 }
212 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
213
214 private:
215 Aws::String m_id;
216
217 Aws::String m_domainId;
218
219 Aws::String m_name;
220
221 Aws::String m_parentDomainUnitId;
222
223 Aws::String m_description;
224
226
227 Aws::Vector<Aws::String> m_ancestorDomainUnitIds;
228
229 Aws::Utils::DateTime m_createdAt{};
230
231 Aws::String m_createdBy;
232
233 Aws::String m_requestId;
234 Aws::Http::HttpResponseCode m_HttpResponseCode;
235 bool m_idHasBeenSet = false;
236 bool m_domainIdHasBeenSet = false;
237 bool m_nameHasBeenSet = false;
238 bool m_parentDomainUnitIdHasBeenSet = false;
239 bool m_descriptionHasBeenSet = false;
240 bool m_ownersHasBeenSet = false;
241 bool m_ancestorDomainUnitIdsHasBeenSet = false;
242 bool m_createdAtHasBeenSet = false;
243 bool m_createdByHasBeenSet = false;
244 bool m_requestIdHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace DataZone
249} // namespace Aws
CreateDomainUnitResult & WithRequestId(RequestIdT &&value)
CreateDomainUnitResult & WithParentDomainUnitId(ParentDomainUnitIdT &&value)
void SetAncestorDomainUnitIds(AncestorDomainUnitIdsT &&value)
CreateDomainUnitResult & WithId(IdT &&value)
const Aws::Vector< DomainUnitOwnerProperties > & GetOwners() const
CreateDomainUnitResult & WithDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetAncestorDomainUnitIds() const
CreateDomainUnitResult & WithCreatedAt(CreatedAtT &&value)
AWS_DATAZONE_API CreateDomainUnitResult()=default
CreateDomainUnitResult & AddOwners(OwnersT &&value)
CreateDomainUnitResult & WithDomainId(DomainIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
CreateDomainUnitResult & WithCreatedBy(CreatedByT &&value)
AWS_DATAZONE_API CreateDomainUnitResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateDomainUnitResult & AddAncestorDomainUnitIds(AncestorDomainUnitIdsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateDomainUnitResult & WithAncestorDomainUnitIds(AncestorDomainUnitIdsT &&value)
CreateDomainUnitResult & WithName(NameT &&value)
AWS_DATAZONE_API CreateDomainUnitResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateDomainUnitResult & WithOwners(OwnersT &&value)
void SetParentDomainUnitId(ParentDomainUnitIdT &&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