AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateDomainUnitResult.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/DomainUnitOwnerProperties.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DataZone
27{
28namespace Model
29{
31 {
32 public:
33 AWS_DATAZONE_API CreateDomainUnitResult() = default;
36
37
39
42 inline const Aws::Vector<Aws::String>& GetAncestorDomainUnitIds() const { return m_ancestorDomainUnitIds; }
43 template<typename AncestorDomainUnitIdsT = Aws::Vector<Aws::String>>
44 void SetAncestorDomainUnitIds(AncestorDomainUnitIdsT&& value) { m_ancestorDomainUnitIdsHasBeenSet = true; m_ancestorDomainUnitIds = std::forward<AncestorDomainUnitIdsT>(value); }
45 template<typename AncestorDomainUnitIdsT = Aws::Vector<Aws::String>>
46 CreateDomainUnitResult& WithAncestorDomainUnitIds(AncestorDomainUnitIdsT&& value) { SetAncestorDomainUnitIds(std::forward<AncestorDomainUnitIdsT>(value)); return *this;}
47 template<typename AncestorDomainUnitIdsT = Aws::String>
48 CreateDomainUnitResult& AddAncestorDomainUnitIds(AncestorDomainUnitIdsT&& value) { m_ancestorDomainUnitIdsHasBeenSet = true; m_ancestorDomainUnitIds.emplace_back(std::forward<AncestorDomainUnitIdsT>(value)); return *this; }
50
52
55 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
56 template<typename CreatedAtT = Aws::Utils::DateTime>
57 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
58 template<typename CreatedAtT = Aws::Utils::DateTime>
59 CreateDomainUnitResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
61
63
66 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
67 template<typename CreatedByT = Aws::String>
68 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
69 template<typename CreatedByT = Aws::String>
70 CreateDomainUnitResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 template<typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
80 template<typename DescriptionT = Aws::String>
81 CreateDomainUnitResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
83
85
88 inline const Aws::String& GetDomainId() const { return m_domainId; }
89 template<typename DomainIdT = Aws::String>
90 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
91 template<typename DomainIdT = Aws::String>
92 CreateDomainUnitResult& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
94
96
99 inline const Aws::String& GetId() const { return m_id; }
100 template<typename IdT = Aws::String>
101 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
102 template<typename IdT = Aws::String>
103 CreateDomainUnitResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
105
107
110 inline const Aws::String& GetName() const { return m_name; }
111 template<typename NameT = Aws::String>
112 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
113 template<typename NameT = Aws::String>
114 CreateDomainUnitResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_ownersHasBeenSet = true; m_owners = std::forward<OwnersT>(value); }
124 template<typename OwnersT = Aws::Vector<DomainUnitOwnerProperties>>
125 CreateDomainUnitResult& WithOwners(OwnersT&& value) { SetOwners(std::forward<OwnersT>(value)); return *this;}
126 template<typename OwnersT = DomainUnitOwnerProperties>
127 CreateDomainUnitResult& AddOwners(OwnersT&& value) { m_ownersHasBeenSet = true; m_owners.emplace_back(std::forward<OwnersT>(value)); return *this; }
129
131
134 inline const Aws::String& GetParentDomainUnitId() const { return m_parentDomainUnitId; }
135 template<typename ParentDomainUnitIdT = Aws::String>
136 void SetParentDomainUnitId(ParentDomainUnitIdT&& value) { m_parentDomainUnitIdHasBeenSet = true; m_parentDomainUnitId = std::forward<ParentDomainUnitIdT>(value); }
137 template<typename ParentDomainUnitIdT = Aws::String>
138 CreateDomainUnitResult& WithParentDomainUnitId(ParentDomainUnitIdT&& value) { SetParentDomainUnitId(std::forward<ParentDomainUnitIdT>(value)); return *this;}
140
142
143 inline const Aws::String& GetRequestId() const { return m_requestId; }
144 template<typename RequestIdT = Aws::String>
145 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
146 template<typename RequestIdT = Aws::String>
147 CreateDomainUnitResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
149 private:
150
151 Aws::Vector<Aws::String> m_ancestorDomainUnitIds;
152 bool m_ancestorDomainUnitIdsHasBeenSet = false;
153
154 Aws::Utils::DateTime m_createdAt{};
155 bool m_createdAtHasBeenSet = false;
156
157 Aws::String m_createdBy;
158 bool m_createdByHasBeenSet = false;
159
160 Aws::String m_description;
161 bool m_descriptionHasBeenSet = false;
162
163 Aws::String m_domainId;
164 bool m_domainIdHasBeenSet = false;
165
166 Aws::String m_id;
167 bool m_idHasBeenSet = false;
168
169 Aws::String m_name;
170 bool m_nameHasBeenSet = false;
171
173 bool m_ownersHasBeenSet = false;
174
175 Aws::String m_parentDomainUnitId;
176 bool m_parentDomainUnitIdHasBeenSet = false;
177
178 Aws::String m_requestId;
179 bool m_requestIdHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace DataZone
184} // 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