AWS SDK for C++  1.9.126
AWS SDK for C++
NetworkInterfaceAttachment.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::Utils::DateTime& GetAttachTime() const{ return m_attachTime; }
48 
52  inline bool AttachTimeHasBeenSet() const { return m_attachTimeHasBeenSet; }
53 
57  inline void SetAttachTime(const Aws::Utils::DateTime& value) { m_attachTimeHasBeenSet = true; m_attachTime = value; }
58 
62  inline void SetAttachTime(Aws::Utils::DateTime&& value) { m_attachTimeHasBeenSet = true; m_attachTime = std::move(value); }
63 
67  inline NetworkInterfaceAttachment& WithAttachTime(const Aws::Utils::DateTime& value) { SetAttachTime(value); return *this;}
68 
72  inline NetworkInterfaceAttachment& WithAttachTime(Aws::Utils::DateTime&& value) { SetAttachTime(std::move(value)); return *this;}
73 
74 
78  inline const Aws::String& GetAttachmentId() const{ return m_attachmentId; }
79 
83  inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
84 
88  inline void SetAttachmentId(const Aws::String& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = value; }
89 
93  inline void SetAttachmentId(Aws::String&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::move(value); }
94 
98  inline void SetAttachmentId(const char* value) { m_attachmentIdHasBeenSet = true; m_attachmentId.assign(value); }
99 
103  inline NetworkInterfaceAttachment& WithAttachmentId(const Aws::String& value) { SetAttachmentId(value); return *this;}
104 
108  inline NetworkInterfaceAttachment& WithAttachmentId(Aws::String&& value) { SetAttachmentId(std::move(value)); return *this;}
109 
113  inline NetworkInterfaceAttachment& WithAttachmentId(const char* value) { SetAttachmentId(value); return *this;}
114 
115 
120  inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
121 
126  inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
127 
132  inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
133 
138  inline NetworkInterfaceAttachment& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
139 
140 
144  inline int GetDeviceIndex() const{ return m_deviceIndex; }
145 
149  inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
150 
154  inline void SetDeviceIndex(int value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; }
155 
159  inline NetworkInterfaceAttachment& WithDeviceIndex(int value) { SetDeviceIndex(value); return *this;}
160 
161 
165  inline int GetNetworkCardIndex() const{ return m_networkCardIndex; }
166 
170  inline bool NetworkCardIndexHasBeenSet() const { return m_networkCardIndexHasBeenSet; }
171 
175  inline void SetNetworkCardIndex(int value) { m_networkCardIndexHasBeenSet = true; m_networkCardIndex = value; }
176 
180  inline NetworkInterfaceAttachment& WithNetworkCardIndex(int value) { SetNetworkCardIndex(value); return *this;}
181 
182 
186  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
187 
191  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
192 
196  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
197 
201  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
202 
206  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
207 
211  inline NetworkInterfaceAttachment& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
212 
216  inline NetworkInterfaceAttachment& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
217 
221  inline NetworkInterfaceAttachment& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
222 
223 
227  inline const Aws::String& GetInstanceOwnerId() const{ return m_instanceOwnerId; }
228 
232  inline bool InstanceOwnerIdHasBeenSet() const { return m_instanceOwnerIdHasBeenSet; }
233 
237  inline void SetInstanceOwnerId(const Aws::String& value) { m_instanceOwnerIdHasBeenSet = true; m_instanceOwnerId = value; }
238 
242  inline void SetInstanceOwnerId(Aws::String&& value) { m_instanceOwnerIdHasBeenSet = true; m_instanceOwnerId = std::move(value); }
243 
247  inline void SetInstanceOwnerId(const char* value) { m_instanceOwnerIdHasBeenSet = true; m_instanceOwnerId.assign(value); }
248 
252  inline NetworkInterfaceAttachment& WithInstanceOwnerId(const Aws::String& value) { SetInstanceOwnerId(value); return *this;}
253 
257  inline NetworkInterfaceAttachment& WithInstanceOwnerId(Aws::String&& value) { SetInstanceOwnerId(std::move(value)); return *this;}
258 
262  inline NetworkInterfaceAttachment& WithInstanceOwnerId(const char* value) { SetInstanceOwnerId(value); return *this;}
263 
264 
268  inline const AttachmentStatus& GetStatus() const{ return m_status; }
269 
273  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
274 
278  inline void SetStatus(const AttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
279 
283  inline void SetStatus(AttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
284 
288  inline NetworkInterfaceAttachment& WithStatus(const AttachmentStatus& value) { SetStatus(value); return *this;}
289 
293  inline NetworkInterfaceAttachment& WithStatus(AttachmentStatus&& value) { SetStatus(std::move(value)); return *this;}
294 
295  private:
296 
297  Aws::Utils::DateTime m_attachTime;
298  bool m_attachTimeHasBeenSet;
299 
300  Aws::String m_attachmentId;
301  bool m_attachmentIdHasBeenSet;
302 
303  bool m_deleteOnTermination;
304  bool m_deleteOnTerminationHasBeenSet;
305 
306  int m_deviceIndex;
307  bool m_deviceIndexHasBeenSet;
308 
309  int m_networkCardIndex;
310  bool m_networkCardIndexHasBeenSet;
311 
312  Aws::String m_instanceId;
313  bool m_instanceIdHasBeenSet;
314 
315  Aws::String m_instanceOwnerId;
316  bool m_instanceOwnerIdHasBeenSet;
317 
318  AttachmentStatus m_status;
319  bool m_statusHasBeenSet;
320  };
321 
322 } // namespace Model
323 } // namespace EC2
324 } // namespace Aws
Aws::EC2::Model::NetworkInterfaceAttachment::GetStatus
const AttachmentStatus & GetStatus() const
Definition: NetworkInterfaceAttachment.h:268
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::NetworkInterfaceAttachment::WithDeleteOnTermination
NetworkInterfaceAttachment & WithDeleteOnTermination(bool value)
Definition: NetworkInterfaceAttachment.h:138
Aws::EC2::Model::NetworkInterfaceAttachment::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::NetworkInterfaceAttachment::WithAttachmentId
NetworkInterfaceAttachment & WithAttachmentId(const char *value)
Definition: NetworkInterfaceAttachment.h:113
Aws::EC2::Model::NetworkInterfaceAttachment::GetInstanceOwnerId
const Aws::String & GetInstanceOwnerId() const
Definition: NetworkInterfaceAttachment.h:227
Aws::EC2::Model::NetworkInterfaceAttachment::SetDeleteOnTermination
void SetDeleteOnTermination(bool value)
Definition: NetworkInterfaceAttachment.h:132
Aws::EC2::Model::AttachmentStatus
AttachmentStatus
Definition: AttachmentStatus.h:17
Aws::EC2::Model::NetworkInterfaceAttachment::WithDeviceIndex
NetworkInterfaceAttachment & WithDeviceIndex(int value)
Definition: NetworkInterfaceAttachment.h:159
Aws::EC2::Model::NetworkInterfaceAttachment::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: NetworkInterfaceAttachment.h:273
Aws::EC2::Model::NetworkInterfaceAttachment::DeviceIndexHasBeenSet
bool DeviceIndexHasBeenSet() const
Definition: NetworkInterfaceAttachment.h:149
Aws::EC2::Model::NetworkInterfaceAttachment::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: NetworkInterfaceAttachment.h:191
Aws::EC2::Model::NetworkInterfaceAttachment::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: NetworkInterfaceAttachment.h:196
Aws::EC2::Model::NetworkInterfaceAttachment::AttachTimeHasBeenSet
bool AttachTimeHasBeenSet() const
Definition: NetworkInterfaceAttachment.h:52
Aws::EC2::Model::NetworkInterfaceAttachment::WithAttachTime
NetworkInterfaceAttachment & WithAttachTime(Aws::Utils::DateTime &&value)
Definition: NetworkInterfaceAttachment.h:72
Aws::EC2::Model::NetworkInterfaceAttachment::WithStatus
NetworkInterfaceAttachment & WithStatus(AttachmentStatus &&value)
Definition: NetworkInterfaceAttachment.h:293
DateTime.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::NetworkInterfaceAttachment::SetNetworkCardIndex
void SetNetworkCardIndex(int value)
Definition: NetworkInterfaceAttachment.h:175
Aws::EC2::Model::NetworkInterfaceAttachment::WithInstanceOwnerId
NetworkInterfaceAttachment & WithInstanceOwnerId(Aws::String &&value)
Definition: NetworkInterfaceAttachment.h:257
AWSStreamFwd.h
Aws::EC2::Model::NetworkInterfaceAttachment::SetInstanceId
void SetInstanceId(const char *value)
Definition: NetworkInterfaceAttachment.h:206
Aws::EC2::Model::NetworkInterfaceAttachment::NetworkInterfaceAttachment
NetworkInterfaceAttachment()
Aws::EC2::Model::NetworkInterfaceAttachment::SetAttachTime
void SetAttachTime(const Aws::Utils::DateTime &value)
Definition: NetworkInterfaceAttachment.h:57
Aws::EC2::Model::NetworkInterfaceAttachment::SetAttachmentId
void SetAttachmentId(Aws::String &&value)
Definition: NetworkInterfaceAttachment.h:93
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::NetworkInterfaceAttachment::SetInstanceOwnerId
void SetInstanceOwnerId(Aws::String &&value)
Definition: NetworkInterfaceAttachment.h:242
Aws::EC2::Model::NetworkInterfaceAttachment::WithInstanceOwnerId
NetworkInterfaceAttachment & WithInstanceOwnerId(const Aws::String &value)
Definition: NetworkInterfaceAttachment.h:252
Aws::EC2::Model::NetworkInterfaceAttachment::GetDeviceIndex
int GetDeviceIndex() const
Definition: NetworkInterfaceAttachment.h:144
AttachmentStatus.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::NetworkInterfaceAttachment::GetNetworkCardIndex
int GetNetworkCardIndex() const
Definition: NetworkInterfaceAttachment.h:165
Aws::EC2::Model::NetworkInterfaceAttachment::WithInstanceOwnerId
NetworkInterfaceAttachment & WithInstanceOwnerId(const char *value)
Definition: NetworkInterfaceAttachment.h:262
Aws::EC2::Model::NetworkInterfaceAttachment::SetStatus
void SetStatus(const AttachmentStatus &value)
Definition: NetworkInterfaceAttachment.h:278
Aws::EC2::Model::NetworkInterfaceAttachment::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: NetworkInterfaceAttachment.h:201
Aws::EC2::Model::NetworkInterfaceAttachment::WithInstanceId
NetworkInterfaceAttachment & WithInstanceId(Aws::String &&value)
Definition: NetworkInterfaceAttachment.h:216
Aws::EC2::Model::NetworkInterfaceAttachment::SetStatus
void SetStatus(AttachmentStatus &&value)
Definition: NetworkInterfaceAttachment.h:283
Aws::EC2::Model::NetworkInterfaceAttachment::WithNetworkCardIndex
NetworkInterfaceAttachment & WithNetworkCardIndex(int value)
Definition: NetworkInterfaceAttachment.h:180
Aws::EC2::Model::NetworkInterfaceAttachment::NetworkCardIndexHasBeenSet
bool NetworkCardIndexHasBeenSet() const
Definition: NetworkInterfaceAttachment.h:170
Aws::EC2::Model::NetworkInterfaceAttachment::WithAttachmentId
NetworkInterfaceAttachment & WithAttachmentId(Aws::String &&value)
Definition: NetworkInterfaceAttachment.h:108
Aws::EC2::Model::NetworkInterfaceAttachment::SetAttachmentId
void SetAttachmentId(const char *value)
Definition: NetworkInterfaceAttachment.h:98
AWSString.h
Aws::EC2::Model::NetworkInterfaceAttachment::SetAttachTime
void SetAttachTime(Aws::Utils::DateTime &&value)
Definition: NetworkInterfaceAttachment.h:62
Aws::EC2::Model::NetworkInterfaceAttachment::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::NetworkInterfaceAttachment::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: NetworkInterfaceAttachment.h:186
Aws::EC2::Model::NetworkInterfaceAttachment::WithAttachmentId
NetworkInterfaceAttachment & WithAttachmentId(const Aws::String &value)
Definition: NetworkInterfaceAttachment.h:103
Aws::EC2::Model::NetworkInterfaceAttachment::SetAttachmentId
void SetAttachmentId(const Aws::String &value)
Definition: NetworkInterfaceAttachment.h:88
Aws::EC2::Model::NetworkInterfaceAttachment::DeleteOnTerminationHasBeenSet
bool DeleteOnTerminationHasBeenSet() const
Definition: NetworkInterfaceAttachment.h:126
Aws::EC2::Model::NetworkInterfaceAttachment
Definition: NetworkInterfaceAttachment.h:34
Aws::EC2::Model::NetworkInterfaceAttachment::AttachmentIdHasBeenSet
bool AttachmentIdHasBeenSet() const
Definition: NetworkInterfaceAttachment.h:83
Aws::EC2::Model::NetworkInterfaceAttachment::operator=
NetworkInterfaceAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::NetworkInterfaceAttachment::SetInstanceOwnerId
void SetInstanceOwnerId(const char *value)
Definition: NetworkInterfaceAttachment.h:247
Aws::EC2::Model::NetworkInterfaceAttachment::WithInstanceId
NetworkInterfaceAttachment & WithInstanceId(const Aws::String &value)
Definition: NetworkInterfaceAttachment.h:211
Aws::EC2::Model::NetworkInterfaceAttachment::InstanceOwnerIdHasBeenSet
bool InstanceOwnerIdHasBeenSet() const
Definition: NetworkInterfaceAttachment.h:232
Aws::EC2::Model::NetworkInterfaceAttachment::SetDeviceIndex
void SetDeviceIndex(int value)
Definition: NetworkInterfaceAttachment.h:154
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::NetworkInterfaceAttachment::GetAttachTime
const Aws::Utils::DateTime & GetAttachTime() const
Definition: NetworkInterfaceAttachment.h:47
Aws::EC2::Model::NetworkInterfaceAttachment::GetAttachmentId
const Aws::String & GetAttachmentId() const
Definition: NetworkInterfaceAttachment.h:78
Aws::EC2::Model::NetworkInterfaceAttachment::SetInstanceOwnerId
void SetInstanceOwnerId(const Aws::String &value)
Definition: NetworkInterfaceAttachment.h:237
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::NetworkInterfaceAttachment::WithStatus
NetworkInterfaceAttachment & WithStatus(const AttachmentStatus &value)
Definition: NetworkInterfaceAttachment.h:288
Aws::EC2::Model::NetworkInterfaceAttachment::WithInstanceId
NetworkInterfaceAttachment & WithInstanceId(const char *value)
Definition: NetworkInterfaceAttachment.h:221
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::NetworkInterfaceAttachment::WithAttachTime
NetworkInterfaceAttachment & WithAttachTime(const Aws::Utils::DateTime &value)
Definition: NetworkInterfaceAttachment.h:67
Aws::EC2::Model::NetworkInterfaceAttachment::GetDeleteOnTermination
bool GetDeleteOnTermination() const
Definition: NetworkInterfaceAttachment.h:120
EC2_EXPORTS.h
Aws::EC2::Model::NetworkInterfaceAttachment::NetworkInterfaceAttachment
NetworkInterfaceAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)