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>
17template <
typename RESULT_TYPE>
18class AmazonWebServiceResult;
38 template <
typename IdT = Aws::String>
40 m_idHasBeenSet =
true;
41 m_id = std::forward<IdT>(value);
43 template <
typename IdT = Aws::String>
45 SetId(std::forward<IdT>(value));
55 template <
typename DomainIdT = Aws::String>
57 m_domainIdHasBeenSet =
true;
58 m_domainId = std::forward<DomainIdT>(value);
60 template <
typename DomainIdT = Aws::String>
72 template <
typename NameT = Aws::String>
74 m_nameHasBeenSet =
true;
75 m_name = std::forward<NameT>(value);
77 template <
typename NameT = Aws::String>
79 SetName(std::forward<NameT>(value));
89 template <
typename ParentDomainUnitIdT = Aws::String>
91 m_parentDomainUnitIdHasBeenSet =
true;
92 m_parentDomainUnitId = std::forward<ParentDomainUnitIdT>(value);
94 template <
typename ParentDomainUnitIdT = Aws::String>
106 template <
typename DescriptionT = Aws::String>
108 m_descriptionHasBeenSet =
true;
109 m_description = std::forward<DescriptionT>(value);
111 template <
typename DescriptionT = Aws::String>
123 template <
typename OwnersT = Aws::Vector<DomainUnitOwnerProperties>>
125 m_ownersHasBeenSet =
true;
126 m_owners = std::forward<OwnersT>(value);
128 template <
typename OwnersT = Aws::Vector<DomainUnitOwnerProperties>>
133 template <
typename OwnersT = DomainUnitOwnerProperties>
135 m_ownersHasBeenSet =
true;
136 m_owners.emplace_back(std::forward<OwnersT>(value));
146 template <
typename AncestorDomainUnitIdsT = Aws::Vector<Aws::String>>
148 m_ancestorDomainUnitIdsHasBeenSet =
true;
149 m_ancestorDomainUnitIds = std::forward<AncestorDomainUnitIdsT>(value);
151 template <
typename AncestorDomainUnitIdsT = Aws::Vector<Aws::String>>
156 template <
typename AncestorDomainUnitIdsT = Aws::String>
158 m_ancestorDomainUnitIdsHasBeenSet =
true;
159 m_ancestorDomainUnitIds.emplace_back(std::forward<AncestorDomainUnitIdsT>(value));
169 template <
typename CreatedAtT = Aws::Utils::DateTime>
171 m_createdAtHasBeenSet =
true;
172 m_createdAt = std::forward<CreatedAtT>(value);
174 template <
typename CreatedAtT = Aws::Utils::DateTime>
186 template <
typename CreatedByT = Aws::String>
188 m_createdByHasBeenSet =
true;
189 m_createdBy = std::forward<CreatedByT>(value);
191 template <
typename CreatedByT = Aws::String>
201 template <
typename RequestIdT = Aws::String>
203 m_requestIdHasBeenSet =
true;
204 m_requestId = std::forward<RequestIdT>(value);
206 template <
typename RequestIdT = Aws::String>
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;
CreateDomainUnitResult & WithRequestId(RequestIdT &&value)
void SetCreatedBy(CreatedByT &&value)
void SetRequestId(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
void SetOwners(OwnersT &&value)
CreateDomainUnitResult & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetName() const
AWS_DATAZONE_API CreateDomainUnitResult()=default
CreateDomainUnitResult & AddOwners(OwnersT &&value)
const Aws::String & GetDomainId() const
const Aws::String & GetParentDomainUnitId() const
CreateDomainUnitResult & WithDomainId(DomainIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetDescription(DescriptionT &&value)
void SetDomainId(DomainIdT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetDescription() const
CreateDomainUnitResult & WithCreatedBy(CreatedByT &&value)
AWS_DATAZONE_API CreateDomainUnitResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetName(NameT &&value)
CreateDomainUnitResult & AddAncestorDomainUnitIds(AncestorDomainUnitIdsT &&value)
void SetCreatedAt(CreatedAtT &&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)
const Aws::String & GetCreatedBy() const
CreateDomainUnitResult & WithOwners(OwnersT &&value)
const Aws::String & GetId() const
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