AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename HealthCheckT = HealthCheckConfig>
57 void SetHealthCheck(HealthCheckT&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::forward<HealthCheckT>(value); }
58 template<typename HealthCheckT = HealthCheckConfig>
59 TargetGroupConfig& WithHealthCheck(HealthCheckT&& value) { SetHealthCheck(std::forward<HealthCheckT>(value)); return *this;}
61
63
67 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
68 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
69 inline void SetIpAddressType(IpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
70 inline TargetGroupConfig& WithIpAddressType(IpAddressType value) { SetIpAddressType(value); return *this;}
72
74
79 inline LambdaEventStructureVersion GetLambdaEventStructureVersion() const { return m_lambdaEventStructureVersion; }
80 inline bool LambdaEventStructureVersionHasBeenSet() const { return m_lambdaEventStructureVersionHasBeenSet; }
81 inline void SetLambdaEventStructureVersion(LambdaEventStructureVersion value) { m_lambdaEventStructureVersionHasBeenSet = true; m_lambdaEventStructureVersion = value; }
84
86
91 inline int GetPort() const { return m_port; }
92 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
93 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
94 inline TargetGroupConfig& WithPort(int value) { SetPort(value); return *this;}
96
98
103 inline TargetGroupProtocol GetProtocol() const { return m_protocol; }
104 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
105 inline void SetProtocol(TargetGroupProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
106 inline TargetGroupConfig& WithProtocol(TargetGroupProtocol value) { SetProtocol(value); return *this;}
108
110
114 inline TargetGroupProtocolVersion GetProtocolVersion() const { return m_protocolVersion; }
115 inline bool ProtocolVersionHasBeenSet() const { return m_protocolVersionHasBeenSet; }
116 inline void SetProtocolVersion(TargetGroupProtocolVersion value) { m_protocolVersionHasBeenSet = true; m_protocolVersion = value; }
119
121
125 inline const Aws::String& GetVpcIdentifier() const { return m_vpcIdentifier; }
126 inline bool VpcIdentifierHasBeenSet() const { return m_vpcIdentifierHasBeenSet; }
127 template<typename VpcIdentifierT = Aws::String>
128 void SetVpcIdentifier(VpcIdentifierT&& value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier = std::forward<VpcIdentifierT>(value); }
129 template<typename VpcIdentifierT = Aws::String>
130 TargetGroupConfig& WithVpcIdentifier(VpcIdentifierT&& value) { SetVpcIdentifier(std::forward<VpcIdentifierT>(value)); return *this;}
132 private:
133
134 HealthCheckConfig m_healthCheck;
135 bool m_healthCheckHasBeenSet = false;
136
137 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
138 bool m_ipAddressTypeHasBeenSet = false;
139
141 bool m_lambdaEventStructureVersionHasBeenSet = false;
142
143 int m_port{0};
144 bool m_portHasBeenSet = false;
145
147 bool m_protocolHasBeenSet = false;
148
150 bool m_protocolVersionHasBeenSet = false;
151
152 Aws::String m_vpcIdentifier;
153 bool m_vpcIdentifierHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace VPCLattice
158} // namespace Aws
TargetGroupConfig & WithPort(int value)
TargetGroupConfig & WithProtocolVersion(TargetGroupProtocolVersion value)
TargetGroupConfig & WithVpcIdentifier(VpcIdentifierT &&value)
const Aws::String & GetVpcIdentifier() const
AWS_VPCLATTICE_API TargetGroupConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
TargetGroupConfig & WithLambdaEventStructureVersion(LambdaEventStructureVersion value)
void SetProtocol(TargetGroupProtocol value)
AWS_VPCLATTICE_API TargetGroupConfig()=default
void SetVpcIdentifier(VpcIdentifierT &&value)
const HealthCheckConfig & GetHealthCheck() const
TargetGroupProtocolVersion GetProtocolVersion() const
LambdaEventStructureVersion GetLambdaEventStructureVersion() const
AWS_VPCLATTICE_API TargetGroupConfig(Aws::Utils::Json::JsonView jsonValue)
TargetGroupConfig & WithIpAddressType(IpAddressType value)
TargetGroupConfig & WithProtocol(TargetGroupProtocol value)
TargetGroupConfig & WithHealthCheck(HealthCheckT &&value)
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLambdaEventStructureVersion(LambdaEventStructureVersion value)
void SetProtocolVersion(TargetGroupProtocolVersion value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue