AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTargetGroupRequest.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticloadbalancingv2/model/ProtocolEnum.h>
11#include <aws/elasticloadbalancingv2/model/Matcher.h>
12#include <aws/elasticloadbalancingv2/model/TargetTypeEnum.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/elasticloadbalancingv2/model/TargetGroupIpAddressTypeEnum.h>
15#include <aws/elasticloadbalancingv2/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace ElasticLoadBalancingv2
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_ELASTICLOADBALANCINGV2_API CreateTargetGroupRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateTargetGroup"; }
37
38 AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline CreateTargetGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline CreateTargetGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline CreateTargetGroupRequest& WithName(const char* value) { SetName(value); return *this;}
60
62
70 inline const ProtocolEnum& GetProtocol() const{ return m_protocol; }
71 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
72 inline void SetProtocol(const ProtocolEnum& value) { m_protocolHasBeenSet = true; m_protocol = value; }
73 inline void SetProtocol(ProtocolEnum&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
74 inline CreateTargetGroupRequest& WithProtocol(const ProtocolEnum& value) { SetProtocol(value); return *this;}
75 inline CreateTargetGroupRequest& WithProtocol(ProtocolEnum&& value) { SetProtocol(std::move(value)); return *this;}
77
79
85 inline const Aws::String& GetProtocolVersion() const{ return m_protocolVersion; }
86 inline bool ProtocolVersionHasBeenSet() const { return m_protocolVersionHasBeenSet; }
87 inline void SetProtocolVersion(const Aws::String& value) { m_protocolVersionHasBeenSet = true; m_protocolVersion = value; }
88 inline void SetProtocolVersion(Aws::String&& value) { m_protocolVersionHasBeenSet = true; m_protocolVersion = std::move(value); }
89 inline void SetProtocolVersion(const char* value) { m_protocolVersionHasBeenSet = true; m_protocolVersion.assign(value); }
90 inline CreateTargetGroupRequest& WithProtocolVersion(const Aws::String& value) { SetProtocolVersion(value); return *this;}
91 inline CreateTargetGroupRequest& WithProtocolVersion(Aws::String&& value) { SetProtocolVersion(std::move(value)); return *this;}
92 inline CreateTargetGroupRequest& WithProtocolVersion(const char* value) { SetProtocolVersion(value); return *this;}
94
96
102 inline int GetPort() const{ return m_port; }
103 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
104 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
105 inline CreateTargetGroupRequest& WithPort(int value) { SetPort(value); return *this;}
107
109
114 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
115 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
116 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
117 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
118 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
119 inline CreateTargetGroupRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
120 inline CreateTargetGroupRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
121 inline CreateTargetGroupRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
123
125
133 inline const ProtocolEnum& GetHealthCheckProtocol() const{ return m_healthCheckProtocol; }
134 inline bool HealthCheckProtocolHasBeenSet() const { return m_healthCheckProtocolHasBeenSet; }
135 inline void SetHealthCheckProtocol(const ProtocolEnum& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = value; }
136 inline void SetHealthCheckProtocol(ProtocolEnum&& value) { m_healthCheckProtocolHasBeenSet = true; m_healthCheckProtocol = std::move(value); }
138 inline CreateTargetGroupRequest& WithHealthCheckProtocol(ProtocolEnum&& value) { SetHealthCheckProtocol(std::move(value)); return *this;}
140
142
149 inline const Aws::String& GetHealthCheckPort() const{ return m_healthCheckPort; }
150 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
151 inline void SetHealthCheckPort(const Aws::String& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
152 inline void SetHealthCheckPort(Aws::String&& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = std::move(value); }
153 inline void SetHealthCheckPort(const char* value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort.assign(value); }
154 inline CreateTargetGroupRequest& WithHealthCheckPort(const Aws::String& value) { SetHealthCheckPort(value); return *this;}
155 inline CreateTargetGroupRequest& WithHealthCheckPort(Aws::String&& value) { SetHealthCheckPort(std::move(value)); return *this;}
156 inline CreateTargetGroupRequest& WithHealthCheckPort(const char* value) { SetHealthCheckPort(value); return *this;}
158
160
166 inline bool GetHealthCheckEnabled() const{ return m_healthCheckEnabled; }
167 inline bool HealthCheckEnabledHasBeenSet() const { return m_healthCheckEnabledHasBeenSet; }
168 inline void SetHealthCheckEnabled(bool value) { m_healthCheckEnabledHasBeenSet = true; m_healthCheckEnabled = value; }
169 inline CreateTargetGroupRequest& WithHealthCheckEnabled(bool value) { SetHealthCheckEnabled(value); return *this;}
171
173
180 inline const Aws::String& GetHealthCheckPath() const{ return m_healthCheckPath; }
181 inline bool HealthCheckPathHasBeenSet() const { return m_healthCheckPathHasBeenSet; }
182 inline void SetHealthCheckPath(const Aws::String& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = value; }
183 inline void SetHealthCheckPath(Aws::String&& value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath = std::move(value); }
184 inline void SetHealthCheckPath(const char* value) { m_healthCheckPathHasBeenSet = true; m_healthCheckPath.assign(value); }
185 inline CreateTargetGroupRequest& WithHealthCheckPath(const Aws::String& value) { SetHealthCheckPath(value); return *this;}
186 inline CreateTargetGroupRequest& WithHealthCheckPath(Aws::String&& value) { SetHealthCheckPath(std::move(value)); return *this;}
187 inline CreateTargetGroupRequest& WithHealthCheckPath(const char* value) { SetHealthCheckPath(value); return *this;}
189
191
198 inline int GetHealthCheckIntervalSeconds() const{ return m_healthCheckIntervalSeconds; }
199 inline bool HealthCheckIntervalSecondsHasBeenSet() const { return m_healthCheckIntervalSecondsHasBeenSet; }
200 inline void SetHealthCheckIntervalSeconds(int value) { m_healthCheckIntervalSecondsHasBeenSet = true; m_healthCheckIntervalSeconds = value; }
203
205
213 inline int GetHealthCheckTimeoutSeconds() const{ return m_healthCheckTimeoutSeconds; }
214 inline bool HealthCheckTimeoutSecondsHasBeenSet() const { return m_healthCheckTimeoutSecondsHasBeenSet; }
215 inline void SetHealthCheckTimeoutSeconds(int value) { m_healthCheckTimeoutSecondsHasBeenSet = true; m_healthCheckTimeoutSeconds = value; }
218
220
227 inline int GetHealthyThresholdCount() const{ return m_healthyThresholdCount; }
228 inline bool HealthyThresholdCountHasBeenSet() const { return m_healthyThresholdCountHasBeenSet; }
229 inline void SetHealthyThresholdCount(int value) { m_healthyThresholdCountHasBeenSet = true; m_healthyThresholdCount = value; }
232
234
241 inline int GetUnhealthyThresholdCount() const{ return m_unhealthyThresholdCount; }
242 inline bool UnhealthyThresholdCountHasBeenSet() const { return m_unhealthyThresholdCountHasBeenSet; }
243 inline void SetUnhealthyThresholdCount(int value) { m_unhealthyThresholdCountHasBeenSet = true; m_unhealthyThresholdCount = value; }
246
248
255 inline const Matcher& GetMatcher() const{ return m_matcher; }
256 inline bool MatcherHasBeenSet() const { return m_matcherHasBeenSet; }
257 inline void SetMatcher(const Matcher& value) { m_matcherHasBeenSet = true; m_matcher = value; }
258 inline void SetMatcher(Matcher&& value) { m_matcherHasBeenSet = true; m_matcher = std::move(value); }
259 inline CreateTargetGroupRequest& WithMatcher(const Matcher& value) { SetMatcher(value); return *this;}
260 inline CreateTargetGroupRequest& WithMatcher(Matcher&& value) { SetMatcher(std::move(value)); return *this;}
262
264
277 inline const TargetTypeEnum& GetTargetType() const{ return m_targetType; }
278 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
279 inline void SetTargetType(const TargetTypeEnum& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
280 inline void SetTargetType(TargetTypeEnum&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
281 inline CreateTargetGroupRequest& WithTargetType(const TargetTypeEnum& value) { SetTargetType(value); return *this;}
282 inline CreateTargetGroupRequest& WithTargetType(TargetTypeEnum&& value) { SetTargetType(std::move(value)); return *this;}
284
286
289 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
290 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
291 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
292 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
293 inline CreateTargetGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
294 inline CreateTargetGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
295 inline CreateTargetGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
296 inline CreateTargetGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
298
300
303 inline const TargetGroupIpAddressTypeEnum& GetIpAddressType() const{ return m_ipAddressType; }
304 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
305 inline void SetIpAddressType(const TargetGroupIpAddressTypeEnum& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
306 inline void SetIpAddressType(TargetGroupIpAddressTypeEnum&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
310 private:
311
312 Aws::String m_name;
313 bool m_nameHasBeenSet = false;
314
315 ProtocolEnum m_protocol;
316 bool m_protocolHasBeenSet = false;
317
318 Aws::String m_protocolVersion;
319 bool m_protocolVersionHasBeenSet = false;
320
321 int m_port;
322 bool m_portHasBeenSet = false;
323
324 Aws::String m_vpcId;
325 bool m_vpcIdHasBeenSet = false;
326
327 ProtocolEnum m_healthCheckProtocol;
328 bool m_healthCheckProtocolHasBeenSet = false;
329
330 Aws::String m_healthCheckPort;
331 bool m_healthCheckPortHasBeenSet = false;
332
333 bool m_healthCheckEnabled;
334 bool m_healthCheckEnabledHasBeenSet = false;
335
336 Aws::String m_healthCheckPath;
337 bool m_healthCheckPathHasBeenSet = false;
338
339 int m_healthCheckIntervalSeconds;
340 bool m_healthCheckIntervalSecondsHasBeenSet = false;
341
342 int m_healthCheckTimeoutSeconds;
343 bool m_healthCheckTimeoutSecondsHasBeenSet = false;
344
345 int m_healthyThresholdCount;
346 bool m_healthyThresholdCountHasBeenSet = false;
347
348 int m_unhealthyThresholdCount;
349 bool m_unhealthyThresholdCountHasBeenSet = false;
350
351 Matcher m_matcher;
352 bool m_matcherHasBeenSet = false;
353
354 TargetTypeEnum m_targetType;
355 bool m_targetTypeHasBeenSet = false;
356
357 Aws::Vector<Tag> m_tags;
358 bool m_tagsHasBeenSet = false;
359
360 TargetGroupIpAddressTypeEnum m_ipAddressType;
361 bool m_ipAddressTypeHasBeenSet = false;
362 };
363
364} // namespace Model
365} // namespace ElasticLoadBalancingv2
366} // namespace Aws
CreateTargetGroupRequest & WithProtocolVersion(const Aws::String &value)
CreateTargetGroupRequest & WithVpcId(Aws::String &&value)
CreateTargetGroupRequest & WithHealthCheckPath(const char *value)
AWS_ELASTICLOADBALANCINGV2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateTargetGroupRequest & WithTags(Aws::Vector< Tag > &&value)
const TargetGroupIpAddressTypeEnum & GetIpAddressType() const
AWS_ELASTICLOADBALANCINGV2_API Aws::String SerializePayload() const override
CreateTargetGroupRequest & WithVpcId(const Aws::String &value)
CreateTargetGroupRequest & WithHealthCheckProtocol(const ProtocolEnum &value)
CreateTargetGroupRequest & WithHealthCheckPort(const Aws::String &value)
CreateTargetGroupRequest & WithName(Aws::String &&value)
CreateTargetGroupRequest & WithHealthCheckPath(const Aws::String &value)
CreateTargetGroupRequest & WithIpAddressType(const TargetGroupIpAddressTypeEnum &value)
CreateTargetGroupRequest & WithHealthCheckPath(Aws::String &&value)
CreateTargetGroupRequest & WithProtocolVersion(const char *value)
CreateTargetGroupRequest & WithIpAddressType(TargetGroupIpAddressTypeEnum &&value)
CreateTargetGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateTargetGroupRequest & WithProtocol(ProtocolEnum &&value)
CreateTargetGroupRequest & WithTargetType(TargetTypeEnum &&value)
CreateTargetGroupRequest & WithMatcher(const Matcher &value)
void SetIpAddressType(const TargetGroupIpAddressTypeEnum &value)
CreateTargetGroupRequest & WithName(const Aws::String &value)
CreateTargetGroupRequest & WithHealthCheckProtocol(ProtocolEnum &&value)
CreateTargetGroupRequest & WithTargetType(const TargetTypeEnum &value)
CreateTargetGroupRequest & WithHealthCheckPort(Aws::String &&value)
CreateTargetGroupRequest & WithHealthCheckPort(const char *value)
CreateTargetGroupRequest & WithProtocol(const ProtocolEnum &value)
CreateTargetGroupRequest & WithProtocolVersion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector