AWS SDK for C++

AWS SDK for C++ Version 1.11.915

Loading...
Searching...
No Matches
FunctionEndpointSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lambda-web/LambdaWeb_EXPORTS.h>
11#include <aws/lambda-web/model/AuthType.h>
12#include <aws/lambda-web/model/AutoDeploymentMode.h>
13#include <aws/lambda-web/model/EndpointState.h>
14#include <aws/lambda-web/model/EndpointType.h>
15#include <aws/lambda-web/model/EndpointUpdateStatus.h>
16#include <aws/lambda-web/model/RevisionWeight.h>
17#include <aws/lambda-web/model/ScalingConfig.h>
18#include <aws/lambda-web/model/ThrottleConfig.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace LambdaWeb {
30namespace Model {
31
38 public:
39 AWS_LAMBDAWEB_API FunctionEndpointSummary() = default;
42 AWS_LAMBDAWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetEndpointArn() const { return m_endpointArn; }
49 inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
50 template <typename EndpointArnT = Aws::String>
51 void SetEndpointArn(EndpointArnT&& value) {
52 m_endpointArnHasBeenSet = true;
53 m_endpointArn = std::forward<EndpointArnT>(value);
54 }
55 template <typename EndpointArnT = Aws::String>
57 SetEndpointArn(std::forward<EndpointArnT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
67 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
68 template <typename EndpointNameT = Aws::String>
69 void SetEndpointName(EndpointNameT&& value) {
70 m_endpointNameHasBeenSet = true;
71 m_endpointName = std::forward<EndpointNameT>(value);
72 }
73 template <typename EndpointNameT = Aws::String>
74 FunctionEndpointSummary& WithEndpointName(EndpointNameT&& value) {
75 SetEndpointName(std::forward<EndpointNameT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template <typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) {
88 m_descriptionHasBeenSet = true;
89 m_description = std::forward<DescriptionT>(value);
90 }
91 template <typename DescriptionT = Aws::String>
93 SetDescription(std::forward<DescriptionT>(value));
94 return *this;
95 }
97
99
102 inline EndpointType GetEndpointType() const { return m_endpointType; }
103 inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; }
104 inline void SetEndpointType(EndpointType value) {
105 m_endpointTypeHasBeenSet = true;
106 m_endpointType = value;
107 }
109 SetEndpointType(value);
110 return *this;
111 }
113
115
118 inline const Aws::String& GetDomainName() const { return m_domainName; }
119 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
120 template <typename DomainNameT = Aws::String>
121 void SetDomainName(DomainNameT&& value) {
122 m_domainNameHasBeenSet = true;
123 m_domainName = std::forward<DomainNameT>(value);
124 }
125 template <typename DomainNameT = Aws::String>
127 SetDomainName(std::forward<DomainNameT>(value));
128 return *this;
129 }
131
133
136 inline AuthType GetAuthType() const { return m_authType; }
137 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
138 inline void SetAuthType(AuthType value) {
139 m_authTypeHasBeenSet = true;
140 m_authType = value;
141 }
143 SetAuthType(value);
144 return *this;
145 }
147
149
152 inline AutoDeploymentMode GetAutoDeploymentMode() const { return m_autoDeploymentMode; }
153 inline bool AutoDeploymentModeHasBeenSet() const { return m_autoDeploymentModeHasBeenSet; }
155 m_autoDeploymentModeHasBeenSet = true;
156 m_autoDeploymentMode = value;
157 }
160 return *this;
161 }
163
165
168 inline const Aws::Vector<RevisionWeight>& GetRevisionWeights() const { return m_revisionWeights; }
169 inline bool RevisionWeightsHasBeenSet() const { return m_revisionWeightsHasBeenSet; }
170 template <typename RevisionWeightsT = Aws::Vector<RevisionWeight>>
171 void SetRevisionWeights(RevisionWeightsT&& value) {
172 m_revisionWeightsHasBeenSet = true;
173 m_revisionWeights = std::forward<RevisionWeightsT>(value);
174 }
175 template <typename RevisionWeightsT = Aws::Vector<RevisionWeight>>
176 FunctionEndpointSummary& WithRevisionWeights(RevisionWeightsT&& value) {
177 SetRevisionWeights(std::forward<RevisionWeightsT>(value));
178 return *this;
179 }
180 template <typename RevisionWeightsT = RevisionWeight>
181 FunctionEndpointSummary& AddRevisionWeights(RevisionWeightsT&& value) {
182 m_revisionWeightsHasBeenSet = true;
183 m_revisionWeights.emplace_back(std::forward<RevisionWeightsT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
193 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
194 template <typename RegionsT = Aws::Vector<Aws::String>>
195 void SetRegions(RegionsT&& value) {
196 m_regionsHasBeenSet = true;
197 m_regions = std::forward<RegionsT>(value);
198 }
199 template <typename RegionsT = Aws::Vector<Aws::String>>
201 SetRegions(std::forward<RegionsT>(value));
202 return *this;
203 }
204 template <typename RegionsT = Aws::String>
206 m_regionsHasBeenSet = true;
207 m_regions.emplace_back(std::forward<RegionsT>(value));
208 return *this;
209 }
211
213
217 inline const ScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
218 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
219 template <typename ScalingConfigT = ScalingConfig>
220 void SetScalingConfig(ScalingConfigT&& value) {
221 m_scalingConfigHasBeenSet = true;
222 m_scalingConfig = std::forward<ScalingConfigT>(value);
223 }
224 template <typename ScalingConfigT = ScalingConfig>
226 SetScalingConfig(std::forward<ScalingConfigT>(value));
227 return *this;
228 }
230
232
236 inline const ThrottleConfig& GetThrottleConfig() const { return m_throttleConfig; }
237 inline bool ThrottleConfigHasBeenSet() const { return m_throttleConfigHasBeenSet; }
238 template <typename ThrottleConfigT = ThrottleConfig>
239 void SetThrottleConfig(ThrottleConfigT&& value) {
240 m_throttleConfigHasBeenSet = true;
241 m_throttleConfig = std::forward<ThrottleConfigT>(value);
242 }
243 template <typename ThrottleConfigT = ThrottleConfig>
244 FunctionEndpointSummary& WithThrottleConfig(ThrottleConfigT&& value) {
245 SetThrottleConfig(std::forward<ThrottleConfigT>(value));
246 return *this;
247 }
249
251
254 inline EndpointState GetState() const { return m_state; }
255 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
256 inline void SetState(EndpointState value) {
257 m_stateHasBeenSet = true;
258 m_state = value;
259 }
261 SetState(value);
262 return *this;
263 }
265
267
270 inline const Aws::String& GetStateReason() const { return m_stateReason; }
271 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
272 template <typename StateReasonT = Aws::String>
273 void SetStateReason(StateReasonT&& value) {
274 m_stateReasonHasBeenSet = true;
275 m_stateReason = std::forward<StateReasonT>(value);
276 }
277 template <typename StateReasonT = Aws::String>
279 SetStateReason(std::forward<StateReasonT>(value));
280 return *this;
281 }
283
285
288 inline EndpointUpdateStatus GetUpdateStatus() const { return m_updateStatus; }
289 inline bool UpdateStatusHasBeenSet() const { return m_updateStatusHasBeenSet; }
291 m_updateStatusHasBeenSet = true;
292 m_updateStatus = value;
293 }
295 SetUpdateStatus(value);
296 return *this;
297 }
299
301
304 inline const Aws::String& GetUpdateStatusReason() const { return m_updateStatusReason; }
305 inline bool UpdateStatusReasonHasBeenSet() const { return m_updateStatusReasonHasBeenSet; }
306 template <typename UpdateStatusReasonT = Aws::String>
307 void SetUpdateStatusReason(UpdateStatusReasonT&& value) {
308 m_updateStatusReasonHasBeenSet = true;
309 m_updateStatusReason = std::forward<UpdateStatusReasonT>(value);
310 }
311 template <typename UpdateStatusReasonT = Aws::String>
312 FunctionEndpointSummary& WithUpdateStatusReason(UpdateStatusReasonT&& value) {
313 SetUpdateStatusReason(std::forward<UpdateStatusReasonT>(value));
314 return *this;
315 }
317
319
322 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
323 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
324 template <typename CreatedAtT = Aws::Utils::DateTime>
325 void SetCreatedAt(CreatedAtT&& value) {
326 m_createdAtHasBeenSet = true;
327 m_createdAt = std::forward<CreatedAtT>(value);
328 }
329 template <typename CreatedAtT = Aws::Utils::DateTime>
331 SetCreatedAt(std::forward<CreatedAtT>(value));
332 return *this;
333 }
335
337
340 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
341 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
342 template <typename UpdatedAtT = Aws::Utils::DateTime>
343 void SetUpdatedAt(UpdatedAtT&& value) {
344 m_updatedAtHasBeenSet = true;
345 m_updatedAt = std::forward<UpdatedAtT>(value);
346 }
347 template <typename UpdatedAtT = Aws::Utils::DateTime>
349 SetUpdatedAt(std::forward<UpdatedAtT>(value));
350 return *this;
351 }
353 private:
354 Aws::String m_endpointArn;
355
356 Aws::String m_endpointName;
357
358 Aws::String m_description;
359
360 EndpointType m_endpointType{EndpointType::NOT_SET};
361
362 Aws::String m_domainName;
363
364 AuthType m_authType{AuthType::NOT_SET};
365
367
368 Aws::Vector<RevisionWeight> m_revisionWeights;
369
370 Aws::Vector<Aws::String> m_regions;
371
372 ScalingConfig m_scalingConfig;
373
374 ThrottleConfig m_throttleConfig;
375
377
378 Aws::String m_stateReason;
379
381
382 Aws::String m_updateStatusReason;
383
384 Aws::Utils::DateTime m_createdAt{};
385
386 Aws::Utils::DateTime m_updatedAt{};
387 bool m_endpointArnHasBeenSet = false;
388 bool m_endpointNameHasBeenSet = false;
389 bool m_descriptionHasBeenSet = false;
390 bool m_endpointTypeHasBeenSet = false;
391 bool m_domainNameHasBeenSet = false;
392 bool m_authTypeHasBeenSet = false;
393 bool m_autoDeploymentModeHasBeenSet = false;
394 bool m_revisionWeightsHasBeenSet = false;
395 bool m_regionsHasBeenSet = false;
396 bool m_scalingConfigHasBeenSet = false;
397 bool m_throttleConfigHasBeenSet = false;
398 bool m_stateHasBeenSet = false;
399 bool m_stateReasonHasBeenSet = false;
400 bool m_updateStatusHasBeenSet = false;
401 bool m_updateStatusReasonHasBeenSet = false;
402 bool m_createdAtHasBeenSet = false;
403 bool m_updatedAtHasBeenSet = false;
404};
405
406} // namespace Model
407} // namespace LambdaWeb
408} // namespace Aws
FunctionEndpointSummary & AddRegions(RegionsT &&value)
FunctionEndpointSummary & WithEndpointName(EndpointNameT &&value)
const Aws::Vector< RevisionWeight > & GetRevisionWeights() const
FunctionEndpointSummary & WithRevisionWeights(RevisionWeightsT &&value)
FunctionEndpointSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
FunctionEndpointSummary & WithEndpointArn(EndpointArnT &&value)
AWS_LAMBDAWEB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAMBDAWEB_API FunctionEndpointSummary()=default
FunctionEndpointSummary & WithScalingConfig(ScalingConfigT &&value)
AWS_LAMBDAWEB_API FunctionEndpointSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDAWEB_API FunctionEndpointSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetRegions() const
FunctionEndpointSummary & WithStateReason(StateReasonT &&value)
FunctionEndpointSummary & WithUpdateStatusReason(UpdateStatusReasonT &&value)
FunctionEndpointSummary & WithAuthType(AuthType value)
FunctionEndpointSummary & WithUpdatedAt(UpdatedAtT &&value)
void SetUpdateStatusReason(UpdateStatusReasonT &&value)
FunctionEndpointSummary & WithThrottleConfig(ThrottleConfigT &&value)
FunctionEndpointSummary & WithDomainName(DomainNameT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
FunctionEndpointSummary & WithAutoDeploymentMode(AutoDeploymentMode value)
FunctionEndpointSummary & WithDescription(DescriptionT &&value)
FunctionEndpointSummary & AddRevisionWeights(RevisionWeightsT &&value)
FunctionEndpointSummary & WithEndpointType(EndpointType value)
FunctionEndpointSummary & WithRegions(RegionsT &&value)
FunctionEndpointSummary & WithUpdateStatus(EndpointUpdateStatus value)
FunctionEndpointSummary & WithState(EndpointState 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