AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
EndpointGroup.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/globalaccelerator/GlobalAccelerator_EXPORTS.h>
10#include <aws/globalaccelerator/model/EndpointDescription.h>
11#include <aws/globalaccelerator/model/HealthCheckProtocol.h>
12#include <aws/globalaccelerator/model/PortOverride.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GlobalAccelerator {
24namespace Model {
25
33 public:
34 AWS_GLOBALACCELERATOR_API EndpointGroup() = default;
35 AWS_GLOBALACCELERATOR_API EndpointGroup(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GLOBALACCELERATOR_API EndpointGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetEndpointGroupArn() const { return m_endpointGroupArn; }
44 inline bool EndpointGroupArnHasBeenSet() const { return m_endpointGroupArnHasBeenSet; }
45 template <typename EndpointGroupArnT = Aws::String>
46 void SetEndpointGroupArn(EndpointGroupArnT&& value) {
47 m_endpointGroupArnHasBeenSet = true;
48 m_endpointGroupArn = std::forward<EndpointGroupArnT>(value);
49 }
50 template <typename EndpointGroupArnT = Aws::String>
51 EndpointGroup& WithEndpointGroupArn(EndpointGroupArnT&& value) {
52 SetEndpointGroupArn(std::forward<EndpointGroupArnT>(value));
53 return *this;
54 }
56
58
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 EndpointGroup& WithEndpointGroupRegion(EndpointGroupRegionT&& value) {
70 SetEndpointGroupRegion(std::forward<EndpointGroupRegionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<EndpointDescription>& GetEndpointDescriptions() const { return m_endpointDescriptions; }
80 inline bool EndpointDescriptionsHasBeenSet() const { return m_endpointDescriptionsHasBeenSet; }
81 template <typename EndpointDescriptionsT = Aws::Vector<EndpointDescription>>
82 void SetEndpointDescriptions(EndpointDescriptionsT&& value) {
83 m_endpointDescriptionsHasBeenSet = true;
84 m_endpointDescriptions = std::forward<EndpointDescriptionsT>(value);
85 }
86 template <typename EndpointDescriptionsT = Aws::Vector<EndpointDescription>>
87 EndpointGroup& WithEndpointDescriptions(EndpointDescriptionsT&& value) {
88 SetEndpointDescriptions(std::forward<EndpointDescriptionsT>(value));
89 return *this;
90 }
91 template <typename EndpointDescriptionsT = EndpointDescription>
92 EndpointGroup& AddEndpointDescriptions(EndpointDescriptionsT&& value) {
93 m_endpointDescriptionsHasBeenSet = true;
94 m_endpointDescriptions.emplace_back(std::forward<EndpointDescriptionsT>(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
128 inline int GetHealthCheckPort() const { return m_healthCheckPort; }
129 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
130 inline void SetHealthCheckPort(int value) {
131 m_healthCheckPortHasBeenSet = true;
132 m_healthCheckPort = value;
133 }
135 SetHealthCheckPort(value);
136 return *this;
137 }
139
141
145 inline HealthCheckProtocol GetHealthCheckProtocol() const { return m_healthCheckProtocol; }
146 inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
148 m_healthCheckProtocolHasBeenSet = true;
149 m_healthCheckProtocol = value;
150 }
153 return *this;
154 }
156
158
163 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
164 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
165 template <typename HealthCheckPathT = Aws::String>
166 void SetHealthCheckPath(HealthCheckPathT&& value) {
167 m_healthCheckPathHasBeenSet = true;
168 m_healthCheckPath = std::forward<HealthCheckPathT>(value);
169 }
170 template <typename HealthCheckPathT = Aws::String>
171 EndpointGroup& WithHealthCheckPath(HealthCheckPathT&& value) {
172 SetHealthCheckPath(std::forward<HealthCheckPathT>(value));
173 return *this;
174 }
176
178
182 inline int GetHealthCheckIntervalSeconds() const { return m_healthCheckIntervalSeconds; }
183 inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
184 inline void SetHealthCheckIntervalSeconds(int value) {
185 m_healthCheckIntervalSecondsHasBeenSet = true;
186 m_healthCheckIntervalSeconds = value;
187 }
190 return *this;
191 }
193
195
200 inline int GetThresholdCount() const { return m_thresholdCount; }
201 inline bool ThresholdCountHasBeenSet() const { return m_thresholdCountHasBeenSet; }
202 inline void SetThresholdCount(int value) {
203 m_thresholdCountHasBeenSet = true;
204 m_thresholdCount = value;
205 }
207 SetThresholdCount(value);
208 return *this;
209 }
211
213
219 inline const Aws::Vector<PortOverride>& GetPortOverrides() const { return m_portOverrides; }
220 inline bool PortOverridesHasBeenSet() const { return m_portOverridesHasBeenSet; }
221 template <typename PortOverridesT = Aws::Vector<PortOverride>>
222 void SetPortOverrides(PortOverridesT&& value) {
223 m_portOverridesHasBeenSet = true;
224 m_portOverrides = std::forward<PortOverridesT>(value);
225 }
226 template <typename PortOverridesT = Aws::Vector<PortOverride>>
227 EndpointGroup& WithPortOverrides(PortOverridesT&& value) {
228 SetPortOverrides(std::forward<PortOverridesT>(value));
229 return *this;
230 }
231 template <typename PortOverridesT = PortOverride>
232 EndpointGroup& AddPortOverrides(PortOverridesT&& value) {
233 m_portOverridesHasBeenSet = true;
234 m_portOverrides.emplace_back(std::forward<PortOverridesT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_endpointGroupArn;
240
241 Aws::String m_endpointGroupRegion;
242
243 Aws::Vector<EndpointDescription> m_endpointDescriptions;
244
245 double m_trafficDialPercentage{0.0};
246
247 int m_healthCheckPort{0};
248
250
251 Aws::String m_healthCheckPath;
252
253 int m_healthCheckIntervalSeconds{0};
254
255 int m_thresholdCount{0};
256
257 Aws::Vector<PortOverride> m_portOverrides;
258 bool m_endpointGroupArnHasBeenSet = false;
259 bool m_endpointGroupRegionHasBeenSet = false;
260 bool m_endpointDescriptionsHasBeenSet = false;
261 bool m_trafficDialPercentageHasBeenSet = false;
262 bool m_healthCheckPortHasBeenSet = false;
263 bool m_healthCheckProtocolHasBeenSet = false;
264 bool m_healthCheckPathHasBeenSet = false;
265 bool m_healthCheckIntervalSecondsHasBeenSet = false;
266 bool m_thresholdCountHasBeenSet = false;
267 bool m_portOverridesHasBeenSet = false;
268};
269
270} // namespace Model
271} // namespace GlobalAccelerator
272} // namespace Aws
EndpointGroup & WithHealthCheckPort(int value)
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLOBALACCELERATOR_API EndpointGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetHealthCheckPath() const
void SetPortOverrides(PortOverridesT &&value)
void SetEndpointGroupRegion(EndpointGroupRegionT &&value)
void SetEndpointDescriptions(EndpointDescriptionsT &&value)
EndpointGroup & WithHealthCheckProtocol(HealthCheckProtocol value)
const Aws::Vector< EndpointDescription > & GetEndpointDescriptions() const
EndpointGroup & WithEndpointDescriptions(EndpointDescriptionsT &&value)
HealthCheckProtocol GetHealthCheckProtocol() const
AWS_GLOBALACCELERATOR_API EndpointGroup()=default
EndpointGroup & WithHealthCheckPath(HealthCheckPathT &&value)
EndpointGroup & AddEndpointDescriptions(EndpointDescriptionsT &&value)
const Aws::String & GetEndpointGroupArn() const
void SetHealthCheckProtocol(HealthCheckProtocol value)
const Aws::String & GetEndpointGroupRegion() const
AWS_GLOBALACCELERATOR_API EndpointGroup(Aws::Utils::Json::JsonView jsonValue)
EndpointGroup & WithEndpointGroupArn(EndpointGroupArnT &&value)
const Aws::Vector< PortOverride > & GetPortOverrides() const
void SetHealthCheckPath(HealthCheckPathT &&value)
void SetEndpointGroupArn(EndpointGroupArnT &&value)
EndpointGroup & WithTrafficDialPercentage(double value)
EndpointGroup & WithHealthCheckIntervalSeconds(int value)
EndpointGroup & WithEndpointGroupRegion(EndpointGroupRegionT &&value)
EndpointGroup & AddPortOverrides(PortOverridesT &&value)
EndpointGroup & WithThresholdCount(int value)
EndpointGroup & WithPortOverrides(PortOverridesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue