AWS SDK for C++

AWS SDK for C++ Version 1.11.906

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
48 inline const Aws::String& GetFunctionName() const { return m_functionName; }
49 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
50 template <typename FunctionNameT = Aws::String>
51 void SetFunctionName(FunctionNameT&& value) {
52 m_functionNameHasBeenSet = true;
53 m_functionName = std::forward<FunctionNameT>(value);
54 }
55 template <typename FunctionNameT = Aws::String>
57 SetFunctionName(std::forward<FunctionNameT>(value));
58 return *this;
59 }
61
63
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
106 inline EndpointType GetEndpointType() const { return m_endpointType; }
107 inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; }
108 inline void SetEndpointType(EndpointType value) {
109 m_endpointTypeHasBeenSet = true;
110 m_endpointType = value;
111 }
113 SetEndpointType(value);
114 return *this;
115 }
117
119
122 inline AuthType GetAuthType() const { return m_authType; }
123 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
124 inline void SetAuthType(AuthType value) {
125 m_authTypeHasBeenSet = true;
126 m_authType = value;
127 }
129 SetAuthType(value);
130 return *this;
131 }
133
135
141 inline AutoDeploymentMode GetAutoDeploymentMode() const { return m_autoDeploymentMode; }
142 inline bool AutoDeploymentModeHasBeenSet() const { return m_autoDeploymentModeHasBeenSet; }
144 m_autoDeploymentModeHasBeenSet = true;
145 m_autoDeploymentMode = value;
146 }
149 return *this;
150 }
152
154
159 inline const Aws::Vector<RevisionWeight>& GetRevisionWeights() const { return m_revisionWeights; }
160 inline bool RevisionWeightsHasBeenSet() const { return m_revisionWeightsHasBeenSet; }
161 template <typename RevisionWeightsT = Aws::Vector<RevisionWeight>>
162 void SetRevisionWeights(RevisionWeightsT&& value) {
163 m_revisionWeightsHasBeenSet = true;
164 m_revisionWeights = std::forward<RevisionWeightsT>(value);
165 }
166 template <typename RevisionWeightsT = Aws::Vector<RevisionWeight>>
168 SetRevisionWeights(std::forward<RevisionWeightsT>(value));
169 return *this;
170 }
171 template <typename RevisionWeightsT = RevisionWeight>
173 m_revisionWeightsHasBeenSet = true;
174 m_revisionWeights.emplace_back(std::forward<RevisionWeightsT>(value));
175 return *this;
176 }
178
180
188 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
189 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
190 template <typename RegionsT = Aws::Vector<Aws::String>>
191 void SetRegions(RegionsT&& value) {
192 m_regionsHasBeenSet = true;
193 m_regions = std::forward<RegionsT>(value);
194 }
195 template <typename RegionsT = Aws::Vector<Aws::String>>
197 SetRegions(std::forward<RegionsT>(value));
198 return *this;
199 }
200 template <typename RegionsT = Aws::String>
202 m_regionsHasBeenSet = true;
203 m_regions.emplace_back(std::forward<RegionsT>(value));
204 return *this;
205 }
207
209
213 inline const ScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
214 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
215 template <typename ScalingConfigT = ScalingConfig>
216 void SetScalingConfig(ScalingConfigT&& value) {
217 m_scalingConfigHasBeenSet = true;
218 m_scalingConfig = std::forward<ScalingConfigT>(value);
219 }
220 template <typename ScalingConfigT = ScalingConfig>
222 SetScalingConfig(std::forward<ScalingConfigT>(value));
223 return *this;
224 }
226
228
233 inline const ThrottleConfig& GetThrottleConfig() const { return m_throttleConfig; }
234 inline bool ThrottleConfigHasBeenSet() const { return m_throttleConfigHasBeenSet; }
235 template <typename ThrottleConfigT = ThrottleConfig>
236 void SetThrottleConfig(ThrottleConfigT&& value) {
237 m_throttleConfigHasBeenSet = true;
238 m_throttleConfig = std::forward<ThrottleConfigT>(value);
239 }
240 template <typename ThrottleConfigT = ThrottleConfig>
242 SetThrottleConfig(std::forward<ThrottleConfigT>(value));
243 return *this;
244 }
246 private:
247 Aws::String m_functionName;
248
249 Aws::String m_endpointName;
250
251 Aws::String m_description;
252
253 EndpointType m_endpointType{EndpointType::NOT_SET};
254
255 AuthType m_authType{AuthType::NOT_SET};
256
258
259 Aws::Vector<RevisionWeight> m_revisionWeights;
260
261 Aws::Vector<Aws::String> m_regions;
262
263 ScalingConfig m_scalingConfig;
264
265 ThrottleConfig m_throttleConfig;
266 bool m_functionNameHasBeenSet = false;
267 bool m_endpointNameHasBeenSet = false;
268 bool m_descriptionHasBeenSet = false;
269 bool m_endpointTypeHasBeenSet = false;
270 bool m_authTypeHasBeenSet = false;
271 bool m_autoDeploymentModeHasBeenSet = false;
272 bool m_revisionWeightsHasBeenSet = false;
273 bool m_regionsHasBeenSet = false;
274 bool m_scalingConfigHasBeenSet = false;
275 bool m_throttleConfigHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace LambdaWeb
280} // 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