AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
59 inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::move(value); }
60 inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
61 inline Endpoint& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
62 inline Endpoint& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;}
63 inline Endpoint& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
65
67
70 inline const Aws::String& GetOutpostsId() const{ return m_outpostsId; }
71 inline bool OutpostsIdHasBeenSet() const { return m_outpostsIdHasBeenSet; }
72 inline void SetOutpostsId(const Aws::String& value) { m_outpostsIdHasBeenSet = true; m_outpostsId = value; }
73 inline void SetOutpostsId(Aws::String&& value) { m_outpostsIdHasBeenSet = true; m_outpostsId = std::move(value); }
74 inline void SetOutpostsId(const char* value) { m_outpostsIdHasBeenSet = true; m_outpostsId.assign(value); }
75 inline Endpoint& WithOutpostsId(const Aws::String& value) { SetOutpostsId(value); return *this;}
76 inline Endpoint& WithOutpostsId(Aws::String&& value) { SetOutpostsId(std::move(value)); return *this;}
77 inline Endpoint& WithOutpostsId(const char* value) { SetOutpostsId(value); return *this;}
79
81
84 inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
85 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
86 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
87 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
88 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
89 inline Endpoint& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
90 inline Endpoint& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
91 inline Endpoint& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
93
95
98 inline const EndpointStatus& GetStatus() const{ return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(const EndpointStatus& value) { m_statusHasBeenSet = true; m_status = value; }
101 inline void SetStatus(EndpointStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
102 inline Endpoint& WithStatus(const EndpointStatus& value) { SetStatus(value); return *this;}
103 inline Endpoint& WithStatus(EndpointStatus&& value) { SetStatus(std::move(value)); return *this;}
105
107
110 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
111 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
112 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
113 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
114 inline Endpoint& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
115 inline Endpoint& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
117
119
122 inline const Aws::Vector<NetworkInterface>& GetNetworkInterfaces() const{ return m_networkInterfaces; }
123 inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; }
124 inline void SetNetworkInterfaces(const Aws::Vector<NetworkInterface>& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; }
125 inline void SetNetworkInterfaces(Aws::Vector<NetworkInterface>&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); }
127 inline Endpoint& WithNetworkInterfaces(Aws::Vector<NetworkInterface>&& value) { SetNetworkInterfaces(std::move(value)); return *this;}
128 inline Endpoint& AddNetworkInterfaces(const NetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; }
129 inline Endpoint& AddNetworkInterfaces(NetworkInterface&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; }
131
133
136 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
137 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
138 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
139 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
140 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
141 inline Endpoint& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
142 inline Endpoint& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
143 inline Endpoint& WithVpcId(const char* value) { SetVpcId(value); return *this;}
145
147
150 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
151 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
152 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
153 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
154 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
155 inline Endpoint& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
156 inline Endpoint& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
157 inline Endpoint& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
159
161
164 inline const Aws::String& GetSecurityGroupId() const{ return m_securityGroupId; }
165 inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
166 inline void SetSecurityGroupId(const Aws::String& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = value; }
167 inline void SetSecurityGroupId(Aws::String&& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = std::move(value); }
168 inline void SetSecurityGroupId(const char* value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId.assign(value); }
169 inline Endpoint& WithSecurityGroupId(const Aws::String& value) { SetSecurityGroupId(value); return *this;}
170 inline Endpoint& WithSecurityGroupId(Aws::String&& value) { SetSecurityGroupId(std::move(value)); return *this;}
171 inline Endpoint& WithSecurityGroupId(const char* value) { SetSecurityGroupId(value); return *this;}
173
175
179 inline const EndpointAccessType& GetAccessType() const{ return m_accessType; }
180 inline bool AccessTypeHasBeenSet() const { return m_accessTypeHasBeenSet; }
181 inline void SetAccessType(const EndpointAccessType& value) { m_accessTypeHasBeenSet = true; m_accessType = value; }
182 inline void SetAccessType(EndpointAccessType&& value) { m_accessTypeHasBeenSet = true; m_accessType = std::move(value); }
183 inline Endpoint& WithAccessType(const EndpointAccessType& value) { SetAccessType(value); return *this;}
184 inline Endpoint& WithAccessType(EndpointAccessType&& value) { SetAccessType(std::move(value)); return *this;}
186
188
191 inline const Aws::String& GetCustomerOwnedIpv4Pool() const{ return m_customerOwnedIpv4Pool; }
192 inline bool CustomerOwnedIpv4PoolHasBeenSet() const { return m_customerOwnedIpv4PoolHasBeenSet; }
193 inline void SetCustomerOwnedIpv4Pool(const Aws::String& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = value; }
194 inline void SetCustomerOwnedIpv4Pool(Aws::String&& value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool = std::move(value); }
195 inline void SetCustomerOwnedIpv4Pool(const char* value) { m_customerOwnedIpv4PoolHasBeenSet = true; m_customerOwnedIpv4Pool.assign(value); }
196 inline Endpoint& WithCustomerOwnedIpv4Pool(const Aws::String& value) { SetCustomerOwnedIpv4Pool(value); return *this;}
197 inline Endpoint& WithCustomerOwnedIpv4Pool(Aws::String&& value) { SetCustomerOwnedIpv4Pool(std::move(value)); return *this;}
198 inline Endpoint& WithCustomerOwnedIpv4Pool(const char* value) { SetCustomerOwnedIpv4Pool(value); return *this;}
200
202
205 inline const FailedReason& GetFailedReason() const{ return m_failedReason; }
206 inline bool FailedReasonHasBeenSet() const { return m_failedReasonHasBeenSet; }
207 inline void SetFailedReason(const FailedReason& value) { m_failedReasonHasBeenSet = true; m_failedReason = value; }
208 inline void SetFailedReason(FailedReason&& value) { m_failedReasonHasBeenSet = true; m_failedReason = std::move(value); }
209 inline Endpoint& WithFailedReason(const FailedReason& value) { SetFailedReason(value); return *this;}
210 inline Endpoint& WithFailedReason(FailedReason&& value) { SetFailedReason(std::move(value)); return *this;}
212 private:
213
214 Aws::String m_endpointArn;
215 bool m_endpointArnHasBeenSet = false;
216
217 Aws::String m_outpostsId;
218 bool m_outpostsIdHasBeenSet = false;
219
220 Aws::String m_cidrBlock;
221 bool m_cidrBlockHasBeenSet = false;
222
223 EndpointStatus m_status;
224 bool m_statusHasBeenSet = false;
225
226 Aws::Utils::DateTime m_creationTime;
227 bool m_creationTimeHasBeenSet = false;
228
229 Aws::Vector<NetworkInterface> m_networkInterfaces;
230 bool m_networkInterfacesHasBeenSet = false;
231
232 Aws::String m_vpcId;
233 bool m_vpcIdHasBeenSet = false;
234
235 Aws::String m_subnetId;
236 bool m_subnetIdHasBeenSet = false;
237
238 Aws::String m_securityGroupId;
239 bool m_securityGroupIdHasBeenSet = false;
240
241 EndpointAccessType m_accessType;
242 bool m_accessTypeHasBeenSet = false;
243
244 Aws::String m_customerOwnedIpv4Pool;
245 bool m_customerOwnedIpv4PoolHasBeenSet = false;
246
247 FailedReason m_failedReason;
248 bool m_failedReasonHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace S3Outposts
253} // namespace Aws
Endpoint & WithFailedReason(FailedReason &&value)
Definition Endpoint.h:210
void SetEndpointArn(Aws::String &&value)
Definition Endpoint.h:59
void SetAccessType(const EndpointAccessType &value)
Definition Endpoint.h:181
Endpoint & WithVpcId(Aws::String &&value)
Definition Endpoint.h:142
const Aws::String & GetCidrBlock() const
Definition Endpoint.h:84
void SetOutpostsId(Aws::String &&value)
Definition Endpoint.h:73
Endpoint & WithAccessType(const EndpointAccessType &value)
Definition Endpoint.h:183
const Aws::String & GetSecurityGroupId() const
Definition Endpoint.h:164
Endpoint & WithSubnetId(const char *value)
Definition Endpoint.h:157
void SetCustomerOwnedIpv4Pool(const Aws::String &value)
Definition Endpoint.h:193
void SetCustomerOwnedIpv4Pool(const char *value)
Definition Endpoint.h:195
const Aws::String & GetVpcId() const
Definition Endpoint.h:136
const FailedReason & GetFailedReason() const
Definition Endpoint.h:205
void SetFailedReason(FailedReason &&value)
Definition Endpoint.h:208
bool SecurityGroupIdHasBeenSet() const
Definition Endpoint.h:165
Endpoint & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Endpoint.h:114
Endpoint & WithSecurityGroupId(const char *value)
Definition Endpoint.h:171
AWS_S3OUTPOSTS_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOutpostsId() const
Definition Endpoint.h:70
Endpoint & WithNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
Definition Endpoint.h:127
const Aws::String & GetCustomerOwnedIpv4Pool() const
Definition Endpoint.h:191
const EndpointAccessType & GetAccessType() const
Definition Endpoint.h:179
Endpoint & WithCidrBlock(Aws::String &&value)
Definition Endpoint.h:90
void SetEndpointArn(const Aws::String &value)
Definition Endpoint.h:58
Endpoint & WithStatus(EndpointStatus &&value)
Definition Endpoint.h:103
void SetOutpostsId(const Aws::String &value)
Definition Endpoint.h:72
void SetCidrBlock(const char *value)
Definition Endpoint.h:88
AWS_S3OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
Endpoint & WithSecurityGroupId(const Aws::String &value)
Definition Endpoint.h:169
void SetSecurityGroupId(const char *value)
Definition Endpoint.h:168
void SetNetworkInterfaces(Aws::Vector< NetworkInterface > &&value)
Definition Endpoint.h:125
void SetVpcId(Aws::String &&value)
Definition Endpoint.h:139
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Endpoint.h:113
Endpoint & WithEndpointArn(Aws::String &&value)
Definition Endpoint.h:62
const EndpointStatus & GetStatus() const
Definition Endpoint.h:98
const Aws::Vector< NetworkInterface > & GetNetworkInterfaces() const
Definition Endpoint.h:122
Endpoint & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Endpoint.h:115
void SetCustomerOwnedIpv4Pool(Aws::String &&value)
Definition Endpoint.h:194
Endpoint & WithCidrBlock(const char *value)
Definition Endpoint.h:91
Endpoint & WithVpcId(const Aws::String &value)
Definition Endpoint.h:141
void SetAccessType(EndpointAccessType &&value)
Definition Endpoint.h:182
Endpoint & WithCustomerOwnedIpv4Pool(const Aws::String &value)
Definition Endpoint.h:196
void SetSubnetId(Aws::String &&value)
Definition Endpoint.h:153
void SetStatus(const EndpointStatus &value)
Definition Endpoint.h:100
void SetStatus(EndpointStatus &&value)
Definition Endpoint.h:101
AWS_S3OUTPOSTS_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
Endpoint & WithAccessType(EndpointAccessType &&value)
Definition Endpoint.h:184
Endpoint & WithVpcId(const char *value)
Definition Endpoint.h:143
const Aws::String & GetEndpointArn() const
Definition Endpoint.h:56
Endpoint & WithNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
Definition Endpoint.h:126
Endpoint & WithSecurityGroupId(Aws::String &&value)
Definition Endpoint.h:170
Endpoint & WithCustomerOwnedIpv4Pool(Aws::String &&value)
Definition Endpoint.h:197
const Aws::Utils::DateTime & GetCreationTime() const
Definition Endpoint.h:110
Endpoint & WithCidrBlock(const Aws::String &value)
Definition Endpoint.h:89
void SetSecurityGroupId(const Aws::String &value)
Definition Endpoint.h:166
void SetCidrBlock(const Aws::String &value)
Definition Endpoint.h:86
bool NetworkInterfacesHasBeenSet() const
Definition Endpoint.h:123
void SetCidrBlock(Aws::String &&value)
Definition Endpoint.h:87
void SetOutpostsId(const char *value)
Definition Endpoint.h:74
Endpoint & WithEndpointArn(const Aws::String &value)
Definition Endpoint.h:61
Endpoint & AddNetworkInterfaces(const NetworkInterface &value)
Definition Endpoint.h:128
void SetFailedReason(const FailedReason &value)
Definition Endpoint.h:207
Endpoint & WithSubnetId(Aws::String &&value)
Definition Endpoint.h:156
Endpoint & WithOutpostsId(const char *value)
Definition Endpoint.h:77
void SetVpcId(const Aws::String &value)
Definition Endpoint.h:138
const Aws::String & GetSubnetId() const
Definition Endpoint.h:150
void SetSubnetId(const char *value)
Definition Endpoint.h:154
Endpoint & WithStatus(const EndpointStatus &value)
Definition Endpoint.h:102
bool CustomerOwnedIpv4PoolHasBeenSet() const
Definition Endpoint.h:192
Endpoint & WithOutpostsId(Aws::String &&value)
Definition Endpoint.h:76
void SetSecurityGroupId(Aws::String &&value)
Definition Endpoint.h:167
AWS_S3OUTPOSTS_API Endpoint()
void SetVpcId(const char *value)
Definition Endpoint.h:140
Endpoint & WithOutpostsId(const Aws::String &value)
Definition Endpoint.h:75
Endpoint & WithEndpointArn(const char *value)
Definition Endpoint.h:63
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Endpoint.h:112
void SetSubnetId(const Aws::String &value)
Definition Endpoint.h:152
Endpoint & WithSubnetId(const Aws::String &value)
Definition Endpoint.h:155
void SetEndpointArn(const char *value)
Definition Endpoint.h:60
Endpoint & WithFailedReason(const FailedReason &value)
Definition Endpoint.h:209
void SetNetworkInterfaces(const Aws::Vector< NetworkInterface > &value)
Definition Endpoint.h:124
Endpoint & AddNetworkInterfaces(NetworkInterface &&value)
Definition Endpoint.h:129
Endpoint & WithCustomerOwnedIpv4Pool(const char *value)
Definition Endpoint.h:198
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue