AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CreateEndpointGroupRequest.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#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace GlobalAccelerator
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_GLOBALACCELERATOR_API CreateEndpointGroupRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateEndpointGroup"; }
36
37 AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override;
38
39 AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
46 inline const Aws::String& GetListenerArn() const { return m_listenerArn; }
47 inline bool ListenerArnHasBeenSet() const { return m_listenerArnHasBeenSet; }
48 template<typename ListenerArnT = Aws::String>
49 void SetListenerArn(ListenerArnT&& value) { m_listenerArnHasBeenSet = true; m_listenerArn = std::forward<ListenerArnT>(value); }
50 template<typename ListenerArnT = Aws::String>
51 CreateEndpointGroupRequest& WithListenerArn(ListenerArnT&& value) { SetListenerArn(std::forward<ListenerArnT>(value)); return *this;}
53
55
59 inline const Aws::String& GetEndpointGroupRegion() const { return m_endpointGroupRegion; }
60 inline bool EndpointGroupRegionHasBeenSet() const { return m_endpointGroupRegionHasBeenSet; }
61 template<typename EndpointGroupRegionT = Aws::String>
62 void SetEndpointGroupRegion(EndpointGroupRegionT&& value) { m_endpointGroupRegionHasBeenSet = true; m_endpointGroupRegion = std::forward<EndpointGroupRegionT>(value); }
63 template<typename EndpointGroupRegionT = Aws::String>
64 CreateEndpointGroupRequest& WithEndpointGroupRegion(EndpointGroupRegionT&& value) { SetEndpointGroupRegion(std::forward<EndpointGroupRegionT>(value)); return *this;}
66
68
71 inline const Aws::Vector<EndpointConfiguration>& GetEndpointConfigurations() const { return m_endpointConfigurations; }
72 inline bool EndpointConfigurationsHasBeenSet() const { return m_endpointConfigurationsHasBeenSet; }
73 template<typename EndpointConfigurationsT = Aws::Vector<EndpointConfiguration>>
74 void SetEndpointConfigurations(EndpointConfigurationsT&& value) { m_endpointConfigurationsHasBeenSet = true; m_endpointConfigurations = std::forward<EndpointConfigurationsT>(value); }
75 template<typename EndpointConfigurationsT = Aws::Vector<EndpointConfiguration>>
76 CreateEndpointGroupRequest& WithEndpointConfigurations(EndpointConfigurationsT&& value) { SetEndpointConfigurations(std::forward<EndpointConfigurationsT>(value)); return *this;}
77 template<typename EndpointConfigurationsT = EndpointConfiguration>
78 CreateEndpointGroupRequest& AddEndpointConfigurations(EndpointConfigurationsT&& value) { m_endpointConfigurationsHasBeenSet = true; m_endpointConfigurations.emplace_back(std::forward<EndpointConfigurationsT>(value)); return *this; }
80
82
90 inline double GetTrafficDialPercentage() const { return m_trafficDialPercentage; }
91 inline bool TrafficDialPercentageHasBeenSet() const { return m_trafficDialPercentageHasBeenSet; }
92 inline void SetTrafficDialPercentage(double value) { m_trafficDialPercentageHasBeenSet = true; m_trafficDialPercentage = value; }
95
97
103 inline int GetHealthCheckPort() const { return m_healthCheckPort; }
104 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
105 inline void SetHealthCheckPort(int value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
106 inline CreateEndpointGroupRequest& WithHealthCheckPort(int value) { SetHealthCheckPort(value); return *this;}
108
110
114 inline HealthCheckProtocol GetHealthCheckProtocol() const { return m_healthCheckProtocol; }
115 inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
116 inline void SetHealthCheckProtocol(HealthCheckProtocol value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = value; }
119
121
125 inline const Aws::String& GetHealthCheckPath() const { return m_healthCheckPath; }
126 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
127 template<typename HealthCheckPathT = Aws::String>
128 void SetHealthCheckPath(HealthCheckPathT&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = std::forward<HealthCheckPathT>(value); }
129 template<typename HealthCheckPathT = Aws::String>
130 CreateEndpointGroupRequest& WithHealthCheckPath(HealthCheckPathT&& value) { SetHealthCheckPath(std::forward<HealthCheckPathT>(value)); return *this;}
132
134
138 inline int GetHealthCheckIntervalSeconds() const { return m_healthCheckIntervalSeconds; }
139 inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
140 inline void SetHealthCheckIntervalSeconds(int value) { m_healthCheckIntervalSecondsHasBeenSet = true; m_healthCheckIntervalSeconds = value; }
143
145
150 inline int GetThresholdCount() const { return m_thresholdCount; }
151 inline bool ThresholdCountHasBeenSet() const { return m_thresholdCountHasBeenSet; }
152 inline void SetThresholdCount(int value) { m_thresholdCountHasBeenSet = true; m_thresholdCount = value; }
153 inline CreateEndpointGroupRequest& WithThresholdCount(int value) { SetThresholdCount(value); return *this;}
155
157
161 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
162 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
163 template<typename IdempotencyTokenT = Aws::String>
164 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
165 template<typename IdempotencyTokenT = Aws::String>
166 CreateEndpointGroupRequest& WithIdempotencyToken(IdempotencyTokenT&& value) { SetIdempotencyToken(std::forward<IdempotencyTokenT>(value)); return *this;}
168
170
180 inline const Aws::Vector<PortOverride>& GetPortOverrides() const { return m_portOverrides; }
181 inline bool PortOverridesHasBeenSet() const { return m_portOverridesHasBeenSet; }
182 template<typename PortOverridesT = Aws::Vector<PortOverride>>
183 void SetPortOverrides(PortOverridesT&& value) { m_portOverridesHasBeenSet = true; m_portOverrides = std::forward<PortOverridesT>(value); }
184 template<typename PortOverridesT = Aws::Vector<PortOverride>>
185 CreateEndpointGroupRequest& WithPortOverrides(PortOverridesT&& value) { SetPortOverrides(std::forward<PortOverridesT>(value)); return *this;}
186 template<typename PortOverridesT = PortOverride>
187 CreateEndpointGroupRequest& AddPortOverrides(PortOverridesT&& value) { m_portOverridesHasBeenSet = true; m_portOverrides.emplace_back(std::forward<PortOverridesT>(value)); return *this; }
189 private:
190
191 Aws::String m_listenerArn;
192 bool m_listenerArnHasBeenSet = false;
193
194 Aws::String m_endpointGroupRegion;
195 bool m_endpointGroupRegionHasBeenSet = false;
196
197 Aws::Vector<EndpointConfiguration> m_endpointConfigurations;
198 bool m_endpointConfigurationsHasBeenSet = false;
199
200 double m_trafficDialPercentage{0.0};
201 bool m_trafficDialPercentageHasBeenSet = false;
202
203 int m_healthCheckPort{0};
204 bool m_healthCheckPortHasBeenSet = false;
205
207 bool m_healthCheckProtocolHasBeenSet = false;
208
209 Aws::String m_healthCheckPath;
210 bool m_healthCheckPathHasBeenSet = false;
211
212 int m_healthCheckIntervalSeconds{0};
213 bool m_healthCheckIntervalSecondsHasBeenSet = false;
214
215 int m_thresholdCount{0};
216 bool m_thresholdCountHasBeenSet = false;
217
219 bool m_idempotencyTokenHasBeenSet = true;
220
221 Aws::Vector<PortOverride> m_portOverrides;
222 bool m_portOverridesHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace GlobalAccelerator
227} // 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