AWS SDK for C++

AWS SDK for C++ Version 1.11.906

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
47 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
48 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
49 template <typename EndpointNameT = Aws::String>
50 void SetEndpointName(EndpointNameT&& value) {
51 m_endpointNameHasBeenSet = true;
52 m_endpointName = std::forward<EndpointNameT>(value);
53 }
54 template <typename EndpointNameT = Aws::String>
55 EndpointConfig& WithEndpointName(EndpointNameT&& value) {
56 SetEndpointName(std::forward<EndpointNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template <typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) {
69 m_descriptionHasBeenSet = true;
70 m_description = std::forward<DescriptionT>(value);
71 }
72 template <typename DescriptionT = Aws::String>
73 EndpointConfig& WithDescription(DescriptionT&& value) {
74 SetDescription(std::forward<DescriptionT>(value));
75 return *this;
76 }
78
80
84 inline EndpointType GetEndpointType() const { return m_endpointType; }
85 inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; }
86 inline void SetEndpointType(EndpointType value) {
87 m_endpointTypeHasBeenSet = true;
88 m_endpointType = value;
89 }
91 SetEndpointType(value);
92 return *this;
93 }
95
97
100 inline AuthType GetAuthType() const { return m_authType; }
101 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
102 inline void SetAuthType(AuthType value) {
103 m_authTypeHasBeenSet = true;
104 m_authType = value;
105 }
107 SetAuthType(value);
108 return *this;
109 }
111
113
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
139 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
140 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
141 template <typename RegionsT = Aws::Vector<Aws::String>>
142 void SetRegions(RegionsT&& value) {
143 m_regionsHasBeenSet = true;
144 m_regions = std::forward<RegionsT>(value);
145 }
146 template <typename RegionsT = Aws::Vector<Aws::String>>
147 EndpointConfig& WithRegions(RegionsT&& value) {
148 SetRegions(std::forward<RegionsT>(value));
149 return *this;
150 }
151 template <typename RegionsT = Aws::String>
152 EndpointConfig& AddRegions(RegionsT&& value) {
153 m_regionsHasBeenSet = true;
154 m_regions.emplace_back(std::forward<RegionsT>(value));
155 return *this;
156 }
158
160
163 inline const ScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
164 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
165 template <typename ScalingConfigT = ScalingConfig>
166 void SetScalingConfig(ScalingConfigT&& value) {
167 m_scalingConfigHasBeenSet = true;
168 m_scalingConfig = std::forward<ScalingConfigT>(value);
169 }
170 template <typename ScalingConfigT = ScalingConfig>
171 EndpointConfig& WithScalingConfig(ScalingConfigT&& value) {
172 SetScalingConfig(std::forward<ScalingConfigT>(value));
173 return *this;
174 }
176
178
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>
189 EndpointConfig& WithThrottleConfig(ThrottleConfigT&& value) {
190 SetThrottleConfig(std::forward<ThrottleConfigT>(value));
191 return *this;
192 }
194 private:
195 Aws::String m_endpointName;
196
197 Aws::String m_description;
198
199 EndpointType m_endpointType{EndpointType::NOT_SET};
200
201 AuthType m_authType{AuthType::NOT_SET};
202
204
205 Aws::Vector<Aws::String> m_regions;
206
207 ScalingConfig m_scalingConfig;
208
209 ThrottleConfig m_throttleConfig;
210 bool m_endpointNameHasBeenSet = false;
211 bool m_descriptionHasBeenSet = false;
212 bool m_endpointTypeHasBeenSet = false;
213 bool m_authTypeHasBeenSet = false;
214 bool m_autoDeploymentModeHasBeenSet = false;
215 bool m_regionsHasBeenSet = false;
216 bool m_scalingConfigHasBeenSet = false;
217 bool m_throttleConfigHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace LambdaWeb
222} // 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