AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/s3outposts/S3Outposts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3outposts/model/EndpointStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/s3outposts/model/EndpointAccessType.h>
13#include <aws/s3outposts/model/FailedReason.h>
14#include <aws/s3outposts/model/NetworkInterface.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace S3Outposts
28{
29namespace Model
30{
31
44 {
45 public:
46 AWS_S3OUTPOSTS_API Endpoint() = default;
47 AWS_S3OUTPOSTS_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
48 AWS_S3OUTPOSTS_API Endpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_S3OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetEndpointArn() const { return m_endpointArn; }
57 inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
58 template<typename EndpointArnT = Aws::String>
59 void SetEndpointArn(EndpointArnT&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::forward<EndpointArnT>(value); }
60 template<typename EndpointArnT = Aws::String>
61 Endpoint& WithEndpointArn(EndpointArnT&& value) { SetEndpointArn(std::forward<EndpointArnT>(value)); return *this;}
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) { m_outpostsIdHasBeenSet = true; m_outpostsId = std::forward<OutpostsIdT>(value); }
72 template<typename OutpostsIdT = Aws::String>
73 Endpoint& WithOutpostsId(OutpostsIdT&& value) { SetOutpostsId(std::forward<OutpostsIdT>(value)); return *this;}
75
77
80 inline const Aws::String& GetCidrBlock() const { return m_cidrBlock; }
81 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
82 template<typename CidrBlockT = Aws::String>
83 void SetCidrBlock(CidrBlockT&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::forward<CidrBlockT>(value); }
84 template<typename CidrBlockT = Aws::String>
85 Endpoint& WithCidrBlock(CidrBlockT&& value) { SetCidrBlock(std::forward<CidrBlockT>(value)); return *this;}
87
89
92 inline EndpointStatus GetStatus() const { return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 inline void SetStatus(EndpointStatus value) { m_statusHasBeenSet = true; m_status = value; }
95 inline Endpoint& WithStatus(EndpointStatus value) { SetStatus(value); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
103 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
104 template<typename CreationTimeT = Aws::Utils::DateTime>
105 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
106 template<typename CreationTimeT = Aws::Utils::DateTime>
107 Endpoint& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
109
111
114 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const { return m_networkInterfaces; }
115 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
116 template<typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
117 void SetNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::forward<NetworkInterfacesT>(value); }
118 template<typename NetworkInterfacesT = Aws::Vector<NetworkInterface>>
119 Endpoint& WithNetworkInterfaces(NetworkInterfacesT&& value) { SetNetworkInterfaces(std::forward<NetworkInterfacesT>(value)); return *this;}
120 template<typename NetworkInterfacesT = NetworkInterface>
121 Endpoint& AddNetworkInterfaces(NetworkInterfacesT&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.emplace_back(std::forward<NetworkInterfacesT>(value)); return *this; }
123
125
128 inline const Aws::String& GetVpcId() const { return m_vpcId; }
129 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
130 template<typename VpcIdT = Aws::String>
131 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
132 template<typename VpcIdT = Aws::String>
133 Endpoint& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
135
137
140 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
141 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
142 template<typename SubnetIdT = Aws::String>
143 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::forward<SubnetIdT>(value); }
144 template<typename SubnetIdT = Aws::String>
145 Endpoint& WithSubnetId(SubnetIdT&& value) { SetSubnetId(std::forward<SubnetIdT>(value)); return *this;}
147
149
152 inline const Aws::String& GetSecurityGroupId() const { return m_securityGroupId; }
153 inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
154 template<typename SecurityGroupIdT = Aws::String>
155 void SetSecurityGroupId(SecurityGroupIdT&& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = std::forward<SecurityGroupIdT>(value); }
156 template<typename SecurityGroupIdT = Aws::String>
157 Endpoint& WithSecurityGroupId(SecurityGroupIdT&& value) { SetSecurityGroupId(std::forward<SecurityGroupIdT>(value)); return *this;}
159
161
165 inline EndpointAccessType GetAccessType() const { return m_accessType; }
166 inline bool AccessTypeHasBeenSet() const { return m_accessTypeHasBeenSet; }
167 inline void SetAccessType(EndpointAccessType value) { m_accessTypeHasBeenSet = true; m_accessType = value; }
168 inline Endpoint& WithAccessType(EndpointAccessType value) { SetAccessType(value); return *this;}
170
172
175 inline const Aws::String& GetCustomerOwnedIpv4Pool() const { return m_customerOwnedIpv4Pool; }
176 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
177 template<typename CustomerOwnedIpv4PoolT = Aws::String>
178 void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::forward<CustomerOwnedIpv4PoolT>(value); }
179 template<typename CustomerOwnedIpv4PoolT = Aws::String>
180 Endpoint& WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT&& value) { SetCustomerOwnedIpv4Pool(std::forward<CustomerOwnedIpv4PoolT>(value)); return *this;}
182
184
187 inline const FailedReason& GetFailedReason() const { return m_failedReason; }
188 inline bool FailedReasonHasBeenSet() const { return m_failedReasonHasBeenSet; }
189 template<typename FailedReasonT = FailedReason>
190 void SetFailedReason(FailedReasonT&& value) { m_failedReasonHasBeenSet = true; m_failedReason = std::forward<FailedReasonT>(value); }
191 template<typename FailedReasonT = FailedReason>
192 Endpoint& WithFailedReason(FailedReasonT&& value) { SetFailedReason(std::forward<FailedReasonT>(value)); return *this;}
194 private:
195
196 Aws::String m_endpointArn;
197 bool m_endpointArnHasBeenSet = false;
198
199 Aws::String m_outpostsId;
200 bool m_outpostsIdHasBeenSet = false;
201
202 Aws::String m_cidrBlock;
203 bool m_cidrBlockHasBeenSet = false;
204
206 bool m_statusHasBeenSet = false;
207
208 Aws::Utils::DateTime m_creationTime{};
209 bool m_creationTimeHasBeenSet = false;
210
211 Aws::Vector<NetworkInterface> m_networkInterfaces;
212 bool m_networkInterfacesHasBeenSet = false;
213
214 Aws::String m_vpcId;
215 bool m_vpcIdHasBeenSet = false;
216
217 Aws::String m_subnetId;
218 bool m_subnetIdHasBeenSet = false;
219
220 Aws::String m_securityGroupId;
221 bool m_securityGroupIdHasBeenSet = false;
222
224 bool m_accessTypeHasBeenSet = false;
225
226 Aws::String m_customerOwnedIpv4Pool;
227 bool m_customerOwnedIpv4PoolHasBeenSet = false;
228
229 FailedReason m_failedReason;
230 bool m_failedReasonHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace S3Outposts
235} // namespace Aws
Endpoint & WithFailedReason(FailedReasonT &&value)
Definition Endpoint.h:192
void SetAccessType(EndpointAccessType value)
Definition Endpoint.h:167
Endpoint & WithVpcId(VpcIdT &&value)
Definition Endpoint.h:133
AWS_S3OUTPOSTS_API Endpoint()=default
void SetCreationTime(CreationTimeT &&value)
Definition Endpoint.h:105
const Aws::String & GetCidrBlock() const
Definition Endpoint.h:80
const Aws::String & GetSecurityGroupId() const
Definition Endpoint.h:152
const Aws::String & GetVpcId() const
Definition Endpoint.h:128
const FailedReason & GetFailedReason() const
Definition Endpoint.h:187
bool SecurityGroupIdHasBeenSet() const
Definition Endpoint.h:153
EndpointStatus GetStatus() const
Definition Endpoint.h:92
void SetCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
Definition Endpoint.h:178
void SetVpcId(VpcIdT &&value)
Definition Endpoint.h:131
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:59
Endpoint & WithCidrBlock(CidrBlockT &&value)
Definition Endpoint.h:85
const Aws::String & GetCustomerOwnedIpv4Pool() const
Definition Endpoint.h:175
AWS_S3OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
Endpoint & WithAccessType(EndpointAccessType value)
Definition Endpoint.h:168
Endpoint & WithSecurityGroupId(SecurityGroupIdT &&value)
Definition Endpoint.h:157
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
Definition Endpoint.h:114
EndpointAccessType GetAccessType() const
Definition Endpoint.h:165
Endpoint & AddNetworkInterfaces(NetworkInterfacesT &&value)
Definition Endpoint.h:121
Endpoint & WithEndpointArn(EndpointArnT &&value)
Definition Endpoint.h:61
AWS_S3OUTPOSTS_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
Endpoint & WithStatus(EndpointStatus value)
Definition Endpoint.h:95
const Aws::String & GetEndpointArn() const
Definition Endpoint.h:56
void SetCidrBlock(CidrBlockT &&value)
Definition Endpoint.h:83
Endpoint & WithOutpostsId(OutpostsIdT &&value)
Definition Endpoint.h:73
Endpoint & WithSubnetId(SubnetIdT &&value)
Definition Endpoint.h:145
Endpoint & WithCreationTime(CreationTimeT &&value)
Definition Endpoint.h:107
const Aws::Utils::DateTime & GetCreationTime() const
Definition Endpoint.h:102
void SetSecurityGroupId(SecurityGroupIdT &&value)
Definition Endpoint.h:155
bool NetworkInterfacesHasBeenSet() const
Definition Endpoint.h:115
void SetFailedReason(FailedReasonT &&value)
Definition Endpoint.h:190
Endpoint & WithCustomerOwnedIpv4Pool(CustomerOwnedIpv4PoolT &&value)
Definition Endpoint.h:180
const Aws::String & GetSubnetId() const
Definition Endpoint.h:140
void SetStatus(EndpointStatus value)
Definition Endpoint.h:94
bool CustomerOwnedIpv4PoolHasBeenSet() const
Definition Endpoint.h:176
void SetOutpostsId(OutpostsIdT &&value)
Definition Endpoint.h:71
void SetNetworkInterfaces(NetworkInterfacesT &&value)
Definition Endpoint.h:117
void SetSubnetId(SubnetIdT &&value)
Definition Endpoint.h:143
Endpoint & WithNetworkInterfaces(NetworkInterfacesT &&value)
Definition Endpoint.h:119
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue