AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreatePortalResult.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/PublishStatus.h>
13#include <aws/core/http/HttpResponse.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 {
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 CreatePortalResult() = 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 CreatePortalResult& 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 CreatePortalResult& 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 CreatePortalResult& 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 CreatePortalResult& 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 CreatePortalResult& 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 CreatePortalResult& WithIncludedProductArns(IncludedProductArnsT&& value) {
136 SetIncludedProductArns(std::forward<IncludedProductArnsT>(value));
137 return *this;
138 }
139 template <typename IncludedProductArnsT = Aws::String>
140 CreatePortalResult& 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 CreatePortalResult& 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 CreatePortalResult& 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 CreatePortalResult& 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 CreatePortalResult& 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 CreatePortalResult& WithRumAppMonitorName(RumAppMonitorNameT&& value) {
242 SetRumAppMonitorName(std::forward<RumAppMonitorNameT>(value));
243 return *this;
244 }
246
248
249 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
250 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
251 void SetTags(TagsT&& value) {
252 m_tagsHasBeenSet = true;
253 m_tags = std::forward<TagsT>(value);
254 }
255 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
256 CreatePortalResult& WithTags(TagsT&& value) {
257 SetTags(std::forward<TagsT>(value));
258 return *this;
259 }
260 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
261 CreatePortalResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
262 m_tagsHasBeenSet = true;
263 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
264 return *this;
265 }
267
269
270 inline const Aws::String& GetRequestId() const { return m_requestId; }
271 template <typename RequestIdT = Aws::String>
272 void SetRequestId(RequestIdT&& value) {
273 m_requestIdHasBeenSet = true;
274 m_requestId = std::forward<RequestIdT>(value);
275 }
276 template <typename RequestIdT = Aws::String>
277 CreatePortalResult& WithRequestId(RequestIdT&& value) {
278 SetRequestId(std::forward<RequestIdT>(value));
279 return *this;
280 }
282 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
283
284 private:
285 Aws::String m_portalId;
286
287 Aws::String m_portalArn;
288
289 EndpointConfigurationResponse m_endpointConfiguration;
290
291 Authorization m_authorization;
292
293 PortalContent m_portalContent;
294
295 Aws::Vector<Aws::String> m_includedProductArns;
296
297 PublishStatus m_publishStatus{PublishStatus::NOT_SET};
298
299 PortalStatusException m_statusException;
300
301 Aws::Utils::DateTime m_updatedAt{};
302
303 Aws::Utils::DateTime m_publishedAt{};
304
305 Aws::String m_publishDescription;
306
307 Aws::String m_rumAppMonitorName;
308
310
311 Aws::String m_requestId;
312 Aws::Http::HttpResponseCode m_HttpResponseCode;
313 bool m_portalIdHasBeenSet = false;
314 bool m_portalArnHasBeenSet = false;
315 bool m_endpointConfigurationHasBeenSet = false;
316 bool m_authorizationHasBeenSet = false;
317 bool m_portalContentHasBeenSet = false;
318 bool m_includedProductArnsHasBeenSet = false;
319 bool m_publishStatusHasBeenSet = false;
320 bool m_statusExceptionHasBeenSet = false;
321 bool m_updatedAtHasBeenSet = false;
322 bool m_publishedAtHasBeenSet = false;
323 bool m_publishDescriptionHasBeenSet = false;
324 bool m_rumAppMonitorNameHasBeenSet = false;
325 bool m_tagsHasBeenSet = false;
326 bool m_requestIdHasBeenSet = false;
327};
328
329} // namespace Model
330} // namespace APIPortal
331} // namespace Aws
CreatePortalResult & WithStatusException(StatusExceptionT &&value)
CreatePortalResult & WithEndpointConfiguration(EndpointConfigurationT &&value)
const Aws::Vector< Aws::String > & GetIncludedProductArns() const
void SetEndpointConfiguration(EndpointConfigurationT &&value)
CreatePortalResult & AddIncludedProductArns(IncludedProductArnsT &&value)
const EndpointConfigurationResponse & GetEndpointConfiguration() const
CreatePortalResult & WithRumAppMonitorName(RumAppMonitorNameT &&value)
const Aws::Utils::DateTime & GetPublishedAt() const
CreatePortalResult & WithPublishedAt(PublishedAtT &&value)
AWS_APIPORTAL_API CreatePortalResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APIPORTAL_API CreatePortalResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const PortalStatusException & GetStatusException() const
const Authorization & GetAuthorization() const
CreatePortalResult & WithTags(TagsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetIncludedProductArns(IncludedProductArnsT &&value)
CreatePortalResult & WithPortalContent(PortalContentT &&value)
void SetPublishDescription(PublishDescriptionT &&value)
void SetPortalContent(PortalContentT &&value)
CreatePortalResult & WithPublishStatus(PublishStatus value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePortalResult & WithAuthorization(AuthorizationT &&value)
AWS_APIPORTAL_API CreatePortalResult()=default
CreatePortalResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreatePortalResult & WithPublishDescription(PublishDescriptionT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetAuthorization(AuthorizationT &&value)
void SetRumAppMonitorName(RumAppMonitorNameT &&value)
void SetStatusException(StatusExceptionT &&value)
CreatePortalResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetPublishDescription() const
CreatePortalResult & WithIncludedProductArns(IncludedProductArnsT &&value)
CreatePortalResult & WithPortalId(PortalIdT &&value)
const Aws::String & GetRumAppMonitorName() const
CreatePortalResult & WithPortalArn(PortalArnT &&value)
const PortalContent & GetPortalContent() const
CreatePortalResult & WithRequestId(RequestIdT &&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