AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
CreatePortalResult.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/PublishStatus.h>
12#include <aws/apigatewayv2/model/StatusException.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 ApiGatewayV2 {
31namespace Model {
33 public:
34 AWS_APIGATEWAYV2_API CreatePortalResult() = default;
37
39
43 inline const Authorization& GetAuthorization() const { return m_authorization; }
44 template <typename AuthorizationT = Authorization>
45 void SetAuthorization(AuthorizationT&& value) {
46 m_authorizationHasBeenSet = true;
47 m_authorization = std::forward<AuthorizationT>(value);
48 }
49 template <typename AuthorizationT = Authorization>
50 CreatePortalResult& WithAuthorization(AuthorizationT&& value) {
51 SetAuthorization(std::forward<AuthorizationT>(value));
52 return *this;
53 }
55
57
60 inline const EndpointConfigurationResponse& GetEndpointConfiguration() const { return m_endpointConfiguration; }
61 template <typename EndpointConfigurationT = EndpointConfigurationResponse>
62 void SetEndpointConfiguration(EndpointConfigurationT&& value) {
63 m_endpointConfigurationHasBeenSet = true;
64 m_endpointConfiguration = std::forward<EndpointConfigurationT>(value);
65 }
66 template <typename EndpointConfigurationT = EndpointConfigurationResponse>
67 CreatePortalResult& WithEndpointConfiguration(EndpointConfigurationT&& value) {
68 SetEndpointConfiguration(std::forward<EndpointConfigurationT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetIncludedPortalProductArns() const { return m_includedPortalProductArns; }
78 template <typename IncludedPortalProductArnsT = Aws::Vector<Aws::String>>
79 void SetIncludedPortalProductArns(IncludedPortalProductArnsT&& value) {
80 m_includedPortalProductArnsHasBeenSet = true;
81 m_includedPortalProductArns = std::forward<IncludedPortalProductArnsT>(value);
82 }
83 template <typename IncludedPortalProductArnsT = Aws::Vector<Aws::String>>
84 CreatePortalResult& WithIncludedPortalProductArns(IncludedPortalProductArnsT&& value) {
85 SetIncludedPortalProductArns(std::forward<IncludedPortalProductArnsT>(value));
86 return *this;
87 }
88 template <typename IncludedPortalProductArnsT = Aws::String>
89 CreatePortalResult& AddIncludedPortalProductArns(IncludedPortalProductArnsT&& value) {
90 m_includedPortalProductArnsHasBeenSet = true;
91 m_includedPortalProductArns.emplace_back(std::forward<IncludedPortalProductArnsT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
101 template <typename LastModifiedT = Aws::Utils::DateTime>
102 void SetLastModified(LastModifiedT&& value) {
103 m_lastModifiedHasBeenSet = true;
104 m_lastModified = std::forward<LastModifiedT>(value);
105 }
106 template <typename LastModifiedT = Aws::Utils::DateTime>
107 CreatePortalResult& WithLastModified(LastModifiedT&& value) {
108 SetLastModified(std::forward<LastModifiedT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Utils::DateTime& GetLastPublished() const { return m_lastPublished; }
118 template <typename LastPublishedT = Aws::Utils::DateTime>
119 void SetLastPublished(LastPublishedT&& value) {
120 m_lastPublishedHasBeenSet = true;
121 m_lastPublished = std::forward<LastPublishedT>(value);
122 }
123 template <typename LastPublishedT = Aws::Utils::DateTime>
124 CreatePortalResult& WithLastPublished(LastPublishedT&& value) {
125 SetLastPublished(std::forward<LastPublishedT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::String& GetLastPublishedDescription() const { return m_lastPublishedDescription; }
136 template <typename LastPublishedDescriptionT = Aws::String>
137 void SetLastPublishedDescription(LastPublishedDescriptionT&& value) {
138 m_lastPublishedDescriptionHasBeenSet = true;
139 m_lastPublishedDescription = std::forward<LastPublishedDescriptionT>(value);
140 }
141 template <typename LastPublishedDescriptionT = Aws::String>
142 CreatePortalResult& WithLastPublishedDescription(LastPublishedDescriptionT&& value) {
143 SetLastPublishedDescription(std::forward<LastPublishedDescriptionT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetPortalArn() const { return m_portalArn; }
153 template <typename PortalArnT = Aws::String>
154 void SetPortalArn(PortalArnT&& value) {
155 m_portalArnHasBeenSet = true;
156 m_portalArn = std::forward<PortalArnT>(value);
157 }
158 template <typename PortalArnT = Aws::String>
159 CreatePortalResult& WithPortalArn(PortalArnT&& value) {
160 SetPortalArn(std::forward<PortalArnT>(value));
161 return *this;
162 }
164
166
169 inline const PortalContent& GetPortalContent() const { return m_portalContent; }
170 template <typename PortalContentT = PortalContent>
171 void SetPortalContent(PortalContentT&& value) {
172 m_portalContentHasBeenSet = true;
173 m_portalContent = std::forward<PortalContentT>(value);
174 }
175 template <typename PortalContentT = PortalContent>
176 CreatePortalResult& WithPortalContent(PortalContentT&& value) {
177 SetPortalContent(std::forward<PortalContentT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetPortalId() const { return m_portalId; }
187 template <typename PortalIdT = Aws::String>
188 void SetPortalId(PortalIdT&& value) {
189 m_portalIdHasBeenSet = true;
190 m_portalId = std::forward<PortalIdT>(value);
191 }
192 template <typename PortalIdT = Aws::String>
193 CreatePortalResult& WithPortalId(PortalIdT&& value) {
194 SetPortalId(std::forward<PortalIdT>(value));
195 return *this;
196 }
198
200
203 inline PublishStatus GetPublishStatus() const { return m_publishStatus; }
204 inline void SetPublishStatus(PublishStatus value) {
205 m_publishStatusHasBeenSet = true;
206 m_publishStatus = value;
207 }
209 SetPublishStatus(value);
210 return *this;
211 }
213
215
218 inline const Aws::String& GetRumAppMonitorName() const { return m_rumAppMonitorName; }
219 template <typename RumAppMonitorNameT = Aws::String>
220 void SetRumAppMonitorName(RumAppMonitorNameT&& value) {
221 m_rumAppMonitorNameHasBeenSet = true;
222 m_rumAppMonitorName = std::forward<RumAppMonitorNameT>(value);
223 }
224 template <typename RumAppMonitorNameT = Aws::String>
225 CreatePortalResult& WithRumAppMonitorName(RumAppMonitorNameT&& value) {
226 SetRumAppMonitorName(std::forward<RumAppMonitorNameT>(value));
227 return *this;
228 }
230
232
236 inline const StatusException& GetStatusException() const { return m_statusException; }
237 template <typename StatusExceptionT = StatusException>
238 void SetStatusException(StatusExceptionT&& value) {
239 m_statusExceptionHasBeenSet = true;
240 m_statusException = std::forward<StatusExceptionT>(value);
241 }
242 template <typename StatusExceptionT = StatusException>
243 CreatePortalResult& WithStatusException(StatusExceptionT&& value) {
244 SetStatusException(std::forward<StatusExceptionT>(value));
245 return *this;
246 }
248
250
254 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
255 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
256 void SetTags(TagsT&& value) {
257 m_tagsHasBeenSet = true;
258 m_tags = std::forward<TagsT>(value);
259 }
260 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
261 CreatePortalResult& WithTags(TagsT&& value) {
262 SetTags(std::forward<TagsT>(value));
263 return *this;
264 }
265 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
266 CreatePortalResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
267 m_tagsHasBeenSet = true;
268 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
269 return *this;
270 }
272
274
275 inline const Aws::String& GetRequestId() const { return m_requestId; }
276 template <typename RequestIdT = Aws::String>
277 void SetRequestId(RequestIdT&& value) {
278 m_requestIdHasBeenSet = true;
279 m_requestId = std::forward<RequestIdT>(value);
280 }
281 template <typename RequestIdT = Aws::String>
282 CreatePortalResult& WithRequestId(RequestIdT&& value) {
283 SetRequestId(std::forward<RequestIdT>(value));
284 return *this;
285 }
287 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
288
289 private:
290 Authorization m_authorization;
291
292 EndpointConfigurationResponse m_endpointConfiguration;
293
294 Aws::Vector<Aws::String> m_includedPortalProductArns;
295
296 Aws::Utils::DateTime m_lastModified{};
297
298 Aws::Utils::DateTime m_lastPublished{};
299
300 Aws::String m_lastPublishedDescription;
301
302 Aws::String m_portalArn;
303
304 PortalContent m_portalContent;
305
306 Aws::String m_portalId;
307
308 PublishStatus m_publishStatus{PublishStatus::NOT_SET};
309
310 Aws::String m_rumAppMonitorName;
311
312 StatusException m_statusException;
313
315
316 Aws::String m_requestId;
317 Aws::Http::HttpResponseCode m_HttpResponseCode;
318 bool m_authorizationHasBeenSet = false;
319 bool m_endpointConfigurationHasBeenSet = false;
320 bool m_includedPortalProductArnsHasBeenSet = false;
321 bool m_lastModifiedHasBeenSet = false;
322 bool m_lastPublishedHasBeenSet = false;
323 bool m_lastPublishedDescriptionHasBeenSet = false;
324 bool m_portalArnHasBeenSet = false;
325 bool m_portalContentHasBeenSet = false;
326 bool m_portalIdHasBeenSet = false;
327 bool m_publishStatusHasBeenSet = false;
328 bool m_rumAppMonitorNameHasBeenSet = false;
329 bool m_statusExceptionHasBeenSet = false;
330 bool m_tagsHasBeenSet = false;
331 bool m_requestIdHasBeenSet = false;
332};
333
334} // namespace Model
335} // namespace ApiGatewayV2
336} // namespace Aws
void SetLastPublishedDescription(LastPublishedDescriptionT &&value)
CreatePortalResult & WithTags(TagsT &&value)
void SetEndpointConfiguration(EndpointConfigurationT &&value)
AWS_APIGATEWAYV2_API CreatePortalResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetLastPublishedDescription() const
const EndpointConfigurationResponse & GetEndpointConfiguration() const
CreatePortalResult & WithPortalContent(PortalContentT &&value)
CreatePortalResult & WithLastPublished(LastPublishedT &&value)
CreatePortalResult & WithPortalId(PortalIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreatePortalResult & WithPortalArn(PortalArnT &&value)
const Authorization & GetAuthorization() const
CreatePortalResult & AddIncludedPortalProductArns(IncludedPortalProductArnsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetRumAppMonitorName(RumAppMonitorNameT &&value)
const StatusException & GetStatusException() const
CreatePortalResult & WithEndpointConfiguration(EndpointConfigurationT &&value)
CreatePortalResult & WithIncludedPortalProductArns(IncludedPortalProductArnsT &&value)
CreatePortalResult & WithStatusException(StatusExceptionT &&value)
CreatePortalResult & WithAuthorization(AuthorizationT &&value)
CreatePortalResult & WithRequestId(RequestIdT &&value)
AWS_APIGATEWAYV2_API CreatePortalResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetLastModified() const
CreatePortalResult & WithLastPublishedDescription(LastPublishedDescriptionT &&value)
CreatePortalResult & WithLastModified(LastModifiedT &&value)
CreatePortalResult & WithPublishStatus(PublishStatus value)
void SetIncludedPortalProductArns(IncludedPortalProductArnsT &&value)
const Aws::Vector< Aws::String > & GetIncludedPortalProductArns() const
void SetStatusException(StatusExceptionT &&value)
AWS_APIGATEWAYV2_API CreatePortalResult()=default
CreatePortalResult & WithRumAppMonitorName(RumAppMonitorNameT &&value)
CreatePortalResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Utils::DateTime & GetLastPublished() 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