AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
EndpointGroup.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/globalaccelerator/model/HealthCheckProtocol.h>
11#include <aws/globalaccelerator/model/EndpointDescription.h>
12#include <aws/globalaccelerator/model/PortOverride.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GlobalAccelerator
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_GLOBALACCELERATOR_API EndpointGroup() = default;
40 AWS_GLOBALACCELERATOR_API EndpointGroup(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GLOBALACCELERATOR_API EndpointGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetEndpointGroupArn() const { return m_endpointGroupArn; }
50 inline bool EndpointGroupArnHasBeenSet() const { return m_endpointGroupArnHasBeenSet; }
51 template<typename EndpointGroupArnT = Aws::String>
52 void SetEndpointGroupArn(EndpointGroupArnT&& value) { m_endpointGroupArnHasBeenSet = true; m_endpointGroupArn = std::forward<EndpointGroupArnT>(value); }
53 template<typename EndpointGroupArnT = Aws::String>
54 EndpointGroup& WithEndpointGroupArn(EndpointGroupArnT&& value) { SetEndpointGroupArn(std::forward<EndpointGroupArnT>(value)); return *this;}
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) { m_endpointGroupRegionHasBeenSet = true; m_endpointGroupRegion = std::forward<EndpointGroupRegionT>(value); }
65 template<typename EndpointGroupRegionT = Aws::String>
66 EndpointGroup& WithEndpointGroupRegion(EndpointGroupRegionT&& value) { SetEndpointGroupRegion(std::forward<EndpointGroupRegionT>(value)); return *this;}
68
70
73 inline const Aws::Vector<EndpointDescription>& GetEndpointDescriptions() const { return m_endpointDescriptions; }
74 inline bool EndpointDescriptionsHasBeenSet() const { return m_endpointDescriptionsHasBeenSet; }
75 template<typename EndpointDescriptionsT = Aws::Vector<EndpointDescription>>
76 void SetEndpointDescriptions(EndpointDescriptionsT&& value) { m_endpointDescriptionsHasBeenSet = true; m_endpointDescriptions = std::forward<EndpointDescriptionsT>(value); }
77 template<typename EndpointDescriptionsT = Aws::Vector<EndpointDescription>>
78 EndpointGroup& WithEndpointDescriptions(EndpointDescriptionsT&& value) { SetEndpointDescriptions(std::forward<EndpointDescriptionsT>(value)); return *this;}
79 template<typename EndpointDescriptionsT = EndpointDescription>
80 EndpointGroup& AddEndpointDescriptions(EndpointDescriptionsT&& value) { m_endpointDescriptionsHasBeenSet = true; m_endpointDescriptions.emplace_back(std::forward<EndpointDescriptionsT>(value)); return *this; }
82
84
92 inline double GetTrafficDialPercentage() const { return m_trafficDialPercentage; }
93 inline bool TrafficDialPercentageHasBeenSet() const { return m_trafficDialPercentageHasBeenSet; }
94 inline void SetTrafficDialPercentage(double value) { m_trafficDialPercentageHasBeenSet = true; m_trafficDialPercentage = value; }
95 inline EndpointGroup& WithTrafficDialPercentage(double value) { SetTrafficDialPercentage(value); return *this;}
97
99
106 inline int GetHealthCheckPort() const { return m_healthCheckPort; }
107 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
108 inline void SetHealthCheckPort(int value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
109 inline EndpointGroup& WithHealthCheckPort(int value) { SetHealthCheckPort(value); return *this;}
111
113
117 inline HealthCheckProtocol GetHealthCheckProtocol() const { return m_healthCheckProtocol; }
118 inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
119 inline void SetHealthCheckProtocol(HealthCheckProtocol value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = value; }
122
124
129 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
130 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
131 template<typename HealthCheckPathT = Aws::String>
132 void SetHealthCheckPath(HealthCheckPathT&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = std::forward<HealthCheckPathT>(value); }
133 template<typename HealthCheckPathT = Aws::String>
134 EndpointGroup& WithHealthCheckPath(HealthCheckPathT&& value) { SetHealthCheckPath(std::forward<HealthCheckPathT>(value)); return *this;}
136
138
142 inline int GetHealthCheckIntervalSeconds() const { return m_healthCheckIntervalSeconds; }
143 inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
144 inline void SetHealthCheckIntervalSeconds(int value) { m_healthCheckIntervalSecondsHasBeenSet = true; m_healthCheckIntervalSeconds = value; }
147
149
154 inline int GetThresholdCount() const { return m_thresholdCount; }
155 inline bool ThresholdCountHasBeenSet() const { return m_thresholdCountHasBeenSet; }
156 inline void SetThresholdCount(int value) { m_thresholdCountHasBeenSet = true; m_thresholdCount = value; }
157 inline EndpointGroup& WithThresholdCount(int value) { SetThresholdCount(value); return *this;}
159
161
167 inline const Aws::Vector<PortOverride>& GetPortOverrides() const { return m_portOverrides; }
168 inline bool PortOverridesHasBeenSet() const { return m_portOverridesHasBeenSet; }
169 template<typename PortOverridesT = Aws::Vector<PortOverride>>
170 void SetPortOverrides(PortOverridesT&& value) { m_portOverridesHasBeenSet = true; m_portOverrides = std::forward<PortOverridesT>(value); }
171 template<typename PortOverridesT = Aws::Vector<PortOverride>>
172 EndpointGroup& WithPortOverrides(PortOverridesT&& value) { SetPortOverrides(std::forward<PortOverridesT>(value)); return *this;}
173 template<typename PortOverridesT = PortOverride>
174 EndpointGroup& AddPortOverrides(PortOverridesT&& value) { m_portOverridesHasBeenSet = true; m_portOverrides.emplace_back(std::forward<PortOverridesT>(value)); return *this; }
176 private:
177
178 Aws::String m_endpointGroupArn;
179 bool m_endpointGroupArnHasBeenSet = false;
180
181 Aws::String m_endpointGroupRegion;
182 bool m_endpointGroupRegionHasBeenSet = false;
183
184 Aws::Vector<EndpointDescription> m_endpointDescriptions;
185 bool m_endpointDescriptionsHasBeenSet = false;
186
187 double m_trafficDialPercentage{0.0};
188 bool m_trafficDialPercentageHasBeenSet = false;
189
190 int m_healthCheckPort{0};
191 bool m_healthCheckPortHasBeenSet = false;
192
194 bool m_healthCheckProtocolHasBeenSet = false;
195
196 Aws::String m_healthCheckPath;
197 bool m_healthCheckPathHasBeenSet = false;
198
199 int m_healthCheckIntervalSeconds{0};
200 bool m_healthCheckIntervalSecondsHasBeenSet = false;
201
202 int m_thresholdCount{0};
203 bool m_thresholdCountHasBeenSet = false;
204
205 Aws::Vector<PortOverride> m_portOverrides;
206 bool m_portOverridesHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace GlobalAccelerator
211} // 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