AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetDomainUnitResult.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.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/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 GetDomainUnitResult() = default;
36
37
39
42 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
43 template<typename CreatedAtT = Aws::Utils::DateTime>
44 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
45 template<typename CreatedAtT = Aws::Utils::DateTime>
46 GetDomainUnitResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
48
50
53 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
54 template<typename CreatedByT = Aws::String>
55 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
56 template<typename CreatedByT = Aws::String>
57 GetDomainUnitResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 template<typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
67 template<typename DescriptionT = Aws::String>
68 GetDomainUnitResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
70
72
75 inline const Aws::String& GetDomainId() const { return m_domainId; }
76 template<typename DomainIdT = Aws::String>
77 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
78 template<typename DomainIdT = Aws::String>
79 GetDomainUnitResult& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
81
83
86 inline const Aws::String& GetId() const { return m_id; }
87 template<typename IdT = Aws::String>
88 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
89 template<typename IdT = Aws::String>
90 GetDomainUnitResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
98 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
99 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
100 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
101 GetDomainUnitResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
103
105
108 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
109 template<typename LastUpdatedByT = Aws::String>
110 void SetLastUpdatedBy(LastUpdatedByT&& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = std::forward<LastUpdatedByT>(value); }
111 template<typename LastUpdatedByT = Aws::String>
112 GetDomainUnitResult& WithLastUpdatedBy(LastUpdatedByT&& value) { SetLastUpdatedBy(std::forward<LastUpdatedByT>(value)); return *this;}
114
116
119 inline const Aws::String& GetName() const { return m_name; }
120 template<typename NameT = Aws::String>
121 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
122 template<typename NameT = Aws::String>
123 GetDomainUnitResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
125
127
130 inline const Aws::Vector<DomainUnitOwnerProperties>& GetOwners() const { return m_owners; }
131 template<typename OwnersT = Aws::Vector<DomainUnitOwnerProperties>>
132 void SetOwners(OwnersT&& value) { m_ownersHasBeenSet = true; m_owners = std::forward<OwnersT>(value); }
133 template<typename OwnersT = Aws::Vector<DomainUnitOwnerProperties>>
134 GetDomainUnitResult& WithOwners(OwnersT&& value) { SetOwners(std::forward<OwnersT>(value)); return *this;}
135 template<typename OwnersT = DomainUnitOwnerProperties>
136 GetDomainUnitResult& AddOwners(OwnersT&& value) { m_ownersHasBeenSet = true; m_owners.emplace_back(std::forward<OwnersT>(value)); return *this; }
138
140
143 inline const Aws::String& GetParentDomainUnitId() const { return m_parentDomainUnitId; }
144 template<typename ParentDomainUnitIdT = Aws::String>
145 void SetParentDomainUnitId(ParentDomainUnitIdT&& value) { m_parentDomainUnitIdHasBeenSet = true; m_parentDomainUnitId = std::forward<ParentDomainUnitIdT>(value); }
146 template<typename ParentDomainUnitIdT = Aws::String>
147 GetDomainUnitResult& WithParentDomainUnitId(ParentDomainUnitIdT&& value) { SetParentDomainUnitId(std::forward<ParentDomainUnitIdT>(value)); return *this;}
149
151
152 inline const Aws::String& GetRequestId() const { return m_requestId; }
153 template<typename RequestIdT = Aws::String>
154 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
155 template<typename RequestIdT = Aws::String>
156 GetDomainUnitResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
158 private:
159
160 Aws::Utils::DateTime m_createdAt{};
161 bool m_createdAtHasBeenSet = false;
162
163 Aws::String m_createdBy;
164 bool m_createdByHasBeenSet = false;
165
166 Aws::String m_description;
167 bool m_descriptionHasBeenSet = false;
168
169 Aws::String m_domainId;
170 bool m_domainIdHasBeenSet = false;
171
172 Aws::String m_id;
173 bool m_idHasBeenSet = false;
174
175 Aws::Utils::DateTime m_lastUpdatedAt{};
176 bool m_lastUpdatedAtHasBeenSet = false;
177
178 Aws::String m_lastUpdatedBy;
179 bool m_lastUpdatedByHasBeenSet = false;
180
181 Aws::String m_name;
182 bool m_nameHasBeenSet = false;
183
185 bool m_ownersHasBeenSet = false;
186
187 Aws::String m_parentDomainUnitId;
188 bool m_parentDomainUnitIdHasBeenSet = false;
189
190 Aws::String m_requestId;
191 bool m_requestIdHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace DataZone
196} // namespace Aws
const Aws::String & GetParentDomainUnitId() const
AWS_DATAZONE_API GetDomainUnitResult()=default
void SetParentDomainUnitId(ParentDomainUnitIdT &&value)
GetDomainUnitResult & WithLastUpdatedBy(LastUpdatedByT &&value)
AWS_DATAZONE_API GetDomainUnitResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDomainUnitResult & WithParentDomainUnitId(ParentDomainUnitIdT &&value)
GetDomainUnitResult & WithDescription(DescriptionT &&value)
GetDomainUnitResult & WithDomainId(DomainIdT &&value)
const Aws::Vector< DomainUnitOwnerProperties > & GetOwners() const
GetDomainUnitResult & AddOwners(OwnersT &&value)
GetDomainUnitResult & WithRequestId(RequestIdT &&value)
AWS_DATAZONE_API GetDomainUnitResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDomainUnitResult & WithOwners(OwnersT &&value)
GetDomainUnitResult & WithId(IdT &&value)
GetDomainUnitResult & WithName(NameT &&value)
GetDomainUnitResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetLastUpdatedBy(LastUpdatedByT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
GetDomainUnitResult & WithCreatedBy(CreatedByT &&value)
GetDomainUnitResult & WithCreatedAt(CreatedAtT &&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