AWS SDK for C++

AWS SDK for C++ Version 1.11.915

Loading...
Searching...
No Matches
EndpointConfig.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/LambdaWeb_EXPORTS.h>
10#include <aws/lambda-web/model/AuthType.h>
11#include <aws/lambda-web/model/AutoDeploymentMode.h>
12#include <aws/lambda-web/model/EndpointType.h>
13#include <aws/lambda-web/model/ScalingConfig.h>
14#include <aws/lambda-web/model/ThrottleConfig.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace LambdaWeb {
26namespace Model {
27
34 public:
35 AWS_LAMBDAWEB_API EndpointConfig() = default;
36 AWS_LAMBDAWEB_API EndpointConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LAMBDAWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
47 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
48 template <typename EndpointNameT = Aws::String>
49 void SetEndpointName(EndpointNameT&& value) {
50 m_endpointNameHasBeenSet = true;
51 m_endpointName = std::forward<EndpointNameT>(value);
52 }
53 template <typename EndpointNameT = Aws::String>
54 EndpointConfig& WithEndpointName(EndpointNameT&& value) {
55 SetEndpointName(std::forward<EndpointNameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template <typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) {
68 m_descriptionHasBeenSet = true;
69 m_description = std::forward<DescriptionT>(value);
70 }
71 template <typename DescriptionT = Aws::String>
72 EndpointConfig& WithDescription(DescriptionT&& value) {
73 SetDescription(std::forward<DescriptionT>(value));
74 return *this;
75 }
77
79
88 inline EndpointType GetEndpointType() const { return m_endpointType; }
89 inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; }
90 inline void SetEndpointType(EndpointType value) {
91 m_endpointTypeHasBeenSet = true;
92 m_endpointType = value;
93 }
95 SetEndpointType(value);
96 return *this;
97 }
99
101
108 inline AuthType GetAuthType() const { return m_authType; }
109 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
110 inline void SetAuthType(AuthType value) {
111 m_authTypeHasBeenSet = true;
112 m_authType = value;
113 }
115 SetAuthType(value);
116 return *this;
117 }
119
121
129 inline AutoDeploymentMode GetAutoDeploymentMode() const { return m_autoDeploymentMode; }
130 inline bool AutoDeploymentModeHasBeenSet() const { return m_autoDeploymentModeHasBeenSet; }
132 m_autoDeploymentModeHasBeenSet = true;
133 m_autoDeploymentMode = value;
134 }
137 return *this;
138 }
140
142
150 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
151 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
152 template <typename RegionsT = Aws::Vector<Aws::String>>
153 void SetRegions(RegionsT&& value) {
154 m_regionsHasBeenSet = true;
155 m_regions = std::forward<RegionsT>(value);
156 }
157 template <typename RegionsT = Aws::Vector<Aws::String>>
158 EndpointConfig& WithRegions(RegionsT&& value) {
159 SetRegions(std::forward<RegionsT>(value));
160 return *this;
161 }
162 template <typename RegionsT = Aws::String>
163 EndpointConfig& AddRegions(RegionsT&& value) {
164 m_regionsHasBeenSet = true;
165 m_regions.emplace_back(std::forward<RegionsT>(value));
166 return *this;
167 }
169
171
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>
182 EndpointConfig& WithScalingConfig(ScalingConfigT&& value) {
183 SetScalingConfig(std::forward<ScalingConfigT>(value));
184 return *this;
185 }
187
189
192 inline const ThrottleConfig& GetThrottleConfig() const { return m_throttleConfig; }
193 inline bool ThrottleConfigHasBeenSet() const { return m_throttleConfigHasBeenSet; }
194 template <typename ThrottleConfigT = ThrottleConfig>
195 void SetThrottleConfig(ThrottleConfigT&& value) {
196 m_throttleConfigHasBeenSet = true;
197 m_throttleConfig = std::forward<ThrottleConfigT>(value);
198 }
199 template <typename ThrottleConfigT = ThrottleConfig>
200 EndpointConfig& WithThrottleConfig(ThrottleConfigT&& value) {
201 SetThrottleConfig(std::forward<ThrottleConfigT>(value));
202 return *this;
203 }
205 private:
206 Aws::String m_endpointName;
207
208 Aws::String m_description;
209
210 EndpointType m_endpointType{EndpointType::NOT_SET};
211
212 AuthType m_authType{AuthType::NOT_SET};
213
215
216 Aws::Vector<Aws::String> m_regions;
217
218 ScalingConfig m_scalingConfig;
219
220 ThrottleConfig m_throttleConfig;
221 bool m_endpointNameHasBeenSet = false;
222 bool m_descriptionHasBeenSet = false;
223 bool m_endpointTypeHasBeenSet = false;
224 bool m_authTypeHasBeenSet = false;
225 bool m_autoDeploymentModeHasBeenSet = false;
226 bool m_regionsHasBeenSet = false;
227 bool m_scalingConfigHasBeenSet = false;
228 bool m_throttleConfigHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace LambdaWeb
233} // namespace Aws
AWS_LAMBDAWEB_API EndpointConfig(Aws::Utils::Json::JsonView jsonValue)
EndpointConfig & WithDescription(DescriptionT &&value)
AutoDeploymentMode GetAutoDeploymentMode() const
const ThrottleConfig & GetThrottleConfig() const
EndpointConfig & WithRegions(RegionsT &&value)
EndpointConfig & WithThrottleConfig(ThrottleConfigT &&value)
void SetEndpointType(EndpointType value)
AWS_LAMBDAWEB_API Aws::Utils::Json::JsonValue Jsonize() const
EndpointConfig & WithAuthType(AuthType value)
AWS_LAMBDAWEB_API EndpointConfig()=default
const Aws::Vector< Aws::String > & GetRegions() const
AWS_LAMBDAWEB_API EndpointConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScalingConfig(ScalingConfigT &&value)
void SetThrottleConfig(ThrottleConfigT &&value)
void SetEndpointName(EndpointNameT &&value)
const ScalingConfig & GetScalingConfig() const
void SetDescription(DescriptionT &&value)
EndpointConfig & AddRegions(RegionsT &&value)
EndpointConfig & WithAutoDeploymentMode(AutoDeploymentMode value)
EndpointConfig & WithEndpointType(EndpointType value)
EndpointConfig & WithScalingConfig(ScalingConfigT &&value)
const Aws::String & GetDescription() const
EndpointConfig & WithEndpointName(EndpointNameT &&value)
void SetAutoDeploymentMode(AutoDeploymentMode value)
const Aws::String & GetEndpointName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue