AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreateDomainUnitResult.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 CreateDomainUnitResult() = 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::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 CreateDomainUnitResult& 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>
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>>
129 SetOwners(std::forward<OwnersT>(value));
130 return *this;
131 }
132 template <typename OwnersT = DomainUnitOwnerProperties>
134 m_ownersHasBeenSet = true;
135 m_owners.emplace_back(std::forward<OwnersT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Vector<Aws::String>& GetAncestorDomainUnitIds() const { return m_ancestorDomainUnitIds; }
145 template <typename AncestorDomainUnitIdsT = Aws::Vector<Aws::String>>
146 void SetAncestorDomainUnitIds(AncestorDomainUnitIdsT&& value) {
147 m_ancestorDomainUnitIdsHasBeenSet = true;
148 m_ancestorDomainUnitIds = std::forward<AncestorDomainUnitIdsT>(value);
149 }
150 template <typename AncestorDomainUnitIdsT = Aws::Vector<Aws::String>>
151 CreateDomainUnitResult& WithAncestorDomainUnitIds(AncestorDomainUnitIdsT&& value) {
152 SetAncestorDomainUnitIds(std::forward<AncestorDomainUnitIdsT>(value));
153 return *this;
154 }
155 template <typename AncestorDomainUnitIdsT = Aws::String>
156 CreateDomainUnitResult& AddAncestorDomainUnitIds(AncestorDomainUnitIdsT&& value) {
157 m_ancestorDomainUnitIdsHasBeenSet = true;
158 m_ancestorDomainUnitIds.emplace_back(std::forward<AncestorDomainUnitIdsT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
168 template <typename CreatedAtT = Aws::Utils::DateTime>
169 void SetCreatedAt(CreatedAtT&& value) {
170 m_createdAtHasBeenSet = true;
171 m_createdAt = std::forward<CreatedAtT>(value);
172 }
173 template <typename CreatedAtT = Aws::Utils::DateTime>
175 SetCreatedAt(std::forward<CreatedAtT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
185 template <typename CreatedByT = Aws::String>
186 void SetCreatedBy(CreatedByT&& value) {
187 m_createdByHasBeenSet = true;
188 m_createdBy = std::forward<CreatedByT>(value);
189 }
190 template <typename CreatedByT = Aws::String>
192 SetCreatedBy(std::forward<CreatedByT>(value));
193 return *this;
194 }
196
198
199 inline const Aws::String& GetRequestId() const { return m_requestId; }
200 template <typename RequestIdT = Aws::String>
201 void SetRequestId(RequestIdT&& value) {
202 m_requestIdHasBeenSet = true;
203 m_requestId = std::forward<RequestIdT>(value);
204 }
205 template <typename RequestIdT = Aws::String>
207 SetRequestId(std::forward<RequestIdT>(value));
208 return *this;
209 }
211 private:
212 Aws::String m_id;
213
214 Aws::String m_domainId;
215
216 Aws::String m_name;
217
218 Aws::String m_parentDomainUnitId;
219
220 Aws::String m_description;
221
223
224 Aws::Vector<Aws::String> m_ancestorDomainUnitIds;
225
226 Aws::Utils::DateTime m_createdAt{};
227
228 Aws::String m_createdBy;
229
230 Aws::String m_requestId;
231 bool m_idHasBeenSet = false;
232 bool m_domainIdHasBeenSet = false;
233 bool m_nameHasBeenSet = false;
234 bool m_parentDomainUnitIdHasBeenSet = false;
235 bool m_descriptionHasBeenSet = false;
236 bool m_ownersHasBeenSet = false;
237 bool m_ancestorDomainUnitIdsHasBeenSet = false;
238 bool m_createdAtHasBeenSet = false;
239 bool m_createdByHasBeenSet = false;
240 bool m_requestIdHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace DataZone
245} // 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)
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