AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
UpdateWebFunctionEndpointResult.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 {
42 public:
43 AWS_LAMBDAWEB_API UpdateWebFunctionEndpointResult() = default;
46
48
51 inline const Aws::String& GetFunctionArn() const { return m_functionArn; }
52 template <typename FunctionArnT = Aws::String>
53 void SetFunctionArn(FunctionArnT&& value) {
54 m_functionArnHasBeenSet = true;
55 m_functionArn = std::forward<FunctionArnT>(value);
56 }
57 template <typename FunctionArnT = Aws::String>
59 SetFunctionArn(std::forward<FunctionArnT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetEndpointArn() const { return m_endpointArn; }
69 template <typename EndpointArnT = Aws::String>
70 void SetEndpointArn(EndpointArnT&& value) {
71 m_endpointArnHasBeenSet = true;
72 m_endpointArn = std::forward<EndpointArnT>(value);
73 }
74 template <typename EndpointArnT = Aws::String>
76 SetEndpointArn(std::forward<EndpointArnT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
86 template <typename EndpointNameT = Aws::String>
87 void SetEndpointName(EndpointNameT&& value) {
88 m_endpointNameHasBeenSet = true;
89 m_endpointName = std::forward<EndpointNameT>(value);
90 }
91 template <typename EndpointNameT = Aws::String>
93 SetEndpointName(std::forward<EndpointNameT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 template <typename DescriptionT = Aws::String>
104 void SetDescription(DescriptionT&& value) {
105 m_descriptionHasBeenSet = true;
106 m_description = std::forward<DescriptionT>(value);
107 }
108 template <typename DescriptionT = Aws::String>
110 SetDescription(std::forward<DescriptionT>(value));
111 return *this;
112 }
114
116
117 inline EndpointType GetEndpointType() const { return m_endpointType; }
118 inline void SetEndpointType(EndpointType value) {
119 m_endpointTypeHasBeenSet = true;
120 m_endpointType = value;
121 }
123 SetEndpointType(value);
124 return *this;
125 }
127
129
132 inline const Aws::String& GetDomainName() const { return m_domainName; }
133 template <typename DomainNameT = Aws::String>
134 void SetDomainName(DomainNameT&& value) {
135 m_domainNameHasBeenSet = true;
136 m_domainName = std::forward<DomainNameT>(value);
137 }
138 template <typename DomainNameT = Aws::String>
140 SetDomainName(std::forward<DomainNameT>(value));
141 return *this;
142 }
144
146
147 inline AuthType GetAuthType() const { return m_authType; }
148 inline void SetAuthType(AuthType value) {
149 m_authTypeHasBeenSet = true;
150 m_authType = value;
151 }
153 SetAuthType(value);
154 return *this;
155 }
157
159
160 inline AutoDeploymentMode GetAutoDeploymentMode() const { return m_autoDeploymentMode; }
162 m_autoDeploymentModeHasBeenSet = true;
163 m_autoDeploymentMode = value;
164 }
167 return *this;
168 }
170
172
176 inline const Aws::Vector<RevisionWeight>& GetRevisionWeights() const { return m_revisionWeights; }
177 template <typename RevisionWeightsT = Aws::Vector<RevisionWeight>>
178 void SetRevisionWeights(RevisionWeightsT&& value) {
179 m_revisionWeightsHasBeenSet = true;
180 m_revisionWeights = std::forward<RevisionWeightsT>(value);
181 }
182 template <typename RevisionWeightsT = Aws::Vector<RevisionWeight>>
184 SetRevisionWeights(std::forward<RevisionWeightsT>(value));
185 return *this;
186 }
187 template <typename RevisionWeightsT = RevisionWeight>
189 m_revisionWeightsHasBeenSet = true;
190 m_revisionWeights.emplace_back(std::forward<RevisionWeightsT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
200 template <typename RegionsT = Aws::Vector<Aws::String>>
201 void SetRegions(RegionsT&& value) {
202 m_regionsHasBeenSet = true;
203 m_regions = std::forward<RegionsT>(value);
204 }
205 template <typename RegionsT = Aws::Vector<Aws::String>>
207 SetRegions(std::forward<RegionsT>(value));
208 return *this;
209 }
210 template <typename RegionsT = Aws::String>
212 m_regionsHasBeenSet = true;
213 m_regions.emplace_back(std::forward<RegionsT>(value));
214 return *this;
215 }
217
219
220 inline const ScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
221 template <typename ScalingConfigT = ScalingConfig>
222 void SetScalingConfig(ScalingConfigT&& value) {
223 m_scalingConfigHasBeenSet = true;
224 m_scalingConfig = std::forward<ScalingConfigT>(value);
225 }
226 template <typename ScalingConfigT = ScalingConfig>
228 SetScalingConfig(std::forward<ScalingConfigT>(value));
229 return *this;
230 }
232
234
235 inline const ThrottleConfig& GetThrottleConfig() const { return m_throttleConfig; }
236 template <typename ThrottleConfigT = ThrottleConfig>
237 void SetThrottleConfig(ThrottleConfigT&& value) {
238 m_throttleConfigHasBeenSet = true;
239 m_throttleConfig = std::forward<ThrottleConfigT>(value);
240 }
241 template <typename ThrottleConfigT = ThrottleConfig>
243 SetThrottleConfig(std::forward<ThrottleConfigT>(value));
244 return *this;
245 }
247
249
252 inline EndpointState GetState() const { return m_state; }
253 inline void SetState(EndpointState value) {
254 m_stateHasBeenSet = true;
255 m_state = value;
256 }
258 SetState(value);
259 return *this;
260 }
262
264
267 inline const Aws::String& GetStateReason() const { return m_stateReason; }
268 template <typename StateReasonT = Aws::String>
269 void SetStateReason(StateReasonT&& value) {
270 m_stateReasonHasBeenSet = true;
271 m_stateReason = std::forward<StateReasonT>(value);
272 }
273 template <typename StateReasonT = Aws::String>
275 SetStateReason(std::forward<StateReasonT>(value));
276 return *this;
277 }
279
281
282 inline EndpointUpdateStatus GetUpdateStatus() const { return m_updateStatus; }
284 m_updateStatusHasBeenSet = true;
285 m_updateStatus = value;
286 }
288 SetUpdateStatus(value);
289 return *this;
290 }
292
294
297 inline const Aws::String& GetUpdateStatusReason() const { return m_updateStatusReason; }
298 template <typename UpdateStatusReasonT = Aws::String>
299 void SetUpdateStatusReason(UpdateStatusReasonT&& value) {
300 m_updateStatusReasonHasBeenSet = true;
301 m_updateStatusReason = std::forward<UpdateStatusReasonT>(value);
302 }
303 template <typename UpdateStatusReasonT = Aws::String>
305 SetUpdateStatusReason(std::forward<UpdateStatusReasonT>(value));
306 return *this;
307 }
309
311
314 inline const Aws::Map<Aws::String, RegionalEndpoint>& GetRegionalEndpoints() const { return m_regionalEndpoints; }
315 template <typename RegionalEndpointsT = Aws::Map<Aws::String, RegionalEndpoint>>
316 void SetRegionalEndpoints(RegionalEndpointsT&& value) {
317 m_regionalEndpointsHasBeenSet = true;
318 m_regionalEndpoints = std::forward<RegionalEndpointsT>(value);
319 }
320 template <typename RegionalEndpointsT = Aws::Map<Aws::String, RegionalEndpoint>>
322 SetRegionalEndpoints(std::forward<RegionalEndpointsT>(value));
323 return *this;
324 }
325 template <typename RegionalEndpointsKeyT = Aws::String, typename RegionalEndpointsValueT = RegionalEndpoint>
326 UpdateWebFunctionEndpointResult& AddRegionalEndpoints(RegionalEndpointsKeyT&& key, RegionalEndpointsValueT&& value) {
327 m_regionalEndpointsHasBeenSet = true;
328 m_regionalEndpoints.emplace(std::forward<RegionalEndpointsKeyT>(key), std::forward<RegionalEndpointsValueT>(value));
329 return *this;
330 }
332
334
337 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
338 template <typename CreatedAtT = Aws::Utils::DateTime>
339 void SetCreatedAt(CreatedAtT&& value) {
340 m_createdAtHasBeenSet = true;
341 m_createdAt = std::forward<CreatedAtT>(value);
342 }
343 template <typename CreatedAtT = Aws::Utils::DateTime>
345 SetCreatedAt(std::forward<CreatedAtT>(value));
346 return *this;
347 }
349
351
354 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
355 template <typename UpdatedAtT = Aws::Utils::DateTime>
356 void SetUpdatedAt(UpdatedAtT&& value) {
357 m_updatedAtHasBeenSet = true;
358 m_updatedAt = std::forward<UpdatedAtT>(value);
359 }
360 template <typename UpdatedAtT = Aws::Utils::DateTime>
362 SetUpdatedAt(std::forward<UpdatedAtT>(value));
363 return *this;
364 }
366
368
369 inline const Aws::String& GetRequestId() const { return m_requestId; }
370 template <typename RequestIdT = Aws::String>
371 void SetRequestId(RequestIdT&& value) {
372 m_requestIdHasBeenSet = true;
373 m_requestId = std::forward<RequestIdT>(value);
374 }
375 template <typename RequestIdT = Aws::String>
377 SetRequestId(std::forward<RequestIdT>(value));
378 return *this;
379 }
381 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
382
383 private:
384 Aws::String m_functionArn;
385
386 Aws::String m_endpointArn;
387
388 Aws::String m_endpointName;
389
390 Aws::String m_description;
391
392 EndpointType m_endpointType{EndpointType::NOT_SET};
393
394 Aws::String m_domainName;
395
396 AuthType m_authType{AuthType::NOT_SET};
397
399
400 Aws::Vector<RevisionWeight> m_revisionWeights;
401
402 Aws::Vector<Aws::String> m_regions;
403
404 ScalingConfig m_scalingConfig;
405
406 ThrottleConfig m_throttleConfig;
407
409
410 Aws::String m_stateReason;
411
413
414 Aws::String m_updateStatusReason;
415
416 Aws::Map<Aws::String, RegionalEndpoint> m_regionalEndpoints;
417
418 Aws::Utils::DateTime m_createdAt{};
419
420 Aws::Utils::DateTime m_updatedAt{};
421
422 Aws::String m_requestId;
423 Aws::Http::HttpResponseCode m_HttpResponseCode;
424 bool m_functionArnHasBeenSet = false;
425 bool m_endpointArnHasBeenSet = false;
426 bool m_endpointNameHasBeenSet = false;
427 bool m_descriptionHasBeenSet = false;
428 bool m_endpointTypeHasBeenSet = false;
429 bool m_domainNameHasBeenSet = false;
430 bool m_authTypeHasBeenSet = false;
431 bool m_autoDeploymentModeHasBeenSet = false;
432 bool m_revisionWeightsHasBeenSet = false;
433 bool m_regionsHasBeenSet = false;
434 bool m_scalingConfigHasBeenSet = false;
435 bool m_throttleConfigHasBeenSet = false;
436 bool m_stateHasBeenSet = false;
437 bool m_stateReasonHasBeenSet = false;
438 bool m_updateStatusHasBeenSet = false;
439 bool m_updateStatusReasonHasBeenSet = false;
440 bool m_regionalEndpointsHasBeenSet = false;
441 bool m_createdAtHasBeenSet = false;
442 bool m_updatedAtHasBeenSet = false;
443 bool m_requestIdHasBeenSet = false;
444};
445
446} // namespace Model
447} // namespace LambdaWeb
448} // namespace Aws
UpdateWebFunctionEndpointResult & WithState(EndpointState value)
const Aws::Vector< RevisionWeight > & GetRevisionWeights() const
AWS_LAMBDAWEB_API UpdateWebFunctionEndpointResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateWebFunctionEndpointResult & WithEndpointName(EndpointNameT &&value)
UpdateWebFunctionEndpointResult & WithUpdateStatus(EndpointUpdateStatus value)
UpdateWebFunctionEndpointResult & WithRegionalEndpoints(RegionalEndpointsT &&value)
UpdateWebFunctionEndpointResult & WithDescription(DescriptionT &&value)
UpdateWebFunctionEndpointResult & AddRegionalEndpoints(RegionalEndpointsKeyT &&key, RegionalEndpointsValueT &&value)
const Aws::Map< Aws::String, RegionalEndpoint > & GetRegionalEndpoints() const
AWS_LAMBDAWEB_API UpdateWebFunctionEndpointResult()=default
UpdateWebFunctionEndpointResult & WithThrottleConfig(ThrottleConfigT &&value)
UpdateWebFunctionEndpointResult & WithEndpointType(EndpointType value)
UpdateWebFunctionEndpointResult & WithCreatedAt(CreatedAtT &&value)
AWS_LAMBDAWEB_API UpdateWebFunctionEndpointResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateWebFunctionEndpointResult & WithDomainName(DomainNameT &&value)
UpdateWebFunctionEndpointResult & WithAuthType(AuthType value)
UpdateWebFunctionEndpointResult & WithEndpointArn(EndpointArnT &&value)
UpdateWebFunctionEndpointResult & AddRegions(RegionsT &&value)
UpdateWebFunctionEndpointResult & WithRevisionWeights(RevisionWeightsT &&value)
UpdateWebFunctionEndpointResult & WithScalingConfig(ScalingConfigT &&value)
UpdateWebFunctionEndpointResult & WithUpdateStatusReason(UpdateStatusReasonT &&value)
UpdateWebFunctionEndpointResult & WithFunctionArn(FunctionArnT &&value)
UpdateWebFunctionEndpointResult & WithRequestId(RequestIdT &&value)
UpdateWebFunctionEndpointResult & WithAutoDeploymentMode(AutoDeploymentMode value)
UpdateWebFunctionEndpointResult & WithRegions(RegionsT &&value)
UpdateWebFunctionEndpointResult & WithUpdatedAt(UpdatedAtT &&value)
UpdateWebFunctionEndpointResult & WithStateReason(StateReasonT &&value)
UpdateWebFunctionEndpointResult & AddRevisionWeights(RevisionWeightsT &&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