AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GetPortalResult.h
1
6#pragma once
7#include <aws/apiportal/APIPortal_EXPORTS.h>
8#include <aws/apiportal/model/Authorization.h>
9#include <aws/apiportal/model/EndpointConfigurationResponse.h>
10#include <aws/apiportal/model/PortalContent.h>
11#include <aws/apiportal/model/PortalStatusException.h>
12#include <aws/apiportal/model/Preview.h>
13#include <aws/apiportal/model/PublishStatus.h>
14#include <aws/core/http/HttpResponse.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Json {
28class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace APIPortal {
32namespace Model {
34 public:
35 AWS_APIPORTAL_API GetPortalResult() = default;
38
40
43 inline const Aws::String& GetPortalId() const { return m_portalId; }
44 template <typename PortalIdT = Aws::String>
45 void SetPortalId(PortalIdT&& value) {
46 m_portalIdHasBeenSet = true;
47 m_portalId = std::forward<PortalIdT>(value);
48 }
49 template <typename PortalIdT = Aws::String>
50 GetPortalResult& WithPortalId(PortalIdT&& value) {
51 SetPortalId(std::forward<PortalIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetPortalArn() const { return m_portalArn; }
61 template <typename PortalArnT = Aws::String>
62 void SetPortalArn(PortalArnT&& value) {
63 m_portalArnHasBeenSet = true;
64 m_portalArn = std::forward<PortalArnT>(value);
65 }
66 template <typename PortalArnT = Aws::String>
67 GetPortalResult& WithPortalArn(PortalArnT&& value) {
68 SetPortalArn(std::forward<PortalArnT>(value));
69 return *this;
70 }
72
74
77 inline const EndpointConfigurationResponse& GetEndpointConfiguration() const { return m_endpointConfiguration; }
78 template <typename EndpointConfigurationT = EndpointConfigurationResponse>
79 void SetEndpointConfiguration(EndpointConfigurationT&& value) {
80 m_endpointConfigurationHasBeenSet = true;
81 m_endpointConfiguration = std::forward<EndpointConfigurationT>(value);
82 }
83 template <typename EndpointConfigurationT = EndpointConfigurationResponse>
84 GetPortalResult& WithEndpointConfiguration(EndpointConfigurationT&& value) {
85 SetEndpointConfiguration(std::forward<EndpointConfigurationT>(value));
86 return *this;
87 }
89
91
95 inline const Authorization& GetAuthorization() const { return m_authorization; }
96 template <typename AuthorizationT = Authorization>
97 void SetAuthorization(AuthorizationT&& value) {
98 m_authorizationHasBeenSet = true;
99 m_authorization = std::forward<AuthorizationT>(value);
100 }
101 template <typename AuthorizationT = Authorization>
102 GetPortalResult& WithAuthorization(AuthorizationT&& value) {
103 SetAuthorization(std::forward<AuthorizationT>(value));
104 return *this;
105 }
107
109
112 inline const PortalContent& GetPortalContent() const { return m_portalContent; }
113 template <typename PortalContentT = PortalContent>
114 void SetPortalContent(PortalContentT&& value) {
115 m_portalContentHasBeenSet = true;
116 m_portalContent = std::forward<PortalContentT>(value);
117 }
118 template <typename PortalContentT = PortalContent>
119 GetPortalResult& WithPortalContent(PortalContentT&& value) {
120 SetPortalContent(std::forward<PortalContentT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Vector<Aws::String>& GetIncludedProductArns() const { return m_includedProductArns; }
130 template <typename IncludedProductArnsT = Aws::Vector<Aws::String>>
131 void SetIncludedProductArns(IncludedProductArnsT&& value) {
132 m_includedProductArnsHasBeenSet = true;
133 m_includedProductArns = std::forward<IncludedProductArnsT>(value);
134 }
135 template <typename IncludedProductArnsT = Aws::Vector<Aws::String>>
136 GetPortalResult& WithIncludedProductArns(IncludedProductArnsT&& value) {
137 SetIncludedProductArns(std::forward<IncludedProductArnsT>(value));
138 return *this;
139 }
140 template <typename IncludedProductArnsT = Aws::String>
141 GetPortalResult& AddIncludedProductArns(IncludedProductArnsT&& value) {
142 m_includedProductArnsHasBeenSet = true;
143 m_includedProductArns.emplace_back(std::forward<IncludedProductArnsT>(value));
144 return *this;
145 }
147
149
153 inline PublishStatus GetPublishStatus() const { return m_publishStatus; }
154 inline void SetPublishStatus(PublishStatus value) {
155 m_publishStatusHasBeenSet = true;
156 m_publishStatus = value;
157 }
159 SetPublishStatus(value);
160 return *this;
161 }
163
165
166 inline const PortalStatusException& GetStatusException() const { return m_statusException; }
167 template <typename StatusExceptionT = PortalStatusException>
168 void SetStatusException(StatusExceptionT&& value) {
169 m_statusExceptionHasBeenSet = true;
170 m_statusException = std::forward<StatusExceptionT>(value);
171 }
172 template <typename StatusExceptionT = PortalStatusException>
173 GetPortalResult& WithStatusException(StatusExceptionT&& value) {
174 SetStatusException(std::forward<StatusExceptionT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
184 template <typename UpdatedAtT = Aws::Utils::DateTime>
185 void SetUpdatedAt(UpdatedAtT&& value) {
186 m_updatedAtHasBeenSet = true;
187 m_updatedAt = std::forward<UpdatedAtT>(value);
188 }
189 template <typename UpdatedAtT = Aws::Utils::DateTime>
190 GetPortalResult& WithUpdatedAt(UpdatedAtT&& value) {
191 SetUpdatedAt(std::forward<UpdatedAtT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Utils::DateTime& GetPublishedAt() const { return m_publishedAt; }
201 template <typename PublishedAtT = Aws::Utils::DateTime>
202 void SetPublishedAt(PublishedAtT&& value) {
203 m_publishedAtHasBeenSet = true;
204 m_publishedAt = std::forward<PublishedAtT>(value);
205 }
206 template <typename PublishedAtT = Aws::Utils::DateTime>
207 GetPortalResult& WithPublishedAt(PublishedAtT&& value) {
208 SetPublishedAt(std::forward<PublishedAtT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::String& GetPublishDescription() const { return m_publishDescription; }
218 template <typename PublishDescriptionT = Aws::String>
219 void SetPublishDescription(PublishDescriptionT&& value) {
220 m_publishDescriptionHasBeenSet = true;
221 m_publishDescription = std::forward<PublishDescriptionT>(value);
222 }
223 template <typename PublishDescriptionT = Aws::String>
224 GetPortalResult& WithPublishDescription(PublishDescriptionT&& value) {
225 SetPublishDescription(std::forward<PublishDescriptionT>(value));
226 return *this;
227 }
229
231
235 inline const Aws::String& GetRumAppMonitorName() const { return m_rumAppMonitorName; }
236 template <typename RumAppMonitorNameT = Aws::String>
237 void SetRumAppMonitorName(RumAppMonitorNameT&& value) {
238 m_rumAppMonitorNameHasBeenSet = true;
239 m_rumAppMonitorName = std::forward<RumAppMonitorNameT>(value);
240 }
241 template <typename RumAppMonitorNameT = Aws::String>
242 GetPortalResult& WithRumAppMonitorName(RumAppMonitorNameT&& value) {
243 SetRumAppMonitorName(std::forward<RumAppMonitorNameT>(value));
244 return *this;
245 }
247
249
253 inline const Preview& GetPreview() const { return m_preview; }
254 template <typename PreviewT = Preview>
255 void SetPreview(PreviewT&& value) {
256 m_previewHasBeenSet = true;
257 m_preview = std::forward<PreviewT>(value);
258 }
259 template <typename PreviewT = Preview>
260 GetPortalResult& WithPreview(PreviewT&& value) {
261 SetPreview(std::forward<PreviewT>(value));
262 return *this;
263 }
265
267
268 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
269 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
270 void SetTags(TagsT&& value) {
271 m_tagsHasBeenSet = true;
272 m_tags = std::forward<TagsT>(value);
273 }
274 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
275 GetPortalResult& WithTags(TagsT&& value) {
276 SetTags(std::forward<TagsT>(value));
277 return *this;
278 }
279 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
280 GetPortalResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
281 m_tagsHasBeenSet = true;
282 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
283 return *this;
284 }
286
288
289 inline const Aws::String& GetRequestId() const { return m_requestId; }
290 template <typename RequestIdT = Aws::String>
291 void SetRequestId(RequestIdT&& value) {
292 m_requestIdHasBeenSet = true;
293 m_requestId = std::forward<RequestIdT>(value);
294 }
295 template <typename RequestIdT = Aws::String>
296 GetPortalResult& WithRequestId(RequestIdT&& value) {
297 SetRequestId(std::forward<RequestIdT>(value));
298 return *this;
299 }
301 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
302
303 private:
304 Aws::String m_portalId;
305
306 Aws::String m_portalArn;
307
308 EndpointConfigurationResponse m_endpointConfiguration;
309
310 Authorization m_authorization;
311
312 PortalContent m_portalContent;
313
314 Aws::Vector<Aws::String> m_includedProductArns;
315
316 PublishStatus m_publishStatus{PublishStatus::NOT_SET};
317
318 PortalStatusException m_statusException;
319
320 Aws::Utils::DateTime m_updatedAt{};
321
322 Aws::Utils::DateTime m_publishedAt{};
323
324 Aws::String m_publishDescription;
325
326 Aws::String m_rumAppMonitorName;
327
328 Preview m_preview;
329
331
332 Aws::String m_requestId;
333 Aws::Http::HttpResponseCode m_HttpResponseCode;
334 bool m_portalIdHasBeenSet = false;
335 bool m_portalArnHasBeenSet = false;
336 bool m_endpointConfigurationHasBeenSet = false;
337 bool m_authorizationHasBeenSet = false;
338 bool m_portalContentHasBeenSet = false;
339 bool m_includedProductArnsHasBeenSet = false;
340 bool m_publishStatusHasBeenSet = false;
341 bool m_statusExceptionHasBeenSet = false;
342 bool m_updatedAtHasBeenSet = false;
343 bool m_publishedAtHasBeenSet = false;
344 bool m_publishDescriptionHasBeenSet = false;
345 bool m_rumAppMonitorNameHasBeenSet = false;
346 bool m_previewHasBeenSet = false;
347 bool m_tagsHasBeenSet = false;
348 bool m_requestIdHasBeenSet = false;
349};
350
351} // namespace Model
352} // namespace APIPortal
353} // namespace Aws
void SetPortalArn(PortalArnT &&value)
const Authorization & GetAuthorization() const
const Aws::String & GetPortalId() const
GetPortalResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Aws::String > & GetIncludedProductArns() const
const Aws::String & GetPublishDescription() const
const PortalContent & GetPortalContent() const
GetPortalResult & WithRumAppMonitorName(RumAppMonitorNameT &&value)
GetPortalResult & WithStatusException(StatusExceptionT &&value)
GetPortalResult & WithTags(TagsT &&value)
const EndpointConfigurationResponse & GetEndpointConfiguration() const
void SetEndpointConfiguration(EndpointConfigurationT &&value)
GetPortalResult & WithPortalArn(PortalArnT &&value)
const Aws::String & GetRequestId() const
void SetPortalContent(PortalContentT &&value)
GetPortalResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetPortalResult & WithIncludedProductArns(IncludedProductArnsT &&value)
void SetPublishStatus(PublishStatus value)
GetPortalResult & WithPublishStatus(PublishStatus value)
GetPortalResult & WithPortalContent(PortalContentT &&value)
void SetPublishDescription(PublishDescriptionT &&value)
void SetPublishedAt(PublishedAtT &&value)
AWS_APIPORTAL_API GetPortalResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPortalResult & WithPublishedAt(PublishedAtT &&value)
GetPortalResult & WithEndpointConfiguration(EndpointConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetRumAppMonitorName() const
GetPortalResult & WithUpdatedAt(UpdatedAtT &&value)
GetPortalResult & AddIncludedProductArns(IncludedProductArnsT &&value)
void SetAuthorization(AuthorizationT &&value)
GetPortalResult & WithPortalId(PortalIdT &&value)
GetPortalResult & WithPublishDescription(PublishDescriptionT &&value)
void SetRumAppMonitorName(RumAppMonitorNameT &&value)
GetPortalResult & WithPreview(PreviewT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetIncludedProductArns(IncludedProductArnsT &&value)
const Aws::String & GetPortalArn() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_APIPORTAL_API GetPortalResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APIPORTAL_API GetPortalResult()=default
GetPortalResult & WithAuthorization(AuthorizationT &&value)
void SetStatusException(StatusExceptionT &&value)
const Aws::Utils::DateTime & GetPublishedAt() const
const PortalStatusException & GetStatusException() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue