AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetGroupConfig.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/model/HealthCheckConfig.h>
9#include <aws/vpc-lattice/model/IpAddressType.h>
10#include <aws/vpc-lattice/model/LambdaEventStructureVersion.h>
11#include <aws/vpc-lattice/model/TargetGroupProtocol.h>
12#include <aws/vpc-lattice/model/TargetGroupProtocolVersion.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace VPCLattice
27{
28namespace Model
29{
30
41 {
42 public:
43 AWS_VPCLATTICE_API TargetGroupConfig();
44 AWS_VPCLATTICE_API TargetGroupConfig(Aws::Utils::Json::JsonView jsonValue);
46 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
54 inline const HealthCheckConfig& GetHealthCheck() const{ return m_healthCheck; }
55 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
56 inline void SetHealthCheck(const HealthCheckConfig& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; }
57 inline void SetHealthCheck(HealthCheckConfig&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); }
58 inline TargetGroupConfig& WithHealthCheck(const HealthCheckConfig& value) { SetHealthCheck(value); return *this;}
59 inline TargetGroupConfig& WithHealthCheck(HealthCheckConfig&& value) { SetHealthCheck(std::move(value)); return *this;}
61
63
67 inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; }
68 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
69 inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
70 inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
71 inline TargetGroupConfig& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;}
72 inline TargetGroupConfig& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;}
74
76
81 inline const LambdaEventStructureVersion& GetLambdaEventStructureVersion() const{ return m_lambdaEventStructureVersion; }
82 inline bool LambdaEventStructureVersionHasBeenSet() const { return m_lambdaEventStructureVersionHasBeenSet; }
83 inline void SetLambdaEventStructureVersion(const LambdaEventStructureVersion& value) { m_lambdaEventStructureVersionHasBeenSet = true; m_lambdaEventStructureVersion = value; }
84 inline void SetLambdaEventStructureVersion(LambdaEventStructureVersion&& value) { m_lambdaEventStructureVersionHasBeenSet = true; m_lambdaEventStructureVersion = std::move(value); }
88
90
95 inline int GetPort() const{ return m_port; }
96 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
97 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
98 inline TargetGroupConfig& WithPort(int value) { SetPort(value); return *this;}
100
102
107 inline const TargetGroupProtocol& GetProtocol() const{ return m_protocol; }
108 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
109 inline void SetProtocol(const TargetGroupProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
110 inline void SetProtocol(TargetGroupProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
111 inline TargetGroupConfig& WithProtocol(const TargetGroupProtocol& value) { SetProtocol(value); return *this;}
112 inline TargetGroupConfig& WithProtocol(TargetGroupProtocol&& value) { SetProtocol(std::move(value)); return *this;}
114
116
120 inline const TargetGroupProtocolVersion& GetProtocolVersion() const{ return m_protocolVersion; }
121 inline bool ProtocolVersionHasBeenSet() const { return m_protocolVersionHasBeenSet; }
122 inline void SetProtocolVersion(const TargetGroupProtocolVersion& value) { m_protocolVersionHasBeenSet = true; m_protocolVersion = value; }
123 inline void SetProtocolVersion(TargetGroupProtocolVersion&& value) { m_protocolVersionHasBeenSet = true; m_protocolVersion = std::move(value); }
125 inline TargetGroupConfig& WithProtocolVersion(TargetGroupProtocolVersion&& value) { SetProtocolVersion(std::move(value)); return *this;}
127
129
133 inline const Aws::String& GetVpcIdentifier() const{ return m_vpcIdentifier; }
134 inline bool VpcIdentifierHasBeenSet() const { return m_vpcIdentifierHasBeenSet; }
135 inline void SetVpcIdentifier(const Aws::String& value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier = value; }
136 inline void SetVpcIdentifier(Aws::String&& value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier = std::move(value); }
137 inline void SetVpcIdentifier(const char* value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier.assign(value); }
138 inline TargetGroupConfig& WithVpcIdentifier(const Aws::String& value) { SetVpcIdentifier(value); return *this;}
139 inline TargetGroupConfig& WithVpcIdentifier(Aws::String&& value) { SetVpcIdentifier(std::move(value)); return *this;}
140 inline TargetGroupConfig& WithVpcIdentifier(const char* value) { SetVpcIdentifier(value); return *this;}
142 private:
143
144 HealthCheckConfig m_healthCheck;
145 bool m_healthCheckHasBeenSet = false;
146
147 IpAddressType m_ipAddressType;
148 bool m_ipAddressTypeHasBeenSet = false;
149
150 LambdaEventStructureVersion m_lambdaEventStructureVersion;
151 bool m_lambdaEventStructureVersionHasBeenSet = false;
152
153 int m_port;
154 bool m_portHasBeenSet = false;
155
156 TargetGroupProtocol m_protocol;
157 bool m_protocolHasBeenSet = false;
158
159 TargetGroupProtocolVersion m_protocolVersion;
160 bool m_protocolVersionHasBeenSet = false;
161
162 Aws::String m_vpcIdentifier;
163 bool m_vpcIdentifierHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace VPCLattice
168} // namespace Aws
TargetGroupConfig & WithPort(int value)
const LambdaEventStructureVersion & GetLambdaEventStructureVersion() const
TargetGroupConfig & WithVpcIdentifier(const Aws::String &value)
TargetGroupConfig & WithProtocol(TargetGroupProtocol &&value)
void SetVpcIdentifier(const Aws::String &value)
void SetProtocol(const TargetGroupProtocol &value)
const Aws::String & GetVpcIdentifier() const
TargetGroupConfig & WithVpcIdentifier(const char *value)
AWS_VPCLATTICE_API TargetGroupConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLambdaEventStructureVersion(const LambdaEventStructureVersion &value)
void SetIpAddressType(IpAddressType &&value)
void SetProtocolVersion(TargetGroupProtocolVersion &&value)
void SetProtocolVersion(const TargetGroupProtocolVersion &value)
void SetHealthCheck(HealthCheckConfig &&value)
const IpAddressType & GetIpAddressType() const
TargetGroupConfig & WithProtocol(const TargetGroupProtocol &value)
void SetProtocol(TargetGroupProtocol &&value)
TargetGroupConfig & WithVpcIdentifier(Aws::String &&value)
const HealthCheckConfig & GetHealthCheck() const
TargetGroupConfig & WithLambdaEventStructureVersion(LambdaEventStructureVersion &&value)
TargetGroupConfig & WithProtocolVersion(TargetGroupProtocolVersion &&value)
TargetGroupConfig & WithHealthCheck(HealthCheckConfig &&value)
TargetGroupConfig & WithLambdaEventStructureVersion(const LambdaEventStructureVersion &value)
AWS_VPCLATTICE_API TargetGroupConfig(Aws::Utils::Json::JsonView jsonValue)
const TargetGroupProtocolVersion & GetProtocolVersion() const
TargetGroupConfig & WithHealthCheck(const HealthCheckConfig &value)
TargetGroupConfig & WithIpAddressType(IpAddressType &&value)
void SetIpAddressType(const IpAddressType &value)
TargetGroupConfig & WithProtocolVersion(const TargetGroupProtocolVersion &value)
void SetHealthCheck(const HealthCheckConfig &value)
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
const TargetGroupProtocol & GetProtocol() const
void SetLambdaEventStructureVersion(LambdaEventStructureVersion &&value)
TargetGroupConfig & WithIpAddressType(const IpAddressType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue