AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
57 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
58 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
59 inline TargetGroupSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
60 inline TargetGroupSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
61 inline TargetGroupSummary& WithArn(const char* value) { SetArn(value); return *this;}
63
65
69 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
70 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
71 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
72 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
73 inline TargetGroupSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
74 inline TargetGroupSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
76
78
81 inline const Aws::String& GetId() const{ return m_id; }
82 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
83 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
84 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
85 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
86 inline TargetGroupSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
87 inline TargetGroupSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
88 inline TargetGroupSummary& WithId(const char* value) { SetId(value); return *this;}
90
92
97 inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; }
98 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
99 inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
100 inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
101 inline TargetGroupSummary& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;}
102 inline TargetGroupSummary& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;}
104
106
110 inline const LambdaEventStructureVersion& GetLambdaEventStructureVersion() const{ return m_lambdaEventStructureVersion; }
111 inline bool LambdaEventStructureVersionHasBeenSet() const { return m_lambdaEventStructureVersionHasBeenSet; }
112 inline void SetLambdaEventStructureVersion(const LambdaEventStructureVersion& value) { m_lambdaEventStructureVersionHasBeenSet = true; m_lambdaEventStructureVersion = value; }
113 inline void SetLambdaEventStructureVersion(LambdaEventStructureVersion&& value) { m_lambdaEventStructureVersionHasBeenSet = true; m_lambdaEventStructureVersion = std::move(value); }
117
119
123 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
124 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
125 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
126 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
127 inline TargetGroupSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
128 inline TargetGroupSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
130
132
135 inline const Aws::String& GetName() const{ return m_name; }
136 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
137 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
138 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
139 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
140 inline TargetGroupSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
141 inline TargetGroupSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
142 inline TargetGroupSummary& WithName(const char* value) { SetName(value); return *this;}
144
146
149 inline int GetPort() const{ return m_port; }
150 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
151 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
152 inline TargetGroupSummary& WithPort(int value) { SetPort(value); return *this;}
154
156
159 inline const TargetGroupProtocol& GetProtocol() const{ return m_protocol; }
160 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
161 inline void SetProtocol(const TargetGroupProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
162 inline void SetProtocol(TargetGroupProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
163 inline TargetGroupSummary& WithProtocol(const TargetGroupProtocol& value) { SetProtocol(value); return *this;}
164 inline TargetGroupSummary& WithProtocol(TargetGroupProtocol&& value) { SetProtocol(std::move(value)); return *this;}
166
168
171 inline const Aws::Vector<Aws::String>& GetServiceArns() const{ return m_serviceArns; }
172 inline bool ServiceArnsHasBeenSet() const { return m_serviceArnsHasBeenSet; }
173 inline void SetServiceArns(const Aws::Vector<Aws::String>& value) { m_serviceArnsHasBeenSet = true; m_serviceArns = value; }
174 inline void SetServiceArns(Aws::Vector<Aws::String>&& value) { m_serviceArnsHasBeenSet = true; m_serviceArns = std::move(value); }
175 inline TargetGroupSummary& WithServiceArns(const Aws::Vector<Aws::String>& value) { SetServiceArns(value); return *this;}
176 inline TargetGroupSummary& WithServiceArns(Aws::Vector<Aws::String>&& value) { SetServiceArns(std::move(value)); return *this;}
177 inline TargetGroupSummary& AddServiceArns(const Aws::String& value) { m_serviceArnsHasBeenSet = true; m_serviceArns.push_back(value); return *this; }
178 inline TargetGroupSummary& AddServiceArns(Aws::String&& value) { m_serviceArnsHasBeenSet = true; m_serviceArns.push_back(std::move(value)); return *this; }
179 inline TargetGroupSummary& AddServiceArns(const char* value) { m_serviceArnsHasBeenSet = true; m_serviceArns.push_back(value); return *this; }
181
183
186 inline const TargetGroupStatus& GetStatus() const{ return m_status; }
187 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
188 inline void SetStatus(const TargetGroupStatus& value) { m_statusHasBeenSet = true; m_status = value; }
189 inline void SetStatus(TargetGroupStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
190 inline TargetGroupSummary& WithStatus(const TargetGroupStatus& value) { SetStatus(value); return *this;}
191 inline TargetGroupSummary& WithStatus(TargetGroupStatus&& value) { SetStatus(std::move(value)); return *this;}
193
195
198 inline const TargetGroupType& GetType() const{ return m_type; }
199 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
200 inline void SetType(const TargetGroupType& value) { m_typeHasBeenSet = true; m_type = value; }
201 inline void SetType(TargetGroupType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
202 inline TargetGroupSummary& WithType(const TargetGroupType& value) { SetType(value); return *this;}
203 inline TargetGroupSummary& WithType(TargetGroupType&& value) { SetType(std::move(value)); return *this;}
205
207
210 inline const Aws::String& GetVpcIdentifier() const{ return m_vpcIdentifier; }
211 inline bool VpcIdentifierHasBeenSet() const { return m_vpcIdentifierHasBeenSet; }
212 inline void SetVpcIdentifier(const Aws::String& value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier = value; }
213 inline void SetVpcIdentifier(Aws::String&& value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier = std::move(value); }
214 inline void SetVpcIdentifier(const char* value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier.assign(value); }
215 inline TargetGroupSummary& WithVpcIdentifier(const Aws::String& value) { SetVpcIdentifier(value); return *this;}
216 inline TargetGroupSummary& WithVpcIdentifier(Aws::String&& value) { SetVpcIdentifier(std::move(value)); return *this;}
217 inline TargetGroupSummary& WithVpcIdentifier(const char* value) { SetVpcIdentifier(value); return *this;}
219 private:
220
221 Aws::String m_arn;
222 bool m_arnHasBeenSet = false;
223
224 Aws::Utils::DateTime m_createdAt;
225 bool m_createdAtHasBeenSet = false;
226
227 Aws::String m_id;
228 bool m_idHasBeenSet = false;
229
230 IpAddressType m_ipAddressType;
231 bool m_ipAddressTypeHasBeenSet = false;
232
233 LambdaEventStructureVersion m_lambdaEventStructureVersion;
234 bool m_lambdaEventStructureVersionHasBeenSet = false;
235
236 Aws::Utils::DateTime m_lastUpdatedAt;
237 bool m_lastUpdatedAtHasBeenSet = false;
238
239 Aws::String m_name;
240 bool m_nameHasBeenSet = false;
241
242 int m_port;
243 bool m_portHasBeenSet = false;
244
245 TargetGroupProtocol m_protocol;
246 bool m_protocolHasBeenSet = false;
247
248 Aws::Vector<Aws::String> m_serviceArns;
249 bool m_serviceArnsHasBeenSet = false;
250
251 TargetGroupStatus m_status;
252 bool m_statusHasBeenSet = false;
253
254 TargetGroupType m_type;
255 bool m_typeHasBeenSet = false;
256
257 Aws::String m_vpcIdentifier;
258 bool m_vpcIdentifierHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace VPCLattice
263} // namespace Aws
const TargetGroupProtocol & GetProtocol() const
const IpAddressType & GetIpAddressType() const
void SetProtocol(TargetGroupProtocol &&value)
TargetGroupSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
const TargetGroupType & GetType() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
TargetGroupSummary & WithType(TargetGroupType &&value)
void SetType(const TargetGroupType &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetLambdaEventStructureVersion(const LambdaEventStructureVersion &value)
TargetGroupSummary & WithArn(const Aws::String &value)
void SetVpcIdentifier(const Aws::String &value)
TargetGroupSummary & WithLambdaEventStructureVersion(const LambdaEventStructureVersion &value)
TargetGroupSummary & WithArn(const char *value)
void SetLambdaEventStructureVersion(LambdaEventStructureVersion &&value)
TargetGroupSummary & WithName(const char *value)
TargetGroupSummary & WithName(const Aws::String &value)
TargetGroupSummary & WithIpAddressType(IpAddressType &&value)
TargetGroupSummary & WithPort(int value)
void SetStatus(const TargetGroupStatus &value)
const Aws::Utils::DateTime & GetCreatedAt() const
TargetGroupSummary & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
TargetGroupSummary & WithId(Aws::String &&value)
TargetGroupSummary & WithProtocol(const TargetGroupProtocol &value)
TargetGroupSummary & WithProtocol(TargetGroupProtocol &&value)
TargetGroupSummary & WithId(const Aws::String &value)
TargetGroupSummary & WithVpcIdentifier(Aws::String &&value)
TargetGroupSummary & WithId(const char *value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
const LambdaEventStructureVersion & GetLambdaEventStructureVersion() const
const TargetGroupStatus & GetStatus() const
void SetCreatedAt(const Aws::Utils::DateTime &value)
AWS_VPCLATTICE_API TargetGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIpAddressType(const IpAddressType &value)
TargetGroupSummary & WithStatus(TargetGroupStatus &&value)
TargetGroupSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
TargetGroupSummary & WithName(Aws::String &&value)
TargetGroupSummary & WithIpAddressType(const IpAddressType &value)
AWS_VPCLATTICE_API TargetGroupSummary(Aws::Utils::Json::JsonView jsonValue)
TargetGroupSummary & WithStatus(const TargetGroupStatus &value)
TargetGroupSummary & WithVpcIdentifier(const Aws::String &value)
TargetGroupSummary & AddServiceArns(const char *value)
void SetStatus(TargetGroupStatus &&value)
const Aws::Vector< Aws::String > & GetServiceArns() const
void SetProtocol(const TargetGroupProtocol &value)
TargetGroupSummary & WithType(const TargetGroupType &value)
TargetGroupSummary & WithArn(Aws::String &&value)
TargetGroupSummary & WithVpcIdentifier(const char *value)
TargetGroupSummary & WithServiceArns(Aws::Vector< Aws::String > &&value)
void SetServiceArns(const Aws::Vector< Aws::String > &value)
TargetGroupSummary & AddServiceArns(Aws::String &&value)
TargetGroupSummary & WithServiceArns(const Aws::Vector< Aws::String > &value)
TargetGroupSummary & AddServiceArns(const Aws::String &value)
TargetGroupSummary & WithLambdaEventStructureVersion(LambdaEventStructureVersion &&value)
void SetServiceArns(Aws::Vector< Aws::String > &&value)
TargetGroupSummary & WithLastUpdatedAt(Aws::Utils::DateTime &&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