AWS SDK for C++  1.9.69
AWS SDK for C++
InstanceNetworkInterfaceAttachment.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 InstanceNetworkInterfaceAttachment& WithAttachTime(const Aws::Utils::DateTime& value) { SetAttachTime(value); return *this;}
68 
72  inline InstanceNetworkInterfaceAttachment& 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 InstanceNetworkInterfaceAttachment& WithAttachmentId(const Aws::String& value) { SetAttachmentId(value); return *this;}
104 
108  inline InstanceNetworkInterfaceAttachment& WithAttachmentId(Aws::String&& value) { SetAttachmentId(std::move(value)); return *this;}
109 
113  inline InstanceNetworkInterfaceAttachment& 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 InstanceNetworkInterfaceAttachment& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
139 
140 
145  inline int GetDeviceIndex() const{ return m_deviceIndex; }
146 
151  inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
152 
157  inline void SetDeviceIndex(int value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; }
158 
163  inline InstanceNetworkInterfaceAttachment& WithDeviceIndex(int value) { SetDeviceIndex(value); return *this;}
164 
165 
169  inline const AttachmentStatus& GetStatus() const{ return m_status; }
170 
174  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
175 
179  inline void SetStatus(const AttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
180 
184  inline void SetStatus(AttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
185 
189  inline InstanceNetworkInterfaceAttachment& WithStatus(const AttachmentStatus& value) { SetStatus(value); return *this;}
190 
194  inline InstanceNetworkInterfaceAttachment& WithStatus(AttachmentStatus&& value) { SetStatus(std::move(value)); return *this;}
195 
196 
200  inline int GetNetworkCardIndex() const{ return m_networkCardIndex; }
201 
205  inline bool NetworkCardIndexHasBeenSet() const { return m_networkCardIndexHasBeenSet; }
206 
210  inline void SetNetworkCardIndex(int value) { m_networkCardIndexHasBeenSet = true; m_networkCardIndex = value; }
211 
215  inline InstanceNetworkInterfaceAttachment& WithNetworkCardIndex(int value) { SetNetworkCardIndex(value); return *this;}
216 
217  private:
218 
219  Aws::Utils::DateTime m_attachTime;
220  bool m_attachTimeHasBeenSet;
221 
222  Aws::String m_attachmentId;
223  bool m_attachmentIdHasBeenSet;
224 
225  bool m_deleteOnTermination;
226  bool m_deleteOnTerminationHasBeenSet;
227 
228  int m_deviceIndex;
229  bool m_deviceIndexHasBeenSet;
230 
231  AttachmentStatus m_status;
232  bool m_statusHasBeenSet;
233 
234  int m_networkCardIndex;
235  bool m_networkCardIndexHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace EC2
240 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::SetNetworkCardIndex
void SetNetworkCardIndex(int value)
Definition: InstanceNetworkInterfaceAttachment.h:210
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::GetAttachTime
const Aws::Utils::DateTime & GetAttachTime() const
Definition: InstanceNetworkInterfaceAttachment.h:47
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::SetAttachmentId
void SetAttachmentId(const Aws::String &value)
Definition: InstanceNetworkInterfaceAttachment.h:88
Aws::EC2::Model::AttachmentStatus
AttachmentStatus
Definition: AttachmentStatus.h:17
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::AttachmentIdHasBeenSet
bool AttachmentIdHasBeenSet() const
Definition: InstanceNetworkInterfaceAttachment.h:83
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::WithDeleteOnTermination
InstanceNetworkInterfaceAttachment & WithDeleteOnTermination(bool value)
Definition: InstanceNetworkInterfaceAttachment.h:138
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::WithAttachmentId
InstanceNetworkInterfaceAttachment & WithAttachmentId(Aws::String &&value)
Definition: InstanceNetworkInterfaceAttachment.h:108
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::SetStatus
void SetStatus(AttachmentStatus &&value)
Definition: InstanceNetworkInterfaceAttachment.h:184
DateTime.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::SetStatus
void SetStatus(const AttachmentStatus &value)
Definition: InstanceNetworkInterfaceAttachment.h:179
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::WithAttachmentId
InstanceNetworkInterfaceAttachment & WithAttachmentId(const char *value)
Definition: InstanceNetworkInterfaceAttachment.h:113
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::InstanceNetworkInterfaceAttachment
InstanceNetworkInterfaceAttachment()
AWSStreamFwd.h
Aws::EC2::Model::InstanceNetworkInterfaceAttachment
Definition: InstanceNetworkInterfaceAttachment.h:34
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::NetworkCardIndexHasBeenSet
bool NetworkCardIndexHasBeenSet() const
Definition: InstanceNetworkInterfaceAttachment.h:205
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::GetDeviceIndex
int GetDeviceIndex() const
Definition: InstanceNetworkInterfaceAttachment.h:145
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::AttachTimeHasBeenSet
bool AttachTimeHasBeenSet() const
Definition: InstanceNetworkInterfaceAttachment.h:52
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::WithStatus
InstanceNetworkInterfaceAttachment & WithStatus(const AttachmentStatus &value)
Definition: InstanceNetworkInterfaceAttachment.h:189
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::WithNetworkCardIndex
InstanceNetworkInterfaceAttachment & WithNetworkCardIndex(int value)
Definition: InstanceNetworkInterfaceAttachment.h:215
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::WithDeviceIndex
InstanceNetworkInterfaceAttachment & WithDeviceIndex(int value)
Definition: InstanceNetworkInterfaceAttachment.h:163
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::GetDeleteOnTermination
bool GetDeleteOnTermination() const
Definition: InstanceNetworkInterfaceAttachment.h:120
AttachmentStatus.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::WithAttachmentId
InstanceNetworkInterfaceAttachment & WithAttachmentId(const Aws::String &value)
Definition: InstanceNetworkInterfaceAttachment.h:103
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::SetAttachTime
void SetAttachTime(const Aws::Utils::DateTime &value)
Definition: InstanceNetworkInterfaceAttachment.h:57
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::SetAttachmentId
void SetAttachmentId(Aws::String &&value)
Definition: InstanceNetworkInterfaceAttachment.h:93
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::WithAttachTime
InstanceNetworkInterfaceAttachment & WithAttachTime(Aws::Utils::DateTime &&value)
Definition: InstanceNetworkInterfaceAttachment.h:72
AWSString.h
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::operator=
InstanceNetworkInterfaceAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::GetAttachmentId
const Aws::String & GetAttachmentId() const
Definition: InstanceNetworkInterfaceAttachment.h:78
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::DeviceIndexHasBeenSet
bool DeviceIndexHasBeenSet() const
Definition: InstanceNetworkInterfaceAttachment.h:151
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::SetAttachmentId
void SetAttachmentId(const char *value)
Definition: InstanceNetworkInterfaceAttachment.h:98
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::SetAttachTime
void SetAttachTime(Aws::Utils::DateTime &&value)
Definition: InstanceNetworkInterfaceAttachment.h:62
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: InstanceNetworkInterfaceAttachment.h:174
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::DeleteOnTerminationHasBeenSet
bool DeleteOnTerminationHasBeenSet() const
Definition: InstanceNetworkInterfaceAttachment.h:126
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::InstanceNetworkInterfaceAttachment
InstanceNetworkInterfaceAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::WithStatus
InstanceNetworkInterfaceAttachment & WithStatus(AttachmentStatus &&value)
Definition: InstanceNetworkInterfaceAttachment.h:194
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::SetDeleteOnTermination
void SetDeleteOnTermination(bool value)
Definition: InstanceNetworkInterfaceAttachment.h:132
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::GetStatus
const AttachmentStatus & GetStatus() const
Definition: InstanceNetworkInterfaceAttachment.h:169
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::WithAttachTime
InstanceNetworkInterfaceAttachment & WithAttachTime(const Aws::Utils::DateTime &value)
Definition: InstanceNetworkInterfaceAttachment.h:67
EC2_EXPORTS.h
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::SetDeviceIndex
void SetDeviceIndex(int value)
Definition: InstanceNetworkInterfaceAttachment.h:157
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::GetNetworkCardIndex
int GetNetworkCardIndex() const
Definition: InstanceNetworkInterfaceAttachment.h:200
Aws::EC2::Model::InstanceNetworkInterfaceAttachment::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const