AWS SDK for C++

AWS SDK for C++ Version 1.11.906

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
46 inline const Aws::String& GetFunctionName() const { return m_functionName; }
47 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
48 template <typename FunctionNameT = Aws::String>
49 void SetFunctionName(FunctionNameT&& value) {
50 m_functionNameHasBeenSet = true;
51 m_functionName = std::forward<FunctionNameT>(value);
52 }
53 template <typename FunctionNameT = Aws::String>
55 SetFunctionName(std::forward<FunctionNameT>(value));
56 return *this;
57 }
59
61
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>
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 AuthType GetAuthType() const { return m_authType; }
103 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
104 inline void SetAuthType(AuthType value) {
105 m_authTypeHasBeenSet = true;
106 m_authType = value;
107 }
109 SetAuthType(value);
110 return *this;
111 }
113
115
118 inline AutoDeploymentMode GetAutoDeploymentMode() const { return m_autoDeploymentMode; }
119 inline bool AutoDeploymentModeHasBeenSet() const { return m_autoDeploymentModeHasBeenSet; }
121 m_autoDeploymentModeHasBeenSet = true;
122 m_autoDeploymentMode = value;
123 }
126 return *this;
127 }
129
131
135 inline const Aws::Vector<RevisionWeight>& GetRevisionWeights() const { return m_revisionWeights; }
136 inline bool RevisionWeightsHasBeenSet() const { return m_revisionWeightsHasBeenSet; }
137 template <typename RevisionWeightsT = Aws::Vector<RevisionWeight>>
138 void SetRevisionWeights(RevisionWeightsT&& value) {
139 m_revisionWeightsHasBeenSet = true;
140 m_revisionWeights = std::forward<RevisionWeightsT>(value);
141 }
142 template <typename RevisionWeightsT = Aws::Vector<RevisionWeight>>
144 SetRevisionWeights(std::forward<RevisionWeightsT>(value));
145 return *this;
146 }
147 template <typename RevisionWeightsT = RevisionWeight>
149 m_revisionWeightsHasBeenSet = true;
150 m_revisionWeights.emplace_back(std::forward<RevisionWeightsT>(value));
151 return *this;
152 }
154
156
161 inline const ScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
162 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
163 template <typename ScalingConfigT = ScalingConfig>
164 void SetScalingConfig(ScalingConfigT&& value) {
165 m_scalingConfigHasBeenSet = true;
166 m_scalingConfig = std::forward<ScalingConfigT>(value);
167 }
168 template <typename ScalingConfigT = ScalingConfig>
170 SetScalingConfig(std::forward<ScalingConfigT>(value));
171 return *this;
172 }
174
176
181 inline const ThrottleConfig& GetThrottleConfig() const { return m_throttleConfig; }
182 inline bool ThrottleConfigHasBeenSet() const { return m_throttleConfigHasBeenSet; }
183 template <typename ThrottleConfigT = ThrottleConfig>
184 void SetThrottleConfig(ThrottleConfigT&& value) {
185 m_throttleConfigHasBeenSet = true;
186 m_throttleConfig = std::forward<ThrottleConfigT>(value);
187 }
188 template <typename ThrottleConfigT = ThrottleConfig>
190 SetThrottleConfig(std::forward<ThrottleConfigT>(value));
191 return *this;
192 }
194 private:
195 Aws::String m_functionName;
196
197 Aws::String m_endpointName;
198
199 Aws::String m_description;
200
201 AuthType m_authType{AuthType::NOT_SET};
202
204
205 Aws::Vector<RevisionWeight> m_revisionWeights;
206
207 ScalingConfig m_scalingConfig;
208
209 ThrottleConfig m_throttleConfig;
210 bool m_functionNameHasBeenSet = false;
211 bool m_endpointNameHasBeenSet = false;
212 bool m_descriptionHasBeenSet = false;
213 bool m_authTypeHasBeenSet = false;
214 bool m_autoDeploymentModeHasBeenSet = false;
215 bool m_revisionWeightsHasBeenSet = false;
216 bool m_scalingConfigHasBeenSet = false;
217 bool m_throttleConfigHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace LambdaWeb
222} // 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