AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3outposts/S3Outposts_EXPORTS.h>
11#include <aws/s3outposts/model/EndpointAccessType.h>
12#include <aws/s3outposts/model/EndpointStatus.h>
13#include <aws/s3outposts/model/FailedReason.h>
14#include <aws/s3outposts/model/NetworkInterface.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace S3Outposts {
26namespace Model {
27
39class Endpoint {
40 public:
41 AWS_S3OUTPOSTS_API Endpoint() = default;
42 AWS_S3OUTPOSTS_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
43 AWS_S3OUTPOSTS_API Endpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_S3OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const Aws::String& GetEndpointArn() const { return m_endpointArn; }
51 inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
52 template <typename EndpointArnT = Aws::String>
53 void SetEndpointArn(EndpointArnT&& value) {
54 m_endpointArnHasBeenSet = true;
55 m_endpointArn = std::forward<EndpointArnT>(value);
56 }
57 template <typename EndpointArnT = Aws::String>
58 Endpoint& WithEndpointArn(EndpointArnT&& value) {
59 SetEndpointArn(std::forward<EndpointArnT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetOutpostsId() const { return m_outpostsId; }
69 inline bool OutpostsIdHasBeenSet() const { return m_outpostsIdHasBeenSet; }
70 template <typename OutpostsIdT = Aws::String>
71 void SetOutpostsId(OutpostsIdT&& value) {
72 m_outpostsIdHasBeenSet = true;
73 m_outpostsId = std::forward<OutpostsIdT>(value);
74 }
75 template <typename OutpostsIdT = Aws::String>
76 Endpoint& WithOutpostsId(OutpostsIdT&& value) {
77 SetOutpostsId(std::forward<OutpostsIdT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetCidrBlock() const { return m_cidrBlock; }
87 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
88 template <typename CidrBlockT = Aws::String>
89 void SetCidrBlock(CidrBlockT&& value) {
90 m_cidrBlockHasBeenSet = true;
91 m_cidrBlock = std::forward<CidrBlockT>(value);
92 }
93 template <typename CidrBlockT = Aws::String>
94 Endpoint& WithCidrBlock(CidrBlockT&& value) {
95 SetCidrBlock(std::forward<CidrBlockT>(value));
96 return *this;
97 }
99
101
104 inline EndpointStatus GetStatus() const { return m_status; }
105 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
106 inline void SetStatus(EndpointStatus value) {
107 m_statusHasBeenSet = true;
108 m_status = value;
109 }
111 SetStatus(value);
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
121 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
122 template <typename CreationTimeT = Aws::Utils::DateTime>
123 void SetCreationTime(CreationTimeT&& value) {
124 m_creationTimeHasBeenSet = true;
125 m_creationTime = std::forward<CreationTimeT>(value);
126 }
127 template <typename CreationTimeT = Aws::Utils::DateTime>
128 Endpoint& WithCreationTime(CreationTimeT&& value) {
129 SetCreationTime(std::forward<CreationTimeT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
139 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
140 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
141 void SetNetworkInterfaces(NetworkInterfacesT&& value) {
142 m_networkInterfacesHasBeenSet = true;
143 m_networkInterfaces = std::forward<NetworkInterfacesT>(value);
144 }
145 template <typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
146 Endpoint& WithNetworkInterfaces(NetworkInterfacesT&& value) {
147 SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value));
148 return *this;
149 }
150 template <typename NetworkInterfacesT = NetworkInterface>
151 Endpoint& AddNetworkInterfaces(NetworkInterfacesT&& value) {
152 m_networkInterfacesHasBeenSet = true;
153 m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetVpcId() const { return m_vpcId; }
163 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
164 template <typename VpcIdT = Aws::String>
165 void SetVpcId(VpcIdT&& value) {
166 m_vpcIdHasBeenSet = true;
167 m_vpcId = std::forward<VpcIdT>(value);
168 }
169 template <typename VpcIdT = Aws::String>
170 Endpoint& WithVpcId(VpcIdT&& value) {
171 SetVpcId(std::forward<VpcIdT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
181 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
182 template <typename SubnetIdT = Aws::String>
183 void SetSubnetId(SubnetIdT&& value) {
184 m_subnetIdHasBeenSet = true;
185 m_subnetId = std::forward<SubnetIdT>(value);
186 }
187 template <typename SubnetIdT = Aws::String>
188 Endpoint& WithSubnetId(SubnetIdT&& value) {
189 SetSubnetId(std::forward<SubnetIdT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::String& GetSecurityGroupId() const { return m_securityGroupId; }
199 inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
200 template <typename SecurityGroupIdT = Aws::String>
201 void SetSecurityGroupId(SecurityGroupIdT&& value) {
202 m_securityGroupIdHasBeenSet = true;
203 m_securityGroupId = std::forward<SecurityGroupIdT>(value);
204 }
205 template <typename SecurityGroupIdT = Aws::String>
206 Endpoint& WithSecurityGroupId(SecurityGroupIdT&& value) {
207 SetSecurityGroupId(std::forward<SecurityGroupIdT>(value));
208 return *this;
209 }
211
213
217 inline EndpointAccessType GetAccessType() const { return m_accessType; }
218 inline bool AccessTypeHasBeenSet() const { return m_accessTypeHasBeenSet; }
220 m_accessTypeHasBeenSet = true;
221 m_accessType = value;
222 }
224 SetAccessType(value);
225 return *this;
226 }
228
230
233 inline const Aws::String& GetCustomerOwnedIpv4Pool() const { return m_customerOwnedIpv4Pool; }
234 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
235 template <typename CustomerOwnedIpv4PoolT = Aws::String>
236 void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) {
237 m_customerOwnedIpv4PoolHasBeenSet = true;
238 m_customerOwnedIpv4Pool = std::forward<CustomerOwnedIpv4PoolT>(value);
239 }
240 template <typename CustomerOwnedIpv4PoolT = Aws::String>
241 Endpoint& WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) {
242 SetCustomerOwnedIpv4Pool(std::forward<CustomerOwnedIpv4PoolT>(value));
243 return *this;
244 }
246
248
251 inline const FailedReason& GetFailedReason() const { return m_failedReason; }
252 inline bool FailedReasonHasBeenSet() const { return m_failedReasonHasBeenSet; }
253 template <typename FailedReasonT = FailedReason>
254 void SetFailedReason(FailedReasonT&& value) {
255 m_failedReasonHasBeenSet = true;
256 m_failedReason = std::forward<FailedReasonT>(value);
257 }
258 template <typename FailedReasonT = FailedReason>
259 Endpoint& WithFailedReason(FailedReasonT&& value) {
260 SetFailedReason(std::forward<FailedReasonT>(value));
261 return *this;
262 }
264 private:
265 Aws::String m_endpointArn;
266
267 Aws::String m_outpostsId;
268
269 Aws::String m_cidrBlock;
270
272
273 Aws::Utils::DateTime m_creationTime{};
274
275 Aws::Vector<NetworkInterface> m_networkInterfaces;
276
277 Aws::String m_vpcId;
278
279 Aws::String m_subnetId;
280
281 Aws::String m_securityGroupId;
282
284
285 Aws::String m_customerOwnedIpv4Pool;
286
287 FailedReason m_failedReason;
288 bool m_endpointArnHasBeenSet = false;
289 bool m_outpostsIdHasBeenSet = false;
290 bool m_cidrBlockHasBeenSet = false;
291 bool m_statusHasBeenSet = false;
292 bool m_creationTimeHasBeenSet = false;
293 bool m_networkInterfacesHasBeenSet = false;
294 bool m_vpcIdHasBeenSet = false;
295 bool m_subnetIdHasBeenSet = false;
296 bool m_securityGroupIdHasBeenSet = false;
297 bool m_accessTypeHasBeenSet = false;
298 bool m_customerOwnedIpv4PoolHasBeenSet = false;
299 bool m_failedReasonHasBeenSet = false;
300};
301
302} // namespace Model
303} // namespace S3Outposts
304} // namespace Aws
Endpoint & WithFailedReason(FailedReasonT &&value)
Definition Endpoint.h:259
void SetAccessType(EndpointAccessType value)
Definition Endpoint.h:219
Endpoint & WithVpcId(VpcIdT &&value)
Definition Endpoint.h:170
AWS_S3OUTPOSTS_API Endpoint()=default
void SetCreationTime(CreationTimeT &&value)
Definition Endpoint.h:123
const Aws::String & GetCidrBlock() const
Definition Endpoint.h:86
const Aws::String & GetSecurityGroupId() const
Definition Endpoint.h:198
const Aws::String & GetVpcId() const
Definition Endpoint.h:162
const FailedReason & GetFailedReason() const
Definition Endpoint.h:251
bool SecurityGroupIdHasBeenSet() const
Definition Endpoint.h:199
EndpointStatus GetStatus() const
Definition Endpoint.h:104
void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
Definition Endpoint.h:236
void SetVpcId(VpcIdT &&value)
Definition Endpoint.h:165
AWS_S3OUTPOSTS_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOutpostsId() const
Definition Endpoint.h:68
void SetEndpointArn(EndpointArnT &&value)
Definition Endpoint.h:53
Endpoint & WithCidrBlock(CidrBlockT &&value)
Definition Endpoint.h:94
const Aws::String & GetCustomerOwnedIpv4Pool() const
Definition Endpoint.h:233
AWS_S3OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
Endpoint & WithAccessType(EndpointAccessType value)
Definition Endpoint.h:223
Endpoint & WithSecurityGroupId(SecurityGroupIdT &&value)
Definition Endpoint.h:206
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
Definition Endpoint.h:138
EndpointAccessType GetAccessType() const
Definition Endpoint.h:217
Endpoint & AddNetworkInterfaces(NetworkInterfacesT &&value)
Definition Endpoint.h:151
Endpoint & WithEndpointArn(EndpointArnT &&value)
Definition Endpoint.h:58
AWS_S3OUTPOSTS_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
Endpoint & WithStatus(EndpointStatus value)
Definition Endpoint.h:110
const Aws::String & GetEndpointArn() const
Definition Endpoint.h:50
void SetCidrBlock(CidrBlockT &&value)
Definition Endpoint.h:89
Endpoint & WithOutpostsId(OutpostsIdT &&value)
Definition Endpoint.h:76
Endpoint & WithSubnetId(SubnetIdT &&value)
Definition Endpoint.h:188
Endpoint & WithCreationTime(CreationTimeT &&value)
Definition Endpoint.h:128
const Aws::Utils::DateTime & GetCreationTime() const
Definition Endpoint.h:120
void SetSecurityGroupId(SecurityGroupIdT &&value)
Definition Endpoint.h:201
bool NetworkInterfacesHasBeenSet() const
Definition Endpoint.h:139
void SetFailedReason(FailedReasonT &&value)
Definition Endpoint.h:254
Endpoint & WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
Definition Endpoint.h:241
const Aws::String & GetSubnetId() const
Definition Endpoint.h:180
void SetStatus(EndpointStatus value)
Definition Endpoint.h:106
bool CustomerOwnedIpv4PoolHasBeenSet() const
Definition Endpoint.h:234
void SetOutpostsId(OutpostsIdT &&value)
Definition Endpoint.h:71
void SetNetworkInterfaces(NetworkInterfacesT &&value)
Definition Endpoint.h:141
void SetSubnetId(SubnetIdT &&value)
Definition Endpoint.h:183
Endpoint & WithNetworkInterfaces(NetworkInterfacesT &&value)
Definition Endpoint.h:146
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue