AWS SDK for C++

AWS SDK for C++ Version 1.11.916

Loading...
Searching...
No Matches
CreateWebFunctionEndpointRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lambda-web/LambdaWebRequest.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/EndpointType.h>
14#include <aws/lambda-web/model/RevisionWeight.h>
15#include <aws/lambda-web/model/ScalingConfig.h>
16#include <aws/lambda-web/model/ThrottleConfig.h>
17
18#include <utility>
19
20namespace Aws {
21namespace LambdaWeb {
22namespace Model {
23
30 public:
31 AWS_LAMBDAWEB_API CreateWebFunctionEndpointRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateWebFunctionEndpoint"; }
38
39 AWS_LAMBDAWEB_API Aws::String SerializePayload() const override;
40
42
49 inline const Aws::String& GetFunctionName() const { return m_functionName; }
50 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
51 template <typename FunctionNameT = Aws::String>
52 void SetFunctionName(FunctionNameT&& value) {
53 m_functionNameHasBeenSet = true;
54 m_functionName = std::forward<FunctionNameT>(value);
55 }
56 template <typename FunctionNameT = Aws::String>
58 SetFunctionName(std::forward<FunctionNameT>(value));
59 return *this;
60 }
62
64
69 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
70 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
71 template <typename EndpointNameT = Aws::String>
72 void SetEndpointName(EndpointNameT&& value) {
73 m_endpointNameHasBeenSet = true;
74 m_endpointName = std::forward<EndpointNameT>(value);
75 }
76 template <typename EndpointNameT = Aws::String>
78 SetEndpointName(std::forward<EndpointNameT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
111 inline EndpointType GetEndpointType() const { return m_endpointType; }
112 inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; }
113 inline void SetEndpointType(EndpointType value) {
114 m_endpointTypeHasBeenSet = true;
115 m_endpointType = value;
116 }
118 SetEndpointType(value);
119 return *this;
120 }
122
124
131 inline AuthType GetAuthType() const { return m_authType; }
132 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
133 inline void SetAuthType(AuthType value) {
134 m_authTypeHasBeenSet = true;
135 m_authType = value;
136 }
138 SetAuthType(value);
139 return *this;
140 }
142
144
153 inline AutoDeploymentMode GetAutoDeploymentMode() const { return m_autoDeploymentMode; }
154 inline bool AutoDeploymentModeHasBeenSet() const { return m_autoDeploymentModeHasBeenSet; }
156 m_autoDeploymentModeHasBeenSet = true;
157 m_autoDeploymentMode = value;
158 }
161 return *this;
162 }
164
166
171 inline const Aws::Vector<RevisionWeight>& GetRevisionWeights() const { return m_revisionWeights; }
172 inline bool RevisionWeightsHasBeenSet() const { return m_revisionWeightsHasBeenSet; }
173 template <typename RevisionWeightsT = Aws::Vector<RevisionWeight>>
174 void SetRevisionWeights(RevisionWeightsT&& value) {
175 m_revisionWeightsHasBeenSet = true;
176 m_revisionWeights = std::forward<RevisionWeightsT>(value);
177 }
178 template <typename RevisionWeightsT = Aws::Vector<RevisionWeight>>
180 SetRevisionWeights(std::forward<RevisionWeightsT>(value));
181 return *this;
182 }
183 template <typename RevisionWeightsT = RevisionWeight>
185 m_revisionWeightsHasBeenSet = true;
186 m_revisionWeights.emplace_back(std::forward<RevisionWeightsT>(value));
187 return *this;
188 }
190
192
200 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
201 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
202 template <typename RegionsT = Aws::Vector<Aws::String>>
203 void SetRegions(RegionsT&& value) {
204 m_regionsHasBeenSet = true;
205 m_regions = std::forward<RegionsT>(value);
206 }
207 template <typename RegionsT = Aws::Vector<Aws::String>>
209 SetRegions(std::forward<RegionsT>(value));
210 return *this;
211 }
212 template <typename RegionsT = Aws::String>
214 m_regionsHasBeenSet = true;
215 m_regions.emplace_back(std::forward<RegionsT>(value));
216 return *this;
217 }
219
221
225 inline const ScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
226 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
227 template <typename ScalingConfigT = ScalingConfig>
228 void SetScalingConfig(ScalingConfigT&& value) {
229 m_scalingConfigHasBeenSet = true;
230 m_scalingConfig = std::forward<ScalingConfigT>(value);
231 }
232 template <typename ScalingConfigT = ScalingConfig>
234 SetScalingConfig(std::forward<ScalingConfigT>(value));
235 return *this;
236 }
238
240
245 inline const ThrottleConfig& GetThrottleConfig() const { return m_throttleConfig; }
246 inline bool ThrottleConfigHasBeenSet() const { return m_throttleConfigHasBeenSet; }
247 template <typename ThrottleConfigT = ThrottleConfig>
248 void SetThrottleConfig(ThrottleConfigT&& value) {
249 m_throttleConfigHasBeenSet = true;
250 m_throttleConfig = std::forward<ThrottleConfigT>(value);
251 }
252 template <typename ThrottleConfigT = ThrottleConfig>
254 SetThrottleConfig(std::forward<ThrottleConfigT>(value));
255 return *this;
256 }
258 private:
259 Aws::String m_functionName;
260
261 Aws::String m_endpointName;
262
263 Aws::String m_description;
264
265 EndpointType m_endpointType{EndpointType::NOT_SET};
266
267 AuthType m_authType{AuthType::NOT_SET};
268
270
271 Aws::Vector<RevisionWeight> m_revisionWeights;
272
273 Aws::Vector<Aws::String> m_regions;
274
275 ScalingConfig m_scalingConfig;
276
277 ThrottleConfig m_throttleConfig;
278 bool m_functionNameHasBeenSet = false;
279 bool m_endpointNameHasBeenSet = false;
280 bool m_descriptionHasBeenSet = false;
281 bool m_endpointTypeHasBeenSet = false;
282 bool m_authTypeHasBeenSet = false;
283 bool m_autoDeploymentModeHasBeenSet = false;
284 bool m_revisionWeightsHasBeenSet = false;
285 bool m_regionsHasBeenSet = false;
286 bool m_scalingConfigHasBeenSet = false;
287 bool m_throttleConfigHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace LambdaWeb
292} // namespace Aws
CreateWebFunctionEndpointRequest & WithRegions(RegionsT &&value)
CreateWebFunctionEndpointRequest & WithFunctionName(FunctionNameT &&value)
CreateWebFunctionEndpointRequest & WithThrottleConfig(ThrottleConfigT &&value)
CreateWebFunctionEndpointRequest & WithEndpointType(EndpointType value)
CreateWebFunctionEndpointRequest & WithAutoDeploymentMode(AutoDeploymentMode value)
CreateWebFunctionEndpointRequest & WithRevisionWeights(RevisionWeightsT &&value)
CreateWebFunctionEndpointRequest & AddRegions(RegionsT &&value)
CreateWebFunctionEndpointRequest & WithEndpointName(EndpointNameT &&value)
CreateWebFunctionEndpointRequest & WithAuthType(AuthType value)
AWS_LAMBDAWEB_API Aws::String SerializePayload() const override
CreateWebFunctionEndpointRequest & WithScalingConfig(ScalingConfigT &&value)
AWS_LAMBDAWEB_API CreateWebFunctionEndpointRequest()=default
CreateWebFunctionEndpointRequest & WithDescription(DescriptionT &&value)
CreateWebFunctionEndpointRequest & AddRevisionWeights(RevisionWeightsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector