AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdatePortalResult.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/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace APIPortal {
31namespace Model {
33 public:
34 AWS_APIPORTAL_API UpdatePortalResult() = default;
37
39
42 inline const Aws::String& GetPortalId() const { return m_portalId; }
43 template <typename PortalIdT = Aws::String>
44 void SetPortalId(PortalIdT&& value) {
45 m_portalIdHasBeenSet = true;
46 m_portalId = std::forward<PortalIdT>(value);
47 }
48 template <typename PortalIdT = Aws::String>
49 UpdatePortalResult& WithPortalId(PortalIdT&& value) {
50 SetPortalId(std::forward<PortalIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetPortalArn() const { return m_portalArn; }
60 template <typename PortalArnT = Aws::String>
61 void SetPortalArn(PortalArnT&& value) {
62 m_portalArnHasBeenSet = true;
63 m_portalArn = std::forward<PortalArnT>(value);
64 }
65 template <typename PortalArnT = Aws::String>
66 UpdatePortalResult& WithPortalArn(PortalArnT&& value) {
67 SetPortalArn(std::forward<PortalArnT>(value));
68 return *this;
69 }
71
73
76 inline const EndpointConfigurationResponse& GetEndpointConfiguration() const { return m_endpointConfiguration; }
77 template <typename EndpointConfigurationT = EndpointConfigurationResponse>
78 void SetEndpointConfiguration(EndpointConfigurationT&& value) {
79 m_endpointConfigurationHasBeenSet = true;
80 m_endpointConfiguration = std::forward<EndpointConfigurationT>(value);
81 }
82 template <typename EndpointConfigurationT = EndpointConfigurationResponse>
83 UpdatePortalResult& WithEndpointConfiguration(EndpointConfigurationT&& value) {
84 SetEndpointConfiguration(std::forward<EndpointConfigurationT>(value));
85 return *this;
86 }
88
90
94 inline const Authorization& GetAuthorization() const { return m_authorization; }
95 template <typename AuthorizationT = Authorization>
96 void SetAuthorization(AuthorizationT&& value) {
97 m_authorizationHasBeenSet = true;
98 m_authorization = std::forward<AuthorizationT>(value);
99 }
100 template <typename AuthorizationT = Authorization>
101 UpdatePortalResult& WithAuthorization(AuthorizationT&& value) {
102 SetAuthorization(std::forward<AuthorizationT>(value));
103 return *this;
104 }
106
108
111 inline const PortalContent& GetPortalContent() const { return m_portalContent; }
112 template <typename PortalContentT = PortalContent>
113 void SetPortalContent(PortalContentT&& value) {
114 m_portalContentHasBeenSet = true;
115 m_portalContent = std::forward<PortalContentT>(value);
116 }
117 template <typename PortalContentT = PortalContent>
118 UpdatePortalResult& WithPortalContent(PortalContentT&& value) {
119 SetPortalContent(std::forward<PortalContentT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Vector<Aws::String>& GetIncludedProductArns() const { return m_includedProductArns; }
129 template <typename IncludedProductArnsT = Aws::Vector<Aws::String>>
130 void SetIncludedProductArns(IncludedProductArnsT&& value) {
131 m_includedProductArnsHasBeenSet = true;
132 m_includedProductArns = std::forward<IncludedProductArnsT>(value);
133 }
134 template <typename IncludedProductArnsT = Aws::Vector<Aws::String>>
135 UpdatePortalResult& WithIncludedProductArns(IncludedProductArnsT&& value) {
136 SetIncludedProductArns(std::forward<IncludedProductArnsT>(value));
137 return *this;
138 }
139 template <typename IncludedProductArnsT = Aws::String>
140 UpdatePortalResult& AddIncludedProductArns(IncludedProductArnsT&& value) {
141 m_includedProductArnsHasBeenSet = true;
142 m_includedProductArns.emplace_back(std::forward<IncludedProductArnsT>(value));
143 return *this;
144 }
146
148
152 inline PublishStatus GetPublishStatus() const { return m_publishStatus; }
153 inline void SetPublishStatus(PublishStatus value) {
154 m_publishStatusHasBeenSet = true;
155 m_publishStatus = value;
156 }
158 SetPublishStatus(value);
159 return *this;
160 }
162
164
165 inline const PortalStatusException& GetStatusException() const { return m_statusException; }
166 template <typename StatusExceptionT = PortalStatusException>
167 void SetStatusException(StatusExceptionT&& value) {
168 m_statusExceptionHasBeenSet = true;
169 m_statusException = std::forward<StatusExceptionT>(value);
170 }
171 template <typename StatusExceptionT = PortalStatusException>
172 UpdatePortalResult& WithStatusException(StatusExceptionT&& value) {
173 SetStatusException(std::forward<StatusExceptionT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
183 template <typename UpdatedAtT = Aws::Utils::DateTime>
184 void SetUpdatedAt(UpdatedAtT&& value) {
185 m_updatedAtHasBeenSet = true;
186 m_updatedAt = std::forward<UpdatedAtT>(value);
187 }
188 template <typename UpdatedAtT = Aws::Utils::DateTime>
189 UpdatePortalResult& WithUpdatedAt(UpdatedAtT&& value) {
190 SetUpdatedAt(std::forward<UpdatedAtT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::Utils::DateTime& GetPublishedAt() const { return m_publishedAt; }
200 template <typename PublishedAtT = Aws::Utils::DateTime>
201 void SetPublishedAt(PublishedAtT&& value) {
202 m_publishedAtHasBeenSet = true;
203 m_publishedAt = std::forward<PublishedAtT>(value);
204 }
205 template <typename PublishedAtT = Aws::Utils::DateTime>
206 UpdatePortalResult& WithPublishedAt(PublishedAtT&& value) {
207 SetPublishedAt(std::forward<PublishedAtT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::String& GetPublishDescription() const { return m_publishDescription; }
217 template <typename PublishDescriptionT = Aws::String>
218 void SetPublishDescription(PublishDescriptionT&& value) {
219 m_publishDescriptionHasBeenSet = true;
220 m_publishDescription = std::forward<PublishDescriptionT>(value);
221 }
222 template <typename PublishDescriptionT = Aws::String>
223 UpdatePortalResult& WithPublishDescription(PublishDescriptionT&& value) {
224 SetPublishDescription(std::forward<PublishDescriptionT>(value));
225 return *this;
226 }
228
230
234 inline const Aws::String& GetRumAppMonitorName() const { return m_rumAppMonitorName; }
235 template <typename RumAppMonitorNameT = Aws::String>
236 void SetRumAppMonitorName(RumAppMonitorNameT&& value) {
237 m_rumAppMonitorNameHasBeenSet = true;
238 m_rumAppMonitorName = std::forward<RumAppMonitorNameT>(value);
239 }
240 template <typename RumAppMonitorNameT = Aws::String>
241 UpdatePortalResult& WithRumAppMonitorName(RumAppMonitorNameT&& value) {
242 SetRumAppMonitorName(std::forward<RumAppMonitorNameT>(value));
243 return *this;
244 }
246
248
252 inline const Preview& GetPreview() const { return m_preview; }
253 template <typename PreviewT = Preview>
254 void SetPreview(PreviewT&& value) {
255 m_previewHasBeenSet = true;
256 m_preview = std::forward<PreviewT>(value);
257 }
258 template <typename PreviewT = Preview>
259 UpdatePortalResult& WithPreview(PreviewT&& value) {
260 SetPreview(std::forward<PreviewT>(value));
261 return *this;
262 }
264
266
267 inline const Aws::String& GetRequestId() const { return m_requestId; }
268 template <typename RequestIdT = Aws::String>
269 void SetRequestId(RequestIdT&& value) {
270 m_requestIdHasBeenSet = true;
271 m_requestId = std::forward<RequestIdT>(value);
272 }
273 template <typename RequestIdT = Aws::String>
274 UpdatePortalResult& WithRequestId(RequestIdT&& value) {
275 SetRequestId(std::forward<RequestIdT>(value));
276 return *this;
277 }
279 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
280
281 private:
282 Aws::String m_portalId;
283
284 Aws::String m_portalArn;
285
286 EndpointConfigurationResponse m_endpointConfiguration;
287
288 Authorization m_authorization;
289
290 PortalContent m_portalContent;
291
292 Aws::Vector<Aws::String> m_includedProductArns;
293
294 PublishStatus m_publishStatus{PublishStatus::NOT_SET};
295
296 PortalStatusException m_statusException;
297
298 Aws::Utils::DateTime m_updatedAt{};
299
300 Aws::Utils::DateTime m_publishedAt{};
301
302 Aws::String m_publishDescription;
303
304 Aws::String m_rumAppMonitorName;
305
306 Preview m_preview;
307
308 Aws::String m_requestId;
309 Aws::Http::HttpResponseCode m_HttpResponseCode;
310 bool m_portalIdHasBeenSet = false;
311 bool m_portalArnHasBeenSet = false;
312 bool m_endpointConfigurationHasBeenSet = false;
313 bool m_authorizationHasBeenSet = false;
314 bool m_portalContentHasBeenSet = false;
315 bool m_includedProductArnsHasBeenSet = false;
316 bool m_publishStatusHasBeenSet = false;
317 bool m_statusExceptionHasBeenSet = false;
318 bool m_updatedAtHasBeenSet = false;
319 bool m_publishedAtHasBeenSet = false;
320 bool m_publishDescriptionHasBeenSet = false;
321 bool m_rumAppMonitorNameHasBeenSet = false;
322 bool m_previewHasBeenSet = false;
323 bool m_requestIdHasBeenSet = false;
324};
325
326} // namespace Model
327} // namespace APIPortal
328} // namespace Aws
UpdatePortalResult & WithEndpointConfiguration(EndpointConfigurationT &&value)
const Aws::Vector< Aws::String > & GetIncludedProductArns() const
UpdatePortalResult & WithRumAppMonitorName(RumAppMonitorNameT &&value)
UpdatePortalResult & WithPortalContent(PortalContentT &&value)
const Aws::Utils::DateTime & GetPublishedAt() const
const Aws::String & GetPublishDescription() const
void SetAuthorization(AuthorizationT &&value)
void SetPublishDescription(PublishDescriptionT &&value)
UpdatePortalResult & WithPublishedAt(PublishedAtT &&value)
UpdatePortalResult & WithPortalId(PortalIdT &&value)
const Authorization & GetAuthorization() const
void SetPortalContent(PortalContentT &&value)
AWS_APIPORTAL_API UpdatePortalResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdatePortalResult & WithPreview(PreviewT &&value)
UpdatePortalResult & WithStatusException(StatusExceptionT &&value)
UpdatePortalResult & WithRequestId(RequestIdT &&value)
void SetEndpointConfiguration(EndpointConfigurationT &&value)
UpdatePortalResult & WithAuthorization(AuthorizationT &&value)
UpdatePortalResult & WithPublishStatus(PublishStatus value)
void SetIncludedProductArns(IncludedProductArnsT &&value)
const PortalContent & GetPortalContent() const
AWS_APIPORTAL_API UpdatePortalResult()=default
AWS_APIPORTAL_API UpdatePortalResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const EndpointConfigurationResponse & GetEndpointConfiguration() const
const Aws::String & GetRumAppMonitorName() const
UpdatePortalResult & WithPublishDescription(PublishDescriptionT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetStatusException(StatusExceptionT &&value)
UpdatePortalResult & WithPortalArn(PortalArnT &&value)
UpdatePortalResult & WithIncludedProductArns(IncludedProductArnsT &&value)
const PortalStatusException & GetStatusException() const
UpdatePortalResult & WithUpdatedAt(UpdatedAtT &&value)
UpdatePortalResult & AddIncludedProductArns(IncludedProductArnsT &&value)
void SetRumAppMonitorName(RumAppMonitorNameT &&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