AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetListingResult.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/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/ListingItem.h>
12#include <aws/datazone/model/ListingStatus.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 GetListingResult() = default;
32
34
37 inline const Aws::String& GetDomainId() const { return m_domainId; }
38 template <typename DomainIdT = Aws::String>
39 void SetDomainId(DomainIdT&& value) {
40 m_domainIdHasBeenSet = true;
41 m_domainId = std::forward<DomainIdT>(value);
42 }
43 template <typename DomainIdT = Aws::String>
44 GetListingResult& WithDomainId(DomainIdT&& value) {
45 SetDomainId(std::forward<DomainIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetId() const { return m_id; }
55 template <typename IdT = Aws::String>
56 void SetId(IdT&& value) {
57 m_idHasBeenSet = true;
58 m_id = std::forward<IdT>(value);
59 }
60 template <typename IdT = Aws::String>
61 GetListingResult& WithId(IdT&& value) {
62 SetId(std::forward<IdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetListingRevision() const { return m_listingRevision; }
72 template <typename ListingRevisionT = Aws::String>
73 void SetListingRevision(ListingRevisionT&& value) {
74 m_listingRevisionHasBeenSet = true;
75 m_listingRevision = std::forward<ListingRevisionT>(value);
76 }
77 template <typename ListingRevisionT = Aws::String>
78 GetListingResult& WithListingRevision(ListingRevisionT&& value) {
79 SetListingRevision(std::forward<ListingRevisionT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
89 template <typename CreatedAtT = Aws::Utils::DateTime>
90 void SetCreatedAt(CreatedAtT&& value) {
91 m_createdAtHasBeenSet = true;
92 m_createdAt = std::forward<CreatedAtT>(value);
93 }
94 template <typename CreatedAtT = Aws::Utils::DateTime>
95 GetListingResult& WithCreatedAt(CreatedAtT&& value) {
96 SetCreatedAt(std::forward<CreatedAtT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
106 template <typename UpdatedAtT = Aws::Utils::DateTime>
107 void SetUpdatedAt(UpdatedAtT&& value) {
108 m_updatedAtHasBeenSet = true;
109 m_updatedAt = std::forward<UpdatedAtT>(value);
110 }
111 template <typename UpdatedAtT = Aws::Utils::DateTime>
112 GetListingResult& WithUpdatedAt(UpdatedAtT&& value) {
113 SetUpdatedAt(std::forward<UpdatedAtT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
123 template <typename CreatedByT = Aws::String>
124 void SetCreatedBy(CreatedByT&& value) {
125 m_createdByHasBeenSet = true;
126 m_createdBy = std::forward<CreatedByT>(value);
127 }
128 template <typename CreatedByT = Aws::String>
129 GetListingResult& WithCreatedBy(CreatedByT&& value) {
130 SetCreatedBy(std::forward<CreatedByT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
140 template <typename UpdatedByT = Aws::String>
141 void SetUpdatedBy(UpdatedByT&& value) {
142 m_updatedByHasBeenSet = true;
143 m_updatedBy = std::forward<UpdatedByT>(value);
144 }
145 template <typename UpdatedByT = Aws::String>
146 GetListingResult& WithUpdatedBy(UpdatedByT&& value) {
147 SetUpdatedBy(std::forward<UpdatedByT>(value));
148 return *this;
149 }
151
153
156 inline const ListingItem& GetItem() const { return m_item; }
157 template <typename ItemT = ListingItem>
158 void SetItem(ItemT&& value) {
159 m_itemHasBeenSet = true;
160 m_item = std::forward<ItemT>(value);
161 }
162 template <typename ItemT = ListingItem>
163 GetListingResult& WithItem(ItemT&& value) {
164 SetItem(std::forward<ItemT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetName() const { return m_name; }
174 template <typename NameT = Aws::String>
175 void SetName(NameT&& value) {
176 m_nameHasBeenSet = true;
177 m_name = std::forward<NameT>(value);
178 }
179 template <typename NameT = Aws::String>
180 GetListingResult& WithName(NameT&& value) {
181 SetName(std::forward<NameT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetDescription() const { return m_description; }
191 template <typename DescriptionT = Aws::String>
192 void SetDescription(DescriptionT&& value) {
193 m_descriptionHasBeenSet = true;
194 m_description = std::forward<DescriptionT>(value);
195 }
196 template <typename DescriptionT = Aws::String>
197 GetListingResult& WithDescription(DescriptionT&& value) {
198 SetDescription(std::forward<DescriptionT>(value));
199 return *this;
200 }
202
204
207 inline ListingStatus GetStatus() const { return m_status; }
208 inline void SetStatus(ListingStatus value) {
209 m_statusHasBeenSet = true;
210 m_status = value;
211 }
213 SetStatus(value);
214 return *this;
215 }
217
219
220 inline const Aws::String& GetRequestId() const { return m_requestId; }
221 template <typename RequestIdT = Aws::String>
222 void SetRequestId(RequestIdT&& value) {
223 m_requestIdHasBeenSet = true;
224 m_requestId = std::forward<RequestIdT>(value);
225 }
226 template <typename RequestIdT = Aws::String>
227 GetListingResult& WithRequestId(RequestIdT&& value) {
228 SetRequestId(std::forward<RequestIdT>(value));
229 return *this;
230 }
232 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
233
234 private:
235 Aws::String m_domainId;
236
237 Aws::String m_id;
238
239 Aws::String m_listingRevision;
240
241 Aws::Utils::DateTime m_createdAt{};
242
243 Aws::Utils::DateTime m_updatedAt{};
244
245 Aws::String m_createdBy;
246
247 Aws::String m_updatedBy;
248
249 ListingItem m_item;
250
251 Aws::String m_name;
252
253 Aws::String m_description;
254
256
257 Aws::String m_requestId;
258 Aws::Http::HttpResponseCode m_HttpResponseCode;
259 bool m_domainIdHasBeenSet = false;
260 bool m_idHasBeenSet = false;
261 bool m_listingRevisionHasBeenSet = false;
262 bool m_createdAtHasBeenSet = false;
263 bool m_updatedAtHasBeenSet = false;
264 bool m_createdByHasBeenSet = false;
265 bool m_updatedByHasBeenSet = false;
266 bool m_itemHasBeenSet = false;
267 bool m_nameHasBeenSet = false;
268 bool m_descriptionHasBeenSet = false;
269 bool m_statusHasBeenSet = false;
270 bool m_requestIdHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace DataZone
275} // namespace Aws
GetListingResult & WithItem(ItemT &&value)
const ListingItem & GetItem() const
const Aws::String & GetDescription() const
GetListingResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetUpdatedBy() const
const Aws::String & GetListingRevision() const
void SetDescription(DescriptionT &&value)
void SetListingRevision(ListingRevisionT &&value)
GetListingResult & WithCreatedBy(CreatedByT &&value)
const Aws::String & GetRequestId() const
GetListingResult & WithId(IdT &&value)
const Aws::String & GetId() const
GetListingResult & WithStatus(ListingStatus value)
const Aws::String & GetDomainId() const
AWS_DATAZONE_API GetListingResult()=default
GetListingResult & WithUpdatedBy(UpdatedByT &&value)
AWS_DATAZONE_API GetListingResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetListingResult & WithCreatedAt(CreatedAtT &&value)
GetListingResult & WithListingRevision(ListingRevisionT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetCreatedBy() const
GetListingResult & WithUpdatedAt(UpdatedAtT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetName() const
GetListingResult & WithDomainId(DomainIdT &&value)
AWS_DATAZONE_API GetListingResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetListingResult & WithName(NameT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetListingResult & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue