AWS SDK for C++

AWS SDK for C++ Version 1.11.915

Loading...
Searching...
No Matches
UpdateWebFunctionEndpointRequest.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/RevisionWeight.h>
14#include <aws/lambda-web/model/ScalingConfig.h>
15#include <aws/lambda-web/model/ThrottleConfig.h>
16
17#include <utility>
18
19namespace Aws {
20namespace LambdaWeb {
21namespace Model {
22
29 public:
30 AWS_LAMBDAWEB_API UpdateWebFunctionEndpointRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateWebFunctionEndpoint"; }
37
38 AWS_LAMBDAWEB_API Aws::String SerializePayload() const override;
39
41
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
70 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
71 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
72 template <typename EndpointNameT = Aws::String>
73 void SetEndpointName(EndpointNameT&& value) {
74 m_endpointNameHasBeenSet = true;
75 m_endpointName = std::forward<EndpointNameT>(value);
76 }
77 template <typename EndpointNameT = Aws::String>
79 SetEndpointName(std::forward<EndpointNameT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetDescription() const { return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 template <typename DescriptionT = Aws::String>
92 void SetDescription(DescriptionT&& value) {
93 m_descriptionHasBeenSet = true;
94 m_description = std::forward<DescriptionT>(value);
95 }
96 template <typename DescriptionT = Aws::String>
98 SetDescription(std::forward<DescriptionT>(value));
99 return *this;
100 }
102
104
111 inline AuthType GetAuthType() const { return m_authType; }
112 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
113 inline void SetAuthType(AuthType value) {
114 m_authTypeHasBeenSet = true;
115 m_authType = value;
116 }
118 SetAuthType(value);
119 return *this;
120 }
122
124
131 inline AutoDeploymentMode GetAutoDeploymentMode() const { return m_autoDeploymentMode; }
132 inline bool AutoDeploymentModeHasBeenSet() const { return m_autoDeploymentModeHasBeenSet; }
134 m_autoDeploymentModeHasBeenSet = true;
135 m_autoDeploymentMode = value;
136 }
139 return *this;
140 }
142
144
148 inline const Aws::Vector<RevisionWeight>& GetRevisionWeights() const { return m_revisionWeights; }
149 inline bool RevisionWeightsHasBeenSet() const { return m_revisionWeightsHasBeenSet; }
150 template <typename RevisionWeightsT = Aws::Vector<RevisionWeight>>
151 void SetRevisionWeights(RevisionWeightsT&& value) {
152 m_revisionWeightsHasBeenSet = true;
153 m_revisionWeights = std::forward<RevisionWeightsT>(value);
154 }
155 template <typename RevisionWeightsT = Aws::Vector<RevisionWeight>>
157 SetRevisionWeights(std::forward<RevisionWeightsT>(value));
158 return *this;
159 }
160 template <typename RevisionWeightsT = RevisionWeight>
162 m_revisionWeightsHasBeenSet = true;
163 m_revisionWeights.emplace_back(std::forward<RevisionWeightsT>(value));
164 return *this;
165 }
167
169
174 inline const ScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
175 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
176 template <typename ScalingConfigT = ScalingConfig>
177 void SetScalingConfig(ScalingConfigT&& value) {
178 m_scalingConfigHasBeenSet = true;
179 m_scalingConfig = std::forward<ScalingConfigT>(value);
180 }
181 template <typename ScalingConfigT = ScalingConfig>
183 SetScalingConfig(std::forward<ScalingConfigT>(value));
184 return *this;
185 }
187
189
194 inline const ThrottleConfig& GetThrottleConfig() const { return m_throttleConfig; }
195 inline bool ThrottleConfigHasBeenSet() const { return m_throttleConfigHasBeenSet; }
196 template <typename ThrottleConfigT = ThrottleConfig>
197 void SetThrottleConfig(ThrottleConfigT&& value) {
198 m_throttleConfigHasBeenSet = true;
199 m_throttleConfig = std::forward<ThrottleConfigT>(value);
200 }
201 template <typename ThrottleConfigT = ThrottleConfig>
203 SetThrottleConfig(std::forward<ThrottleConfigT>(value));
204 return *this;
205 }
207 private:
208 Aws::String m_functionName;
209
210 Aws::String m_endpointName;
211
212 Aws::String m_description;
213
214 AuthType m_authType{AuthType::NOT_SET};
215
217
218 Aws::Vector<RevisionWeight> m_revisionWeights;
219
220 ScalingConfig m_scalingConfig;
221
222 ThrottleConfig m_throttleConfig;
223 bool m_functionNameHasBeenSet = false;
224 bool m_endpointNameHasBeenSet = false;
225 bool m_descriptionHasBeenSet = false;
226 bool m_authTypeHasBeenSet = false;
227 bool m_autoDeploymentModeHasBeenSet = false;
228 bool m_revisionWeightsHasBeenSet = false;
229 bool m_scalingConfigHasBeenSet = false;
230 bool m_throttleConfigHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace LambdaWeb
235} // namespace Aws
UpdateWebFunctionEndpointRequest & WithEndpointName(EndpointNameT &&value)
AWS_LAMBDAWEB_API Aws::String SerializePayload() const override
UpdateWebFunctionEndpointRequest & WithDescription(DescriptionT &&value)
UpdateWebFunctionEndpointRequest & WithAuthType(AuthType value)
AWS_LAMBDAWEB_API UpdateWebFunctionEndpointRequest()=default
UpdateWebFunctionEndpointRequest & WithRevisionWeights(RevisionWeightsT &&value)
UpdateWebFunctionEndpointRequest & WithScalingConfig(ScalingConfigT &&value)
UpdateWebFunctionEndpointRequest & WithAutoDeploymentMode(AutoDeploymentMode value)
UpdateWebFunctionEndpointRequest & WithThrottleConfig(ThrottleConfigT &&value)
UpdateWebFunctionEndpointRequest & AddRevisionWeights(RevisionWeightsT &&value)
UpdateWebFunctionEndpointRequest & WithFunctionName(FunctionNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector