AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TargetGroupSummary.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/vpc-lattice/model/IpAddressType.h>
11#include <aws/vpc-lattice/model/LambdaEventStructureVersion.h>
12#include <aws/vpc-lattice/model/TargetGroupProtocol.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/vpc-lattice/model/TargetGroupStatus.h>
15#include <aws/vpc-lattice/model/TargetGroupType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace VPCLattice
29{
30namespace Model
31{
32
42 {
43 public:
44 AWS_VPCLATTICE_API TargetGroupSummary() = default;
45 AWS_VPCLATTICE_API TargetGroupSummary(Aws::Utils::Json::JsonView jsonValue);
47 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetArn() const { return m_arn; }
55 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
56 template<typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
58 template<typename ArnT = Aws::String>
59 TargetGroupSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
61
63
66 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
67 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
68 template<typename CreatedAtT = Aws::Utils::DateTime>
69 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
70 template<typename CreatedAtT = Aws::Utils::DateTime>
71 TargetGroupSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
73
75
78 inline const Aws::String& GetId() const { return m_id; }
79 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
80 template<typename IdT = Aws::String>
81 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
82 template<typename IdT = Aws::String>
83 TargetGroupSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
85
87
92 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
93 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
94 inline void SetIpAddressType(IpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
97
99
103 inline LambdaEventStructureVersion GetLambdaEventStructureVersion() const { return m_lambdaEventStructureVersion; }
104 inline bool LambdaEventStructureVersionHasBeenSet() const { return m_lambdaEventStructureVersionHasBeenSet; }
105 inline void SetLambdaEventStructureVersion(LambdaEventStructureVersion value) { m_lambdaEventStructureVersionHasBeenSet = true; m_lambdaEventStructureVersion = value; }
108
110
114 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
115 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
116 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
117 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
118 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
119 TargetGroupSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
121
123
126 inline const Aws::String& GetName() const { return m_name; }
127 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
128 template<typename NameT = Aws::String>
129 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
130 template<typename NameT = Aws::String>
131 TargetGroupSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
133
135
138 inline int GetPort() const { return m_port; }
139 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
140 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
141 inline TargetGroupSummary& WithPort(int value) { SetPort(value); return *this;}
143
145
148 inline TargetGroupProtocol GetProtocol() const { return m_protocol; }
149 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
150 inline void SetProtocol(TargetGroupProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
151 inline TargetGroupSummary& WithProtocol(TargetGroupProtocol value) { SetProtocol(value); return *this;}
153
155
158 inline const Aws::Vector<Aws::String>& GetServiceArns() const { return m_serviceArns; }
159 inline bool ServiceArnsHasBeenSet() const { return m_serviceArnsHasBeenSet; }
160 template<typename ServiceArnsT = Aws::Vector<Aws::String>>
161 void SetServiceArns(ServiceArnsT&& value) { m_serviceArnsHasBeenSet = true; m_serviceArns = std::forward<ServiceArnsT>(value); }
162 template<typename ServiceArnsT = Aws::Vector<Aws::String>>
163 TargetGroupSummary& WithServiceArns(ServiceArnsT&& value) { SetServiceArns(std::forward<ServiceArnsT>(value)); return *this;}
164 template<typename ServiceArnsT = Aws::String>
165 TargetGroupSummary& AddServiceArns(ServiceArnsT&& value) { m_serviceArnsHasBeenSet = true; m_serviceArns.emplace_back(std::forward<ServiceArnsT>(value)); return *this; }
167
169
172 inline TargetGroupStatus GetStatus() const { return m_status; }
173 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
174 inline void SetStatus(TargetGroupStatus value) { m_statusHasBeenSet = true; m_status = value; }
175 inline TargetGroupSummary& WithStatus(TargetGroupStatus value) { SetStatus(value); return *this;}
177
179
182 inline TargetGroupType GetType() const { return m_type; }
183 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
184 inline void SetType(TargetGroupType value) { m_typeHasBeenSet = true; m_type = value; }
185 inline TargetGroupSummary& WithType(TargetGroupType value) { SetType(value); return *this;}
187
189
192 inline const Aws::String& GetVpcIdentifier() const { return m_vpcIdentifier; }
193 inline bool VpcIdentifierHasBeenSet() const { return m_vpcIdentifierHasBeenSet; }
194 template<typename VpcIdentifierT = Aws::String>
195 void SetVpcIdentifier(VpcIdentifierT&& value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier = std::forward<VpcIdentifierT>(value); }
196 template<typename VpcIdentifierT = Aws::String>
197 TargetGroupSummary& WithVpcIdentifier(VpcIdentifierT&& value) { SetVpcIdentifier(std::forward<VpcIdentifierT>(value)); return *this;}
199 private:
200
201 Aws::String m_arn;
202 bool m_arnHasBeenSet = false;
203
204 Aws::Utils::DateTime m_createdAt{};
205 bool m_createdAtHasBeenSet = false;
206
207 Aws::String m_id;
208 bool m_idHasBeenSet = false;
209
210 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
211 bool m_ipAddressTypeHasBeenSet = false;
212
214 bool m_lambdaEventStructureVersionHasBeenSet = false;
215
216 Aws::Utils::DateTime m_lastUpdatedAt{};
217 bool m_lastUpdatedAtHasBeenSet = false;
218
219 Aws::String m_name;
220 bool m_nameHasBeenSet = false;
221
222 int m_port{0};
223 bool m_portHasBeenSet = false;
224
226 bool m_protocolHasBeenSet = false;
227
228 Aws::Vector<Aws::String> m_serviceArns;
229 bool m_serviceArnsHasBeenSet = false;
230
232 bool m_statusHasBeenSet = false;
233
235 bool m_typeHasBeenSet = false;
236
237 Aws::String m_vpcIdentifier;
238 bool m_vpcIdentifierHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace VPCLattice
243} // namespace Aws
TargetGroupSummary & WithLambdaEventStructureVersion(LambdaEventStructureVersion value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
TargetGroupSummary & WithType(TargetGroupType value)
TargetGroupSummary & AddServiceArns(ServiceArnsT &&value)
void SetLambdaEventStructureVersion(LambdaEventStructureVersion value)
TargetGroupSummary & WithName(NameT &&value)
TargetGroupSummary & WithId(IdT &&value)
TargetGroupSummary & WithProtocol(TargetGroupProtocol value)
TargetGroupSummary & WithCreatedAt(CreatedAtT &&value)
TargetGroupSummary & WithPort(int value)
AWS_VPCLATTICE_API TargetGroupSummary()=default
const Aws::Utils::DateTime & GetCreatedAt() const
void SetLastUpdatedAt(LastUpdatedAtT &&value)
TargetGroupSummary & WithServiceArns(ServiceArnsT &&value)
AWS_VPCLATTICE_API TargetGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaEventStructureVersion GetLambdaEventStructureVersion() const
TargetGroupSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_VPCLATTICE_API TargetGroupSummary(Aws::Utils::Json::JsonView jsonValue)
void SetVpcIdentifier(VpcIdentifierT &&value)
const Aws::Vector< Aws::String > & GetServiceArns() const
TargetGroupSummary & WithArn(ArnT &&value)
void SetProtocol(TargetGroupProtocol value)
TargetGroupSummary & WithStatus(TargetGroupStatus value)
TargetGroupSummary & WithVpcIdentifier(VpcIdentifierT &&value)
TargetGroupSummary & WithIpAddressType(IpAddressType value)
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue