AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
UpdateEndpointGroupRequest.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/globalaccelerator/GlobalAcceleratorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/globalaccelerator/model/HealthCheckProtocol.h>
12#include <aws/globalaccelerator/model/EndpointConfiguration.h>
13#include <aws/globalaccelerator/model/PortOverride.h>
14#include <utility>
15
16namespace Aws
17{
18namespace GlobalAccelerator
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_GLOBALACCELERATOR_API UpdateEndpointGroupRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateEndpointGroup"; }
35
36 AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override;
37
38 AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetEndpointGroupArn() const { return m_endpointGroupArn; }
46 inline bool EndpointGroupArnHasBeenSet() const { return m_endpointGroupArnHasBeenSet; }
47 template<typename EndpointGroupArnT = Aws::String>
48 void SetEndpointGroupArn(EndpointGroupArnT&& value) { m_endpointGroupArnHasBeenSet = true; m_endpointGroupArn = std::forward<EndpointGroupArnT>(value); }
49 template<typename EndpointGroupArnT = Aws::String>
50 UpdateEndpointGroupRequest& WithEndpointGroupArn(EndpointGroupArnT&& value) { SetEndpointGroupArn(std::forward<EndpointGroupArnT>(value)); return *this;}
52
54
58 inline const Aws::Vector<EndpointConfiguration>& GetEndpointConfigurations() const { return m_endpointConfigurations; }
59 inline bool EndpointConfigurationsHasBeenSet() const { return m_endpointConfigurationsHasBeenSet; }
60 template<typename EndpointConfigurationsT = Aws::Vector<EndpointConfiguration>>
61 void SetEndpointConfigurations(EndpointConfigurationsT&& value) { m_endpointConfigurationsHasBeenSet = true; m_endpointConfigurations = std::forward<EndpointConfigurationsT>(value); }
62 template<typename EndpointConfigurationsT = Aws::Vector<EndpointConfiguration>>
63 UpdateEndpointGroupRequest& WithEndpointConfigurations(EndpointConfigurationsT&& value) { SetEndpointConfigurations(std::forward<EndpointConfigurationsT>(value)); return *this;}
64 template<typename EndpointConfigurationsT = EndpointConfiguration>
65 UpdateEndpointGroupRequest& AddEndpointConfigurations(EndpointConfigurationsT&& value) { m_endpointConfigurationsHasBeenSet = true; m_endpointConfigurations.emplace_back(std::forward<EndpointConfigurationsT>(value)); return *this; }
67
69
77 inline double GetTrafficDialPercentage() const { return m_trafficDialPercentage; }
78 inline bool TrafficDialPercentageHasBeenSet() const { return m_trafficDialPercentageHasBeenSet; }
79 inline void SetTrafficDialPercentage(double value) { m_trafficDialPercentageHasBeenSet = true; m_trafficDialPercentage = value; }
82
84
90 inline int GetHealthCheckPort() const { return m_healthCheckPort; }
91 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
92 inline void SetHealthCheckPort(int value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
93 inline UpdateEndpointGroupRequest& WithHealthCheckPort(int value) { SetHealthCheckPort(value); return *this;}
95
97
101 inline HealthCheckProtocol GetHealthCheckProtocol() const { return m_healthCheckProtocol; }
102 inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
103 inline void SetHealthCheckProtocol(HealthCheckProtocol value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = value; }
106
108
112 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
113 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
114 template<typename HealthCheckPathT = Aws::String>
115 void SetHealthCheckPath(HealthCheckPathT&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = std::forward<HealthCheckPathT>(value); }
116 template<typename HealthCheckPathT = Aws::String>
117 UpdateEndpointGroupRequest& WithHealthCheckPath(HealthCheckPathT&& value) { SetHealthCheckPath(std::forward<HealthCheckPathT>(value)); return *this;}
119
121
125 inline int GetHealthCheckIntervalSeconds() const { return m_healthCheckIntervalSeconds; }
126 inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
127 inline void SetHealthCheckIntervalSeconds(int value) { m_healthCheckIntervalSecondsHasBeenSet = true; m_healthCheckIntervalSeconds = value; }
130
132
137 inline int GetThresholdCount() const { return m_thresholdCount; }
138 inline bool ThresholdCountHasBeenSet() const { return m_thresholdCountHasBeenSet; }
139 inline void SetThresholdCount(int value) { m_thresholdCountHasBeenSet = true; m_thresholdCount = value; }
140 inline UpdateEndpointGroupRequest& WithThresholdCount(int value) { SetThresholdCount(value); return *this;}
142
144
154 inline const Aws::Vector<PortOverride>& GetPortOverrides() const { return m_portOverrides; }
155 inline bool PortOverridesHasBeenSet() const { return m_portOverridesHasBeenSet; }
156 template<typename PortOverridesT = Aws::Vector<PortOverride>>
157 void SetPortOverrides(PortOverridesT&& value) { m_portOverridesHasBeenSet = true; m_portOverrides = std::forward<PortOverridesT>(value); }
158 template<typename PortOverridesT = Aws::Vector<PortOverride>>
159 UpdateEndpointGroupRequest& WithPortOverrides(PortOverridesT&& value) { SetPortOverrides(std::forward<PortOverridesT>(value)); return *this;}
160 template<typename PortOverridesT = PortOverride>
161 UpdateEndpointGroupRequest& AddPortOverrides(PortOverridesT&& value) { m_portOverridesHasBeenSet = true; m_portOverrides.emplace_back(std::forward<PortOverridesT>(value)); return *this; }
163 private:
164
165 Aws::String m_endpointGroupArn;
166 bool m_endpointGroupArnHasBeenSet = false;
167
168 Aws::Vector<EndpointConfiguration> m_endpointConfigurations;
169 bool m_endpointConfigurationsHasBeenSet = false;
170
171 double m_trafficDialPercentage{0.0};
172 bool m_trafficDialPercentageHasBeenSet = false;
173
174 int m_healthCheckPort{0};
175 bool m_healthCheckPortHasBeenSet = false;
176
178 bool m_healthCheckProtocolHasBeenSet = false;
179
180 Aws::String m_healthCheckPath;
181 bool m_healthCheckPathHasBeenSet = false;
182
183 int m_healthCheckIntervalSeconds{0};
184 bool m_healthCheckIntervalSecondsHasBeenSet = false;
185
186 int m_thresholdCount{0};
187 bool m_thresholdCountHasBeenSet = false;
188
189 Aws::Vector<PortOverride> m_portOverrides;
190 bool m_portOverridesHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace GlobalAccelerator
195} // 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