AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
PortalSummary.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/model/Authorization.h>
9#include <aws/apigatewayv2/model/EndpointConfigurationResponse.h>
10#include <aws/apigatewayv2/model/PortalContent.h>
11#include <aws/apigatewayv2/model/Preview.h>
12#include <aws/apigatewayv2/model/PublishStatus.h>
13#include <aws/apigatewayv2/model/StatusException.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace ApiGatewayV2 {
29namespace Model {
30
37 public:
38 AWS_APIGATEWAYV2_API PortalSummary() = default;
39 AWS_APIGATEWAYV2_API PortalSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APIGATEWAYV2_API PortalSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Authorization& GetAuthorization() const { return m_authorization; }
48 inline bool AuthorizationHasBeenSet() const { return m_authorizationHasBeenSet; }
49 template <typename AuthorizationT = Authorization>
50 void SetAuthorization(AuthorizationT&& value) {
51 m_authorizationHasBeenSet = true;
52 m_authorization = std::forward<AuthorizationT>(value);
53 }
54 template <typename AuthorizationT = Authorization>
55 PortalSummary& WithAuthorization(AuthorizationT&& value) {
56 SetAuthorization(std::forward<AuthorizationT>(value));
57 return *this;
58 }
60
62
65 inline const EndpointConfigurationResponse& GetEndpointConfiguration() const { return m_endpointConfiguration; }
66 inline bool EndpointConfigurationHasBeenSet() const { return m_endpointConfigurationHasBeenSet; }
67 template <typename EndpointConfigurationT = EndpointConfigurationResponse>
68 void SetEndpointConfiguration(EndpointConfigurationT&& value) {
69 m_endpointConfigurationHasBeenSet = true;
70 m_endpointConfiguration = std::forward<EndpointConfigurationT>(value);
71 }
72 template <typename EndpointConfigurationT = EndpointConfigurationResponse>
73 PortalSummary& WithEndpointConfiguration(EndpointConfigurationT&& value) {
74 SetEndpointConfiguration(std::forward<EndpointConfigurationT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::Vector<Aws::String>& GetIncludedPortalProductArns() const { return m_includedPortalProductArns; }
84 inline bool IncludedPortalProductArnsHasBeenSet() const { return m_includedPortalProductArnsHasBeenSet; }
85 template <typename IncludedPortalProductArnsT = Aws::Vector<Aws::String>>
86 void SetIncludedPortalProductArns(IncludedPortalProductArnsT&& value) {
87 m_includedPortalProductArnsHasBeenSet = true;
88 m_includedPortalProductArns = std::forward<IncludedPortalProductArnsT>(value);
89 }
90 template <typename IncludedPortalProductArnsT = Aws::Vector<Aws::String>>
91 PortalSummary& WithIncludedPortalProductArns(IncludedPortalProductArnsT&& value) {
92 SetIncludedPortalProductArns(std::forward<IncludedPortalProductArnsT>(value));
93 return *this;
94 }
95 template <typename IncludedPortalProductArnsT = Aws::String>
96 PortalSummary& AddIncludedPortalProductArns(IncludedPortalProductArnsT&& value) {
97 m_includedPortalProductArnsHasBeenSet = true;
98 m_includedPortalProductArns.emplace_back(std::forward<IncludedPortalProductArnsT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
108 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
109 template <typename LastModifiedT = Aws::Utils::DateTime>
110 void SetLastModified(LastModifiedT&& value) {
111 m_lastModifiedHasBeenSet = true;
112 m_lastModified = std::forward<LastModifiedT>(value);
113 }
114 template <typename LastModifiedT = Aws::Utils::DateTime>
115 PortalSummary& WithLastModified(LastModifiedT&& value) {
116 SetLastModified(std::forward<LastModifiedT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetLastPublished() const { return m_lastPublished; }
126 inline bool LastPublishedHasBeenSet() const { return m_lastPublishedHasBeenSet; }
127 template <typename LastPublishedT = Aws::Utils::DateTime>
128 void SetLastPublished(LastPublishedT&& value) {
129 m_lastPublishedHasBeenSet = true;
130 m_lastPublished = std::forward<LastPublishedT>(value);
131 }
132 template <typename LastPublishedT = Aws::Utils::DateTime>
133 PortalSummary& WithLastPublished(LastPublishedT&& value) {
134 SetLastPublished(std::forward<LastPublishedT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetLastPublishedDescription() const { return m_lastPublishedDescription; }
144 inline bool LastPublishedDescriptionHasBeenSet() const { return m_lastPublishedDescriptionHasBeenSet; }
145 template <typename LastPublishedDescriptionT = Aws::String>
146 void SetLastPublishedDescription(LastPublishedDescriptionT&& value) {
147 m_lastPublishedDescriptionHasBeenSet = true;
148 m_lastPublishedDescription = std::forward<LastPublishedDescriptionT>(value);
149 }
150 template <typename LastPublishedDescriptionT = Aws::String>
151 PortalSummary& WithLastPublishedDescription(LastPublishedDescriptionT&& value) {
152 SetLastPublishedDescription(std::forward<LastPublishedDescriptionT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetPortalArn() const { return m_portalArn; }
162 inline bool PortalArnHasBeenSet() const { return m_portalArnHasBeenSet; }
163 template <typename PortalArnT = Aws::String>
164 void SetPortalArn(PortalArnT&& value) {
165 m_portalArnHasBeenSet = true;
166 m_portalArn = std::forward<PortalArnT>(value);
167 }
168 template <typename PortalArnT = Aws::String>
169 PortalSummary& WithPortalArn(PortalArnT&& value) {
170 SetPortalArn(std::forward<PortalArnT>(value));
171 return *this;
172 }
174
176
180 inline const PortalContent& GetPortalContent() const { return m_portalContent; }
181 inline bool PortalContentHasBeenSet() const { return m_portalContentHasBeenSet; }
182 template <typename PortalContentT = PortalContent>
183 void SetPortalContent(PortalContentT&& value) {
184 m_portalContentHasBeenSet = true;
185 m_portalContent = std::forward<PortalContentT>(value);
186 }
187 template <typename PortalContentT = PortalContent>
188 PortalSummary& WithPortalContent(PortalContentT&& value) {
189 SetPortalContent(std::forward<PortalContentT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::String& GetPortalId() const { return m_portalId; }
199 inline bool PortalIdHasBeenSet() const { return m_portalIdHasBeenSet; }
200 template <typename PortalIdT = Aws::String>
201 void SetPortalId(PortalIdT&& value) {
202 m_portalIdHasBeenSet = true;
203 m_portalId = std::forward<PortalIdT>(value);
204 }
205 template <typename PortalIdT = Aws::String>
206 PortalSummary& WithPortalId(PortalIdT&& value) {
207 SetPortalId(std::forward<PortalIdT>(value));
208 return *this;
209 }
211
213
217 inline const Preview& GetPreview() const { return m_preview; }
218 inline bool PreviewHasBeenSet() const { return m_previewHasBeenSet; }
219 template <typename PreviewT = Preview>
220 void SetPreview(PreviewT&& value) {
221 m_previewHasBeenSet = true;
222 m_preview = std::forward<PreviewT>(value);
223 }
224 template <typename PreviewT = Preview>
225 PortalSummary& WithPreview(PreviewT&& value) {
226 SetPreview(std::forward<PreviewT>(value));
227 return *this;
228 }
230
232
235 inline PublishStatus GetPublishStatus() const { return m_publishStatus; }
236 inline bool PublishStatusHasBeenSet() const { return m_publishStatusHasBeenSet; }
237 inline void SetPublishStatus(PublishStatus value) {
238 m_publishStatusHasBeenSet = true;
239 m_publishStatus = value;
240 }
242 SetPublishStatus(value);
243 return *this;
244 }
246
248
251 inline const Aws::String& GetRumAppMonitorName() const { return m_rumAppMonitorName; }
252 inline bool RumAppMonitorNameHasBeenSet() const { return m_rumAppMonitorNameHasBeenSet; }
253 template <typename RumAppMonitorNameT = Aws::String>
254 void SetRumAppMonitorName(RumAppMonitorNameT&& value) {
255 m_rumAppMonitorNameHasBeenSet = true;
256 m_rumAppMonitorName = std::forward<RumAppMonitorNameT>(value);
257 }
258 template <typename RumAppMonitorNameT = Aws::String>
259 PortalSummary& WithRumAppMonitorName(RumAppMonitorNameT&& value) {
260 SetRumAppMonitorName(std::forward<RumAppMonitorNameT>(value));
261 return *this;
262 }
264
266
269 inline const StatusException& GetStatusException() const { return m_statusException; }
270 inline bool StatusExceptionHasBeenSet() const { return m_statusExceptionHasBeenSet; }
271 template <typename StatusExceptionT = StatusException>
272 void SetStatusException(StatusExceptionT&& value) {
273 m_statusExceptionHasBeenSet = true;
274 m_statusException = std::forward<StatusExceptionT>(value);
275 }
276 template <typename StatusExceptionT = StatusException>
277 PortalSummary& WithStatusException(StatusExceptionT&& value) {
278 SetStatusException(std::forward<StatusExceptionT>(value));
279 return *this;
280 }
282
284
288 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
289 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
290 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
291 void SetTags(TagsT&& value) {
292 m_tagsHasBeenSet = true;
293 m_tags = std::forward<TagsT>(value);
294 }
295 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
296 PortalSummary& WithTags(TagsT&& value) {
297 SetTags(std::forward<TagsT>(value));
298 return *this;
299 }
300 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
301 PortalSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
302 m_tagsHasBeenSet = true;
303 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
304 return *this;
305 }
307 private:
308 Authorization m_authorization;
309
310 EndpointConfigurationResponse m_endpointConfiguration;
311
312 Aws::Vector<Aws::String> m_includedPortalProductArns;
313
314 Aws::Utils::DateTime m_lastModified{};
315
316 Aws::Utils::DateTime m_lastPublished{};
317
318 Aws::String m_lastPublishedDescription;
319
320 Aws::String m_portalArn;
321
322 PortalContent m_portalContent;
323
324 Aws::String m_portalId;
325
326 Preview m_preview;
327
328 PublishStatus m_publishStatus{PublishStatus::NOT_SET};
329
330 Aws::String m_rumAppMonitorName;
331
332 StatusException m_statusException;
333
335 bool m_authorizationHasBeenSet = false;
336 bool m_endpointConfigurationHasBeenSet = false;
337 bool m_includedPortalProductArnsHasBeenSet = false;
338 bool m_lastModifiedHasBeenSet = false;
339 bool m_lastPublishedHasBeenSet = false;
340 bool m_lastPublishedDescriptionHasBeenSet = false;
341 bool m_portalArnHasBeenSet = false;
342 bool m_portalContentHasBeenSet = false;
343 bool m_portalIdHasBeenSet = false;
344 bool m_previewHasBeenSet = false;
345 bool m_publishStatusHasBeenSet = false;
346 bool m_rumAppMonitorNameHasBeenSet = false;
347 bool m_statusExceptionHasBeenSet = false;
348 bool m_tagsHasBeenSet = false;
349};
350
351} // namespace Model
352} // namespace ApiGatewayV2
353} // namespace Aws
PortalSummary & WithLastPublished(LastPublishedT &&value)
PortalSummary & WithPortalContent(PortalContentT &&value)
const Authorization & GetAuthorization() const
const PortalContent & GetPortalContent() const
void SetPortalArn(PortalArnT &&value)
PortalSummary & WithPortalId(PortalIdT &&value)
void SetRumAppMonitorName(RumAppMonitorNameT &&value)
const Aws::String & GetPortalArn() const
const StatusException & GetStatusException() const
const Aws::String & GetPortalId() const
PortalSummary & WithStatusException(StatusExceptionT &&value)
PortalSummary & WithLastModified(LastModifiedT &&value)
PortalSummary & AddIncludedPortalProductArns(IncludedPortalProductArnsT &&value)
PortalSummary & WithEndpointConfiguration(EndpointConfigurationT &&value)
void SetAuthorization(AuthorizationT &&value)
void SetPortalContent(PortalContentT &&value)
AWS_APIGATEWAYV2_API PortalSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetIncludedPortalProductArns() const
const Aws::Utils::DateTime & GetLastModified() const
AWS_APIGATEWAYV2_API PortalSummary()=default
PortalSummary & WithRumAppMonitorName(RumAppMonitorNameT &&value)
PortalSummary & WithTags(TagsT &&value)
const Aws::String & GetRumAppMonitorName() const
const EndpointConfigurationResponse & GetEndpointConfiguration() const
void SetLastModified(LastModifiedT &&value)
const Aws::Utils::DateTime & GetLastPublished() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PortalSummary & WithIncludedPortalProductArns(IncludedPortalProductArnsT &&value)
PortalSummary & WithPublishStatus(PublishStatus value)
void SetStatusException(StatusExceptionT &&value)
PortalSummary & WithPortalArn(PortalArnT &&value)
void SetLastPublished(LastPublishedT &&value)
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
PortalSummary & WithAuthorization(AuthorizationT &&value)
void SetIncludedPortalProductArns(IncludedPortalProductArnsT &&value)
PortalSummary & WithPreview(PreviewT &&value)
void SetLastPublishedDescription(LastPublishedDescriptionT &&value)
void SetPublishStatus(PublishStatus value)
PortalSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetEndpointConfiguration(EndpointConfigurationT &&value)
AWS_APIGATEWAYV2_API PortalSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLastPublishedDescription() const
PortalSummary & WithLastPublishedDescription(LastPublishedDescriptionT &&value)
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