AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
UpdateEndpointGroupRequest.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/GlobalAcceleratorRequest.h>
10#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
11#include <aws/globalaccelerator/model/EndpointConfiguration.h>
12#include <aws/globalaccelerator/model/HealthCheckProtocol.h>
13#include <aws/globalaccelerator/model/PortOverride.h>
14
15#include <utility>
16
17namespace Aws {
18namespace GlobalAccelerator {
19namespace Model {
20
24 public:
25 AWS_GLOBALACCELERATOR_API UpdateEndpointGroupRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateEndpointGroup"; }
32
33 AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override;
34
35 AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetEndpointGroupArn() const { return m_endpointGroupArn; }
42 inline bool EndpointGroupArnHasBeenSet() const { return m_endpointGroupArnHasBeenSet; }
43 template <typename EndpointGroupArnT = Aws::String>
44 void SetEndpointGroupArn(EndpointGroupArnT&& value) {
45 m_endpointGroupArnHasBeenSet = true;
46 m_endpointGroupArn = std::forward<EndpointGroupArnT>(value);
47 }
48 template <typename EndpointGroupArnT = Aws::String>
50 SetEndpointGroupArn(std::forward<EndpointGroupArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<EndpointConfiguration>& GetEndpointConfigurations() const { return m_endpointConfigurations; }
61 inline bool EndpointConfigurationsHasBeenSet() const { return m_endpointConfigurationsHasBeenSet; }
62 template <typename EndpointConfigurationsT = Aws::Vector<EndpointConfiguration>>
63 void SetEndpointConfigurations(EndpointConfigurationsT&& value) {
64 m_endpointConfigurationsHasBeenSet = true;
65 m_endpointConfigurations = std::forward<EndpointConfigurationsT>(value);
66 }
67 template <typename EndpointConfigurationsT = Aws::Vector<EndpointConfiguration>>
68 UpdateEndpointGroupRequest& WithEndpointConfigurations(EndpointConfigurationsT&& value) {
69 SetEndpointConfigurations(std::forward<EndpointConfigurationsT>(value));
70 return *this;
71 }
72 template <typename EndpointConfigurationsT = EndpointConfiguration>
73 UpdateEndpointGroupRequest& AddEndpointConfigurations(EndpointConfigurationsT&& value) {
74 m_endpointConfigurationsHasBeenSet = true;
75 m_endpointConfigurations.emplace_back(std::forward<EndpointConfigurationsT>(value));
76 return *this;
77 }
79
81
89 inline double GetTrafficDialPercentage() const { return m_trafficDialPercentage; }
90 inline bool TrafficDialPercentageHasBeenSet() const { return m_trafficDialPercentageHasBeenSet; }
91 inline void SetTrafficDialPercentage(double value) {
92 m_trafficDialPercentageHasBeenSet = true;
93 m_trafficDialPercentage = value;
94 }
97 return *this;
98 }
100
102
108 inline int GetHealthCheckPort() const { return m_healthCheckPort; }
109 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
110 inline void SetHealthCheckPort(int value) {
111 m_healthCheckPortHasBeenSet = true;
112 m_healthCheckPort = value;
113 }
115 SetHealthCheckPort(value);
116 return *this;
117 }
119
121
125 inline HealthCheckProtocol GetHealthCheckProtocol() const { return m_healthCheckProtocol; }
126 inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
128 m_healthCheckProtocolHasBeenSet = true;
129 m_healthCheckProtocol = value;
130 }
136
138
142 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
143 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
144 template <typename HealthCheckPathT = Aws::String>
145 void SetHealthCheckPath(HealthCheckPathT&& value) {
146 m_healthCheckPathHasBeenSet = true;
147 m_healthCheckPath = std::forward<HealthCheckPathT>(value);
148 }
149 template <typename HealthCheckPathT = Aws::String>
151 SetHealthCheckPath(std::forward<HealthCheckPathT>(value));
152 return *this;
153 }
155
157
161 inline int GetHealthCheckIntervalSeconds() const { return m_healthCheckIntervalSeconds; }
162 inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
163 inline void SetHealthCheckIntervalSeconds(int value) {
164 m_healthCheckIntervalSecondsHasBeenSet = true;
165 m_healthCheckIntervalSeconds = value;
166 }
169 return *this;
170 }
172
174
179 inline int GetThresholdCount() const { return m_thresholdCount; }
180 inline bool ThresholdCountHasBeenSet() const { return m_thresholdCountHasBeenSet; }
181 inline void SetThresholdCount(int value) {
182 m_thresholdCountHasBeenSet = true;
183 m_thresholdCount = value;
184 }
186 SetThresholdCount(value);
187 return *this;
188 }
190
192
202 inline const Aws::Vector<PortOverride>& GetPortOverrides() const { return m_portOverrides; }
203 inline bool PortOverridesHasBeenSet() const { return m_portOverridesHasBeenSet; }
204 template <typename PortOverridesT = Aws::Vector<PortOverride>>
205 void SetPortOverrides(PortOverridesT&& value) {
206 m_portOverridesHasBeenSet = true;
207 m_portOverrides = std::forward<PortOverridesT>(value);
208 }
209 template <typename PortOverridesT = Aws::Vector<PortOverride>>
211 SetPortOverrides(std::forward<PortOverridesT>(value));
212 return *this;
213 }
214 template <typename PortOverridesT = PortOverride>
216 m_portOverridesHasBeenSet = true;
217 m_portOverrides.emplace_back(std::forward<PortOverridesT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_endpointGroupArn;
223
224 Aws::Vector<EndpointConfiguration> m_endpointConfigurations;
225
226 double m_trafficDialPercentage{0.0};
227
228 int m_healthCheckPort{0};
229
231
232 Aws::String m_healthCheckPath;
233
234 int m_healthCheckIntervalSeconds{0};
235
236 int m_thresholdCount{0};
237
238 Aws::Vector<PortOverride> m_portOverrides;
239 bool m_endpointGroupArnHasBeenSet = false;
240 bool m_endpointConfigurationsHasBeenSet = false;
241 bool m_trafficDialPercentageHasBeenSet = false;
242 bool m_healthCheckPortHasBeenSet = false;
243 bool m_healthCheckProtocolHasBeenSet = false;
244 bool m_healthCheckPathHasBeenSet = false;
245 bool m_healthCheckIntervalSecondsHasBeenSet = false;
246 bool m_thresholdCountHasBeenSet = false;
247 bool m_portOverridesHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace GlobalAccelerator
252} // namespace Aws
AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateEndpointGroupRequest & WithHealthCheckIntervalSeconds(int value)
UpdateEndpointGroupRequest & WithHealthCheckProtocol(HealthCheckProtocol value)
UpdateEndpointGroupRequest & WithEndpointGroupArn(EndpointGroupArnT &&value)
UpdateEndpointGroupRequest & AddPortOverrides(PortOverridesT &&value)
UpdateEndpointGroupRequest & WithEndpointConfigurations(EndpointConfigurationsT &&value)
AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override
UpdateEndpointGroupRequest & WithHealthCheckPath(HealthCheckPathT &&value)
UpdateEndpointGroupRequest & AddEndpointConfigurations(EndpointConfigurationsT &&value)
AWS_GLOBALACCELERATOR_API UpdateEndpointGroupRequest()=default
UpdateEndpointGroupRequest & WithPortOverrides(PortOverridesT &&value)
const Aws::Vector< EndpointConfiguration > & GetEndpointConfigurations() const
UpdateEndpointGroupRequest & WithTrafficDialPercentage(double value)
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