AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Ec2InstanceConnectEndpoint.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/Ec2InstanceConnectEndpointState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/ec2/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
36 {
37 public:
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
51 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
52 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
53 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
54 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
55 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
56 inline Ec2InstanceConnectEndpoint& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
57 inline Ec2InstanceConnectEndpoint& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
58 inline Ec2InstanceConnectEndpoint& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
60
62
65 inline const Aws::String& GetInstanceConnectEndpointId() const{ return m_instanceConnectEndpointId; }
66 inline bool InstanceConnectEndpointIdHasBeenSet() const { return m_instanceConnectEndpointIdHasBeenSet; }
67 inline void SetInstanceConnectEndpointId(const Aws::String& value) { m_instanceConnectEndpointIdHasBeenSet = true; m_instanceConnectEndpointId = value; }
68 inline void SetInstanceConnectEndpointId(Aws::String&& value) { m_instanceConnectEndpointIdHasBeenSet = true; m_instanceConnectEndpointId = std::move(value); }
69 inline void SetInstanceConnectEndpointId(const char* value) { m_instanceConnectEndpointIdHasBeenSet = true; m_instanceConnectEndpointId.assign(value); }
74
76
79 inline const Aws::String& GetInstanceConnectEndpointArn() const{ return m_instanceConnectEndpointArn; }
80 inline bool InstanceConnectEndpointArnHasBeenSet() const { return m_instanceConnectEndpointArnHasBeenSet; }
81 inline void SetInstanceConnectEndpointArn(const Aws::String& value) { m_instanceConnectEndpointArnHasBeenSet = true; m_instanceConnectEndpointArn = value; }
82 inline void SetInstanceConnectEndpointArn(Aws::String&& value) { m_instanceConnectEndpointArnHasBeenSet = true; m_instanceConnectEndpointArn = std::move(value); }
83 inline void SetInstanceConnectEndpointArn(const char* value) { m_instanceConnectEndpointArnHasBeenSet = true; m_instanceConnectEndpointArn.assign(value); }
88
90
93 inline const Ec2InstanceConnectEndpointState& GetState() const{ return m_state; }
94 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
95 inline void SetState(const Ec2InstanceConnectEndpointState& value) { m_stateHasBeenSet = true; m_state = value; }
96 inline void SetState(Ec2InstanceConnectEndpointState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
98 inline Ec2InstanceConnectEndpoint& WithState(Ec2InstanceConnectEndpointState&& value) { SetState(std::move(value)); return *this;}
100
102
106 inline const Aws::String& GetStateMessage() const{ return m_stateMessage; }
107 inline bool StateMessageHasBeenSet() const { return m_stateMessageHasBeenSet; }
108 inline void SetStateMessage(const Aws::String& value) { m_stateMessageHasBeenSet = true; m_stateMessage = value; }
109 inline void SetStateMessage(Aws::String&& value) { m_stateMessageHasBeenSet = true; m_stateMessage = std::move(value); }
110 inline void SetStateMessage(const char* value) { m_stateMessageHasBeenSet = true; m_stateMessage.assign(value); }
111 inline Ec2InstanceConnectEndpoint& WithStateMessage(const Aws::String& value) { SetStateMessage(value); return *this;}
112 inline Ec2InstanceConnectEndpoint& WithStateMessage(Aws::String&& value) { SetStateMessage(std::move(value)); return *this;}
113 inline Ec2InstanceConnectEndpoint& WithStateMessage(const char* value) { SetStateMessage(value); return *this;}
115
117
120 inline const Aws::String& GetDnsName() const{ return m_dnsName; }
121 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
122 inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; }
123 inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); }
124 inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); }
125 inline Ec2InstanceConnectEndpoint& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;}
126 inline Ec2InstanceConnectEndpoint& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;}
127 inline Ec2InstanceConnectEndpoint& WithDnsName(const char* value) { SetDnsName(value); return *this;}
129
131
134 inline const Aws::String& GetFipsDnsName() const{ return m_fipsDnsName; }
135 inline bool FipsDnsNameHasBeenSet() const { return m_fipsDnsNameHasBeenSet; }
136 inline void SetFipsDnsName(const Aws::String& value) { m_fipsDnsNameHasBeenSet = true; m_fipsDnsName = value; }
137 inline void SetFipsDnsName(Aws::String&& value) { m_fipsDnsNameHasBeenSet = true; m_fipsDnsName = std::move(value); }
138 inline void SetFipsDnsName(const char* value) { m_fipsDnsNameHasBeenSet = true; m_fipsDnsName.assign(value); }
139 inline Ec2InstanceConnectEndpoint& WithFipsDnsName(const Aws::String& value) { SetFipsDnsName(value); return *this;}
140 inline Ec2InstanceConnectEndpoint& WithFipsDnsName(Aws::String&& value) { SetFipsDnsName(std::move(value)); return *this;}
141 inline Ec2InstanceConnectEndpoint& WithFipsDnsName(const char* value) { SetFipsDnsName(value); return *this;}
143
145
149 inline const Aws::Vector<Aws::String>& GetNetworkInterfaceIds() const{ return m_networkInterfaceIds; }
150 inline bool NetworkInterfaceIdsHasBeenSet() const { return m_networkInterfaceIdsHasBeenSet; }
151 inline void SetNetworkInterfaceIds(const Aws::Vector<Aws::String>& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds = value; }
152 inline void SetNetworkInterfaceIds(Aws::Vector<Aws::String>&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds = std::move(value); }
155 inline Ec2InstanceConnectEndpoint& AddNetworkInterfaceIds(const Aws::String& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(value); return *this; }
156 inline Ec2InstanceConnectEndpoint& AddNetworkInterfaceIds(Aws::String&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(std::move(value)); return *this; }
157 inline Ec2InstanceConnectEndpoint& AddNetworkInterfaceIds(const char* value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(value); return *this; }
159
161
164 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
165 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
166 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
167 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
168 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
169 inline Ec2InstanceConnectEndpoint& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
170 inline Ec2InstanceConnectEndpoint& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
171 inline Ec2InstanceConnectEndpoint& WithVpcId(const char* value) { SetVpcId(value); return *this;}
173
175
178 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
179 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
180 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
181 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
182 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
184 inline Ec2InstanceConnectEndpoint& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
185 inline Ec2InstanceConnectEndpoint& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
187
189
192 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
193 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
194 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
195 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
196 inline Ec2InstanceConnectEndpoint& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
197 inline Ec2InstanceConnectEndpoint& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
199
201
205 inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
206 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
207 inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
208 inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
209 inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
210 inline Ec2InstanceConnectEndpoint& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
211 inline Ec2InstanceConnectEndpoint& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
212 inline Ec2InstanceConnectEndpoint& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
214
216
224 inline bool GetPreserveClientIp() const{ return m_preserveClientIp; }
225 inline bool PreserveClientIpHasBeenSet() const { return m_preserveClientIpHasBeenSet; }
226 inline void SetPreserveClientIp(bool value) { m_preserveClientIpHasBeenSet = true; m_preserveClientIp = value; }
227 inline Ec2InstanceConnectEndpoint& WithPreserveClientIp(bool value) { SetPreserveClientIp(value); return *this;}
229
231
236 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
237 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
238 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
239 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
242 inline Ec2InstanceConnectEndpoint& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
243 inline Ec2InstanceConnectEndpoint& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
244 inline Ec2InstanceConnectEndpoint& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
246
248
251 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
252 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
253 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
254 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
255 inline Ec2InstanceConnectEndpoint& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
256 inline Ec2InstanceConnectEndpoint& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
257 inline Ec2InstanceConnectEndpoint& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
258 inline Ec2InstanceConnectEndpoint& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
260 private:
261
262 Aws::String m_ownerId;
263 bool m_ownerIdHasBeenSet = false;
264
265 Aws::String m_instanceConnectEndpointId;
266 bool m_instanceConnectEndpointIdHasBeenSet = false;
267
268 Aws::String m_instanceConnectEndpointArn;
269 bool m_instanceConnectEndpointArnHasBeenSet = false;
270
272 bool m_stateHasBeenSet = false;
273
274 Aws::String m_stateMessage;
275 bool m_stateMessageHasBeenSet = false;
276
277 Aws::String m_dnsName;
278 bool m_dnsNameHasBeenSet = false;
279
280 Aws::String m_fipsDnsName;
281 bool m_fipsDnsNameHasBeenSet = false;
282
283 Aws::Vector<Aws::String> m_networkInterfaceIds;
284 bool m_networkInterfaceIdsHasBeenSet = false;
285
286 Aws::String m_vpcId;
287 bool m_vpcIdHasBeenSet = false;
288
289 Aws::String m_availabilityZone;
290 bool m_availabilityZoneHasBeenSet = false;
291
292 Aws::Utils::DateTime m_createdAt;
293 bool m_createdAtHasBeenSet = false;
294
295 Aws::String m_subnetId;
296 bool m_subnetIdHasBeenSet = false;
297
298 bool m_preserveClientIp;
299 bool m_preserveClientIpHasBeenSet = false;
300
301 Aws::Vector<Aws::String> m_securityGroupIds;
302 bool m_securityGroupIdsHasBeenSet = false;
303
304 Aws::Vector<Tag> m_tags;
305 bool m_tagsHasBeenSet = false;
306 };
307
308} // namespace Model
309} // namespace EC2
310} // namespace Aws
Ec2InstanceConnectEndpoint & WithStateMessage(Aws::String &&value)
Ec2InstanceConnectEndpoint & WithNetworkInterfaceIds(const Aws::Vector< Aws::String > &value)
Ec2InstanceConnectEndpoint & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
Ec2InstanceConnectEndpoint & WithOwnerId(const Aws::String &value)
const Ec2InstanceConnectEndpointState & GetState() const
Ec2InstanceConnectEndpoint & WithDnsName(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
Ec2InstanceConnectEndpoint & WithVpcId(Aws::String &&value)
Ec2InstanceConnectEndpoint & AddNetworkInterfaceIds(Aws::String &&value)
Ec2InstanceConnectEndpoint & WithDnsName(const char *value)
void SetState(const Ec2InstanceConnectEndpointState &value)
Ec2InstanceConnectEndpoint & WithTags(const Aws::Vector< Tag > &value)
Ec2InstanceConnectEndpoint & WithSubnetId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Ec2InstanceConnectEndpoint & WithAvailabilityZone(const char *value)
Ec2InstanceConnectEndpoint & WithStateMessage(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Ec2InstanceConnectEndpoint & WithFipsDnsName(const char *value)
Ec2InstanceConnectEndpoint & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Ec2InstanceConnectEndpoint & WithSubnetId(const Aws::String &value)
Ec2InstanceConnectEndpoint & AddTags(const Tag &value)
Ec2InstanceConnectEndpoint & WithInstanceConnectEndpointId(const char *value)
Ec2InstanceConnectEndpoint & WithInstanceConnectEndpointId(Aws::String &&value)
Ec2InstanceConnectEndpoint & WithCreatedAt(Aws::Utils::DateTime &&value)
Ec2InstanceConnectEndpoint & AddSecurityGroupIds(Aws::String &&value)
Ec2InstanceConnectEndpoint & WithState(const Ec2InstanceConnectEndpointState &value)
Ec2InstanceConnectEndpoint & WithCreatedAt(const Aws::Utils::DateTime &value)
Ec2InstanceConnectEndpoint & WithNetworkInterfaceIds(Aws::Vector< Aws::String > &&value)
Ec2InstanceConnectEndpoint & AddNetworkInterfaceIds(const Aws::String &value)
void SetNetworkInterfaceIds(Aws::Vector< Aws::String > &&value)
Ec2InstanceConnectEndpoint & WithVpcId(const char *value)
Ec2InstanceConnectEndpoint & WithVpcId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
Ec2InstanceConnectEndpoint & WithSubnetId(const char *value)
Ec2InstanceConnectEndpoint & WithAvailabilityZone(const Aws::String &value)
Ec2InstanceConnectEndpoint & WithOwnerId(const char *value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
Ec2InstanceConnectEndpoint & WithAvailabilityZone(Aws::String &&value)
Ec2InstanceConnectEndpoint & WithState(Ec2InstanceConnectEndpointState &&value)
void SetInstanceConnectEndpointArn(const Aws::String &value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Ec2InstanceConnectEndpoint & WithDnsName(const Aws::String &value)
Ec2InstanceConnectEndpoint & WithStateMessage(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Ec2InstanceConnectEndpoint & AddNetworkInterfaceIds(const char *value)
void SetState(Ec2InstanceConnectEndpointState &&value)
Ec2InstanceConnectEndpoint & WithInstanceConnectEndpointArn(const Aws::String &value)
Ec2InstanceConnectEndpoint & WithPreserveClientIp(bool value)
Ec2InstanceConnectEndpoint & AddTags(Tag &&value)
Ec2InstanceConnectEndpoint & WithInstanceConnectEndpointArn(Aws::String &&value)
Ec2InstanceConnectEndpoint & WithFipsDnsName(const Aws::String &value)
Ec2InstanceConnectEndpoint & WithFipsDnsName(Aws::String &&value)
Ec2InstanceConnectEndpoint & WithTags(Aws::Vector< Tag > &&value)
AWS_EC2_API Ec2InstanceConnectEndpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API Ec2InstanceConnectEndpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetNetworkInterfaceIds(const Aws::Vector< Aws::String > &value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetInstanceConnectEndpointId(const Aws::String &value)
Ec2InstanceConnectEndpoint & WithInstanceConnectEndpointId(const Aws::String &value)
Ec2InstanceConnectEndpoint & AddSecurityGroupIds(const char *value)
const Aws::Vector< Aws::String > & GetNetworkInterfaceIds() const
Ec2InstanceConnectEndpoint & WithOwnerId(Aws::String &&value)
Ec2InstanceConnectEndpoint & WithInstanceConnectEndpointArn(const char *value)
Ec2InstanceConnectEndpoint & AddSecurityGroupIds(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream