AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
GetWebFunctionEndpointResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lambda-web/LambdaWeb_EXPORTS.h>
13#include <aws/lambda-web/model/AuthType.h>
14#include <aws/lambda-web/model/AutoDeploymentMode.h>
15#include <aws/lambda-web/model/EndpointState.h>
16#include <aws/lambda-web/model/EndpointType.h>
17#include <aws/lambda-web/model/EndpointUpdateStatus.h>
18#include <aws/lambda-web/model/RegionalEndpoint.h>
19#include <aws/lambda-web/model/RevisionWeight.h>
20#include <aws/lambda-web/model/ScalingConfig.h>
21#include <aws/lambda-web/model/ThrottleConfig.h>
22
23#include <utility>
24
25namespace Aws {
26template <typename RESULT_TYPE>
27class AmazonWebServiceResult;
28
29namespace Utils {
30namespace Json {
31class JsonValue;
32} // namespace Json
33} // namespace Utils
34namespace LambdaWeb {
35namespace Model {
43 public:
44 AWS_LAMBDAWEB_API GetWebFunctionEndpointResult() = default;
47
49
52 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
53 template <typename FunctionArnT = Aws::String>
54 void SetFunctionArn(FunctionArnT&& value) {
55 m_functionArnHasBeenSet = true;
56 m_functionArn = std::forward<FunctionArnT>(value);
57 }
58 template <typename FunctionArnT = Aws::String>
60 SetFunctionArn(std::forward<FunctionArnT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetEndpointArn() const { return m_endpointArn; }
70 template <typename EndpointArnT = Aws::String>
71 void SetEndpointArn(EndpointArnT&& value) {
72 m_endpointArnHasBeenSet = true;
73 m_endpointArn = std::forward<EndpointArnT>(value);
74 }
75 template <typename EndpointArnT = Aws::String>
77 SetEndpointArn(std::forward<EndpointArnT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
87 template <typename EndpointNameT = Aws::String>
88 void SetEndpointName(EndpointNameT&& value) {
89 m_endpointNameHasBeenSet = true;
90 m_endpointName = std::forward<EndpointNameT>(value);
91 }
92 template <typename EndpointNameT = Aws::String>
94 SetEndpointName(std::forward<EndpointNameT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetDescription() const { return m_description; }
104 template <typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) {
106 m_descriptionHasBeenSet = true;
107 m_description = std::forward<DescriptionT>(value);
108 }
109 template <typename DescriptionT = Aws::String>
111 SetDescription(std::forward<DescriptionT>(value));
112 return *this;
113 }
115
117
118 inline EndpointType GetEndpointType() const { return m_endpointType; }
119 inline void SetEndpointType(EndpointType value) {
120 m_endpointTypeHasBeenSet = true;
121 m_endpointType = value;
122 }
124 SetEndpointType(value);
125 return *this;
126 }
128
130
133 inline const Aws::String& GetDomainName() const { return m_domainName; }
134 template <typename DomainNameT = Aws::String>
135 void SetDomainName(DomainNameT&& value) {
136 m_domainNameHasBeenSet = true;
137 m_domainName = std::forward<DomainNameT>(value);
138 }
139 template <typename DomainNameT = Aws::String>
141 SetDomainName(std::forward<DomainNameT>(value));
142 return *this;
143 }
145
147
148 inline AuthType GetAuthType() const { return m_authType; }
149 inline void SetAuthType(AuthType value) {
150 m_authTypeHasBeenSet = true;
151 m_authType = value;
152 }
154 SetAuthType(value);
155 return *this;
156 }
158
160
161 inline AutoDeploymentMode GetAutoDeploymentMode() const { return m_autoDeploymentMode; }
163 m_autoDeploymentModeHasBeenSet = true;
164 m_autoDeploymentMode = value;
165 }
168 return *this;
169 }
171
173
177 inline const Aws::Vector<RevisionWeight>& GetRevisionWeights() const { return m_revisionWeights; }
178 template <typename RevisionWeightsT = Aws::Vector<RevisionWeight>>
179 void SetRevisionWeights(RevisionWeightsT&& value) {
180 m_revisionWeightsHasBeenSet = true;
181 m_revisionWeights = std::forward<RevisionWeightsT>(value);
182 }
183 template <typename RevisionWeightsT = Aws::Vector<RevisionWeight>>
185 SetRevisionWeights(std::forward<RevisionWeightsT>(value));
186 return *this;
187 }
188 template <typename RevisionWeightsT = RevisionWeight>
190 m_revisionWeightsHasBeenSet = true;
191 m_revisionWeights.emplace_back(std::forward<RevisionWeightsT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
201 template <typename RegionsT = Aws::Vector<Aws::String>>
202 void SetRegions(RegionsT&& value) {
203 m_regionsHasBeenSet = true;
204 m_regions = std::forward<RegionsT>(value);
205 }
206 template <typename RegionsT = Aws::Vector<Aws::String>>
208 SetRegions(std::forward<RegionsT>(value));
209 return *this;
210 }
211 template <typename RegionsT = Aws::String>
213 m_regionsHasBeenSet = true;
214 m_regions.emplace_back(std::forward<RegionsT>(value));
215 return *this;
216 }
218
220
221 inline const ScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
222 template <typename ScalingConfigT = ScalingConfig>
223 void SetScalingConfig(ScalingConfigT&& value) {
224 m_scalingConfigHasBeenSet = true;
225 m_scalingConfig = std::forward<ScalingConfigT>(value);
226 }
227 template <typename ScalingConfigT = ScalingConfig>
229 SetScalingConfig(std::forward<ScalingConfigT>(value));
230 return *this;
231 }
233
235
236 inline const ThrottleConfig& GetThrottleConfig() const { return m_throttleConfig; }
237 template <typename ThrottleConfigT = ThrottleConfig>
238 void SetThrottleConfig(ThrottleConfigT&& value) {
239 m_throttleConfigHasBeenSet = true;
240 m_throttleConfig = std::forward<ThrottleConfigT>(value);
241 }
242 template <typename ThrottleConfigT = ThrottleConfig>
244 SetThrottleConfig(std::forward<ThrottleConfigT>(value));
245 return *this;
246 }
248
250
253 inline EndpointState GetState() const { return m_state; }
254 inline void SetState(EndpointState value) {
255 m_stateHasBeenSet = true;
256 m_state = value;
257 }
259 SetState(value);
260 return *this;
261 }
263
265
268 inline const Aws::String& GetStateReason() const { return m_stateReason; }
269 template <typename StateReasonT = Aws::String>
270 void SetStateReason(StateReasonT&& value) {
271 m_stateReasonHasBeenSet = true;
272 m_stateReason = std::forward<StateReasonT>(value);
273 }
274 template <typename StateReasonT = Aws::String>
276 SetStateReason(std::forward<StateReasonT>(value));
277 return *this;
278 }
280
282
283 inline EndpointUpdateStatus GetUpdateStatus() const { return m_updateStatus; }
285 m_updateStatusHasBeenSet = true;
286 m_updateStatus = value;
287 }
289 SetUpdateStatus(value);
290 return *this;
291 }
293
295
298 inline const Aws::String& GetUpdateStatusReason() const { return m_updateStatusReason; }
299 template <typename UpdateStatusReasonT = Aws::String>
300 void SetUpdateStatusReason(UpdateStatusReasonT&& value) {
301 m_updateStatusReasonHasBeenSet = true;
302 m_updateStatusReason = std::forward<UpdateStatusReasonT>(value);
303 }
304 template <typename UpdateStatusReasonT = Aws::String>
306 SetUpdateStatusReason(std::forward<UpdateStatusReasonT>(value));
307 return *this;
308 }
310
312
315 inline const Aws::Map<Aws::String, RegionalEndpoint>& GetRegionalEndpoints() const { return m_regionalEndpoints; }
316 template <typename RegionalEndpointsT = Aws::Map<Aws::String, RegionalEndpoint>>
317 void SetRegionalEndpoints(RegionalEndpointsT&& value) {
318 m_regionalEndpointsHasBeenSet = true;
319 m_regionalEndpoints = std::forward<RegionalEndpointsT>(value);
320 }
321 template <typename RegionalEndpointsT = Aws::Map<Aws::String, RegionalEndpoint>>
323 SetRegionalEndpoints(std::forward<RegionalEndpointsT>(value));
324 return *this;
325 }
326 template <typename RegionalEndpointsKeyT = Aws::String, typename RegionalEndpointsValueT = RegionalEndpoint>
327 GetWebFunctionEndpointResult& AddRegionalEndpoints(RegionalEndpointsKeyT&& key, RegionalEndpointsValueT&& value) {
328 m_regionalEndpointsHasBeenSet = true;
329 m_regionalEndpoints.emplace(std::forward<RegionalEndpointsKeyT>(key), std::forward<RegionalEndpointsValueT>(value));
330 return *this;
331 }
333
335
338 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
339 template <typename CreatedAtT = Aws::Utils::DateTime>
340 void SetCreatedAt(CreatedAtT&& value) {
341 m_createdAtHasBeenSet = true;
342 m_createdAt = std::forward<CreatedAtT>(value);
343 }
344 template <typename CreatedAtT = Aws::Utils::DateTime>
346 SetCreatedAt(std::forward<CreatedAtT>(value));
347 return *this;
348 }
350
352
355 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
356 template <typename UpdatedAtT = Aws::Utils::DateTime>
357 void SetUpdatedAt(UpdatedAtT&& value) {
358 m_updatedAtHasBeenSet = true;
359 m_updatedAt = std::forward<UpdatedAtT>(value);
360 }
361 template <typename UpdatedAtT = Aws::Utils::DateTime>
363 SetUpdatedAt(std::forward<UpdatedAtT>(value));
364 return *this;
365 }
367
369
370 inline const Aws::String& GetRequestId() const { return m_requestId; }
371 template <typename RequestIdT = Aws::String>
372 void SetRequestId(RequestIdT&& value) {
373 m_requestIdHasBeenSet = true;
374 m_requestId = std::forward<RequestIdT>(value);
375 }
376 template <typename RequestIdT = Aws::String>
378 SetRequestId(std::forward<RequestIdT>(value));
379 return *this;
380 }
382 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
383
384 private:
385 Aws::String m_functionArn;
386
387 Aws::String m_endpointArn;
388
389 Aws::String m_endpointName;
390
391 Aws::String m_description;
392
393 EndpointType m_endpointType{EndpointType::NOT_SET};
394
395 Aws::String m_domainName;
396
397 AuthType m_authType{AuthType::NOT_SET};
398
400
401 Aws::Vector<RevisionWeight> m_revisionWeights;
402
403 Aws::Vector<Aws::String> m_regions;
404
405 ScalingConfig m_scalingConfig;
406
407 ThrottleConfig m_throttleConfig;
408
410
411 Aws::String m_stateReason;
412
414
415 Aws::String m_updateStatusReason;
416
417 Aws::Map<Aws::String, RegionalEndpoint> m_regionalEndpoints;
418
419 Aws::Utils::DateTime m_createdAt{};
420
421 Aws::Utils::DateTime m_updatedAt{};
422
423 Aws::String m_requestId;
424 Aws::Http::HttpResponseCode m_HttpResponseCode;
425 bool m_functionArnHasBeenSet = false;
426 bool m_endpointArnHasBeenSet = false;
427 bool m_endpointNameHasBeenSet = false;
428 bool m_descriptionHasBeenSet = false;
429 bool m_endpointTypeHasBeenSet = false;
430 bool m_domainNameHasBeenSet = false;
431 bool m_authTypeHasBeenSet = false;
432 bool m_autoDeploymentModeHasBeenSet = false;
433 bool m_revisionWeightsHasBeenSet = false;
434 bool m_regionsHasBeenSet = false;
435 bool m_scalingConfigHasBeenSet = false;
436 bool m_throttleConfigHasBeenSet = false;
437 bool m_stateHasBeenSet = false;
438 bool m_stateReasonHasBeenSet = false;
439 bool m_updateStatusHasBeenSet = false;
440 bool m_updateStatusReasonHasBeenSet = false;
441 bool m_regionalEndpointsHasBeenSet = false;
442 bool m_createdAtHasBeenSet = false;
443 bool m_updatedAtHasBeenSet = false;
444 bool m_requestIdHasBeenSet = false;
445};
446
447} // namespace Model
448} // namespace LambdaWeb
449} // namespace Aws
GetWebFunctionEndpointResult & WithUpdateStatus(EndpointUpdateStatus value)
GetWebFunctionEndpointResult & WithRevisionWeights(RevisionWeightsT &&value)
GetWebFunctionEndpointResult & WithRequestId(RequestIdT &&value)
GetWebFunctionEndpointResult & WithUpdatedAt(UpdatedAtT &&value)
GetWebFunctionEndpointResult & WithRegionalEndpoints(RegionalEndpointsT &&value)
GetWebFunctionEndpointResult & WithCreatedAt(CreatedAtT &&value)
GetWebFunctionEndpointResult & WithScalingConfig(ScalingConfigT &&value)
GetWebFunctionEndpointResult & WithDescription(DescriptionT &&value)
const Aws::Vector< RevisionWeight > & GetRevisionWeights() const
GetWebFunctionEndpointResult & AddRegions(RegionsT &&value)
GetWebFunctionEndpointResult & WithStateReason(StateReasonT &&value)
AWS_LAMBDAWEB_API GetWebFunctionEndpointResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetWebFunctionEndpointResult & WithFunctionArn(FunctionArnT &&value)
GetWebFunctionEndpointResult & AddRevisionWeights(RevisionWeightsT &&value)
GetWebFunctionEndpointResult & WithDomainName(DomainNameT &&value)
AWS_LAMBDAWEB_API GetWebFunctionEndpointResult()=default
GetWebFunctionEndpointResult & WithThrottleConfig(ThrottleConfigT &&value)
GetWebFunctionEndpointResult & WithEndpointType(EndpointType value)
GetWebFunctionEndpointResult & AddRegionalEndpoints(RegionalEndpointsKeyT &&key, RegionalEndpointsValueT &&value)
GetWebFunctionEndpointResult & WithAuthType(AuthType value)
const Aws::Map< Aws::String, RegionalEndpoint > & GetRegionalEndpoints() const
GetWebFunctionEndpointResult & WithState(EndpointState value)
GetWebFunctionEndpointResult & WithUpdateStatusReason(UpdateStatusReasonT &&value)
AWS_LAMBDAWEB_API GetWebFunctionEndpointResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetWebFunctionEndpointResult & WithAutoDeploymentMode(AutoDeploymentMode value)
GetWebFunctionEndpointResult & WithEndpointArn(EndpointArnT &&value)
GetWebFunctionEndpointResult & WithEndpointName(EndpointNameT &&value)
GetWebFunctionEndpointResult & WithRegions(RegionsT &&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