AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
CreateEndpointGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/globalaccelerator/GlobalAcceleratorRequest.h>
11#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
12#include <aws/globalaccelerator/model/EndpointConfiguration.h>
13#include <aws/globalaccelerator/model/HealthCheckProtocol.h>
14#include <aws/globalaccelerator/model/PortOverride.h>
15
16#include <utility>
17
18namespace Aws {
19namespace GlobalAccelerator {
20namespace Model {
21
25 public:
26 AWS_GLOBALACCELERATOR_API CreateEndpointGroupRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateEndpointGroup"; }
33
34 AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override;
35
36 AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
42 inline const Aws::String& GetListenerArn() const { return m_listenerArn; }
43 inline bool ListenerArnHasBeenSet() const { return m_listenerArnHasBeenSet; }
44 template <typename ListenerArnT = Aws::String>
45 void SetListenerArn(ListenerArnT&& value) {
46 m_listenerArnHasBeenSet = true;
47 m_listenerArn = std::forward<ListenerArnT>(value);
48 }
49 template <typename ListenerArnT = Aws::String>
51 SetListenerArn(std::forward<ListenerArnT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetEndpointGroupRegion() const { return m_endpointGroupRegion; }
62 inline bool EndpointGroupRegionHasBeenSet() const { return m_endpointGroupRegionHasBeenSet; }
63 template <typename EndpointGroupRegionT = Aws::String>
64 void SetEndpointGroupRegion(EndpointGroupRegionT&& value) {
65 m_endpointGroupRegionHasBeenSet = true;
66 m_endpointGroupRegion = std::forward<EndpointGroupRegionT>(value);
67 }
68 template <typename EndpointGroupRegionT = Aws::String>
69 CreateEndpointGroupRequest& WithEndpointGroupRegion(EndpointGroupRegionT&& value) {
70 SetEndpointGroupRegion(std::forward<EndpointGroupRegionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<EndpointConfiguration>& GetEndpointConfigurations() const { return m_endpointConfigurations; }
80 inline bool EndpointConfigurationsHasBeenSet() const { return m_endpointConfigurationsHasBeenSet; }
81 template <typename EndpointConfigurationsT = Aws::Vector<EndpointConfiguration>>
82 void SetEndpointConfigurations(EndpointConfigurationsT&& value) {
83 m_endpointConfigurationsHasBeenSet = true;
84 m_endpointConfigurations = std::forward<EndpointConfigurationsT>(value);
85 }
86 template <typename EndpointConfigurationsT = Aws::Vector<EndpointConfiguration>>
87 CreateEndpointGroupRequest& WithEndpointConfigurations(EndpointConfigurationsT&& value) {
88 SetEndpointConfigurations(std::forward<EndpointConfigurationsT>(value));
89 return *this;
90 }
91 template <typename EndpointConfigurationsT = EndpointConfiguration>
92 CreateEndpointGroupRequest& AddEndpointConfigurations(EndpointConfigurationsT&& value) {
93 m_endpointConfigurationsHasBeenSet = true;
94 m_endpointConfigurations.emplace_back(std::forward<EndpointConfigurationsT>(value));
95 return *this;
96 }
98
100
108 inline double GetTrafficDialPercentage() const { return m_trafficDialPercentage; }
109 inline bool TrafficDialPercentageHasBeenSet() const { return m_trafficDialPercentageHasBeenSet; }
110 inline void SetTrafficDialPercentage(double value) {
111 m_trafficDialPercentageHasBeenSet = true;
112 m_trafficDialPercentage = value;
113 }
116 return *this;
117 }
119
121
127 inline int GetHealthCheckPort() const { return m_healthCheckPort; }
128 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
129 inline void SetHealthCheckPort(int value) {
130 m_healthCheckPortHasBeenSet = true;
131 m_healthCheckPort = value;
132 }
134 SetHealthCheckPort(value);
135 return *this;
136 }
138
140
144 inline HealthCheckProtocol GetHealthCheckProtocol() const { return m_healthCheckProtocol; }
145 inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
147 m_healthCheckProtocolHasBeenSet = true;
148 m_healthCheckProtocol = value;
149 }
155
157
161 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
162 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
163 template <typename HealthCheckPathT = Aws::String>
164 void SetHealthCheckPath(HealthCheckPathT&& value) {
165 m_healthCheckPathHasBeenSet = true;
166 m_healthCheckPath = std::forward<HealthCheckPathT>(value);
167 }
168 template <typename HealthCheckPathT = Aws::String>
170 SetHealthCheckPath(std::forward<HealthCheckPathT>(value));
171 return *this;
172 }
174
176
180 inline int GetHealthCheckIntervalSeconds() const { return m_healthCheckIntervalSeconds; }
181 inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
182 inline void SetHealthCheckIntervalSeconds(int value) {
183 m_healthCheckIntervalSecondsHasBeenSet = true;
184 m_healthCheckIntervalSeconds = value;
185 }
188 return *this;
189 }
191
193
198 inline int GetThresholdCount() const { return m_thresholdCount; }
199 inline bool ThresholdCountHasBeenSet() const { return m_thresholdCountHasBeenSet; }
200 inline void SetThresholdCount(int value) {
201 m_thresholdCountHasBeenSet = true;
202 m_thresholdCount = value;
203 }
205 SetThresholdCount(value);
206 return *this;
207 }
209
211
215 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
216 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
217 template <typename IdempotencyTokenT = Aws::String>
218 void SetIdempotencyToken(IdempotencyTokenT&& value) {
219 m_idempotencyTokenHasBeenSet = true;
220 m_idempotencyToken = std::forward<IdempotencyTokenT>(value);
221 }
222 template <typename IdempotencyTokenT = Aws::String>
224 SetIdempotencyToken(std::forward<IdempotencyTokenT>(value));
225 return *this;
226 }
228
230
240 inline const Aws::Vector<PortOverride>& GetPortOverrides() const { return m_portOverrides; }
241 inline bool PortOverridesHasBeenSet() const { return m_portOverridesHasBeenSet; }
242 template <typename PortOverridesT = Aws::Vector<PortOverride>>
243 void SetPortOverrides(PortOverridesT&& value) {
244 m_portOverridesHasBeenSet = true;
245 m_portOverrides = std::forward<PortOverridesT>(value);
246 }
247 template <typename PortOverridesT = Aws::Vector<PortOverride>>
249 SetPortOverrides(std::forward<PortOverridesT>(value));
250 return *this;
251 }
252 template <typename PortOverridesT = PortOverride>
254 m_portOverridesHasBeenSet = true;
255 m_portOverrides.emplace_back(std::forward<PortOverridesT>(value));
256 return *this;
257 }
259 private:
260 Aws::String m_listenerArn;
261
262 Aws::String m_endpointGroupRegion;
263
264 Aws::Vector<EndpointConfiguration> m_endpointConfigurations;
265
266 double m_trafficDialPercentage{0.0};
267
268 int m_healthCheckPort{0};
269
271
272 Aws::String m_healthCheckPath;
273
274 int m_healthCheckIntervalSeconds{0};
275
276 int m_thresholdCount{0};
277
279
280 Aws::Vector<PortOverride> m_portOverrides;
281 bool m_listenerArnHasBeenSet = false;
282 bool m_endpointGroupRegionHasBeenSet = false;
283 bool m_endpointConfigurationsHasBeenSet = false;
284 bool m_trafficDialPercentageHasBeenSet = false;
285 bool m_healthCheckPortHasBeenSet = false;
286 bool m_healthCheckProtocolHasBeenSet = false;
287 bool m_healthCheckPathHasBeenSet = false;
288 bool m_healthCheckIntervalSecondsHasBeenSet = false;
289 bool m_thresholdCountHasBeenSet = false;
290 bool m_idempotencyTokenHasBeenSet = true;
291 bool m_portOverridesHasBeenSet = false;
292};
293
294} // namespace Model
295} // namespace GlobalAccelerator
296} // namespace Aws
CreateEndpointGroupRequest & WithTrafficDialPercentage(double value)
AWS_GLOBALACCELERATOR_API CreateEndpointGroupRequest()=default
CreateEndpointGroupRequest & WithListenerArn(ListenerArnT &&value)
CreateEndpointGroupRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEndpointGroupRequest & AddPortOverrides(PortOverridesT &&value)
CreateEndpointGroupRequest & WithHealthCheckProtocol(HealthCheckProtocol value)
const Aws::Vector< EndpointConfiguration > & GetEndpointConfigurations() const
AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override
CreateEndpointGroupRequest & AddEndpointConfigurations(EndpointConfigurationsT &&value)
CreateEndpointGroupRequest & WithHealthCheckIntervalSeconds(int value)
CreateEndpointGroupRequest & WithPortOverrides(PortOverridesT &&value)
CreateEndpointGroupRequest & WithEndpointConfigurations(EndpointConfigurationsT &&value)
CreateEndpointGroupRequest & WithEndpointGroupRegion(EndpointGroupRegionT &&value)
CreateEndpointGroupRequest & WithHealthCheckPath(HealthCheckPathT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector