7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/AttachmentStatus.h>
12#include <aws/ec2/model/AttachmentEnaSrdSpecification.h>
65 inline void SetAttachmentId(
const char* value) { m_attachmentIdHasBeenSet =
true; m_attachmentId.assign(value); }
78 inline void SetDeleteOnTermination(
bool value) { m_deleteOnTerminationHasBeenSet =
true; m_deleteOnTermination = value; }
88 inline void SetDeviceIndex(
int value) { m_deviceIndexHasBeenSet =
true; m_deviceIndex = value; }
98 inline void SetNetworkCardIndex(
int value) { m_networkCardIndexHasBeenSet =
true; m_networkCardIndex = value; }
110 inline void SetInstanceId(
const char* value) { m_instanceIdHasBeenSet =
true; m_instanceId.assign(value); }
124 inline void SetInstanceOwnerId(
const char* value) { m_instanceOwnerIdHasBeenSet =
true; m_instanceOwnerId.assign(value); }
157 bool m_attachTimeHasBeenSet =
false;
160 bool m_attachmentIdHasBeenSet =
false;
162 bool m_deleteOnTermination;
163 bool m_deleteOnTerminationHasBeenSet =
false;
166 bool m_deviceIndexHasBeenSet =
false;
168 int m_networkCardIndex;
169 bool m_networkCardIndexHasBeenSet =
false;
172 bool m_instanceIdHasBeenSet =
false;
175 bool m_instanceOwnerIdHasBeenSet =
false;
178 bool m_statusHasBeenSet =
false;
181 bool m_enaSrdSpecificationHasBeenSet =
false;
AWS_EC2_API NetworkInterfaceAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkInterfaceAttachment & WithInstanceId(const char *value)
bool EnaSrdSpecificationHasBeenSet() const
void SetDeleteOnTermination(bool value)
bool AttachmentIdHasBeenSet() const
void SetAttachmentId(Aws::String &&value)
NetworkInterfaceAttachment & WithStatus(const AttachmentStatus &value)
void SetInstanceId(const char *value)
void SetInstanceId(const Aws::String &value)
bool AttachTimeHasBeenSet() const
int GetDeviceIndex() const
void SetInstanceOwnerId(const char *value)
bool InstanceOwnerIdHasBeenSet() const
int GetNetworkCardIndex() const
NetworkInterfaceAttachment & WithStatus(AttachmentStatus &&value)
NetworkInterfaceAttachment & WithInstanceOwnerId(const Aws::String &value)
NetworkInterfaceAttachment & WithDeviceIndex(int value)
NetworkInterfaceAttachment & WithInstanceOwnerId(Aws::String &&value)
void SetInstanceId(Aws::String &&value)
const Aws::Utils::DateTime & GetAttachTime() const
const Aws::String & GetInstanceOwnerId() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetEnaSrdSpecification(AttachmentEnaSrdSpecification &&value)
void SetEnaSrdSpecification(const AttachmentEnaSrdSpecification &value)
NetworkInterfaceAttachment & WithAttachTime(const Aws::Utils::DateTime &value)
void SetAttachTime(Aws::Utils::DateTime &&value)
NetworkInterfaceAttachment & WithInstanceId(Aws::String &&value)
const AttachmentEnaSrdSpecification & GetEnaSrdSpecification() const
NetworkInterfaceAttachment & WithDeleteOnTermination(bool value)
NetworkInterfaceAttachment & WithInstanceId(const Aws::String &value)
bool DeleteOnTerminationHasBeenSet() const
NetworkInterfaceAttachment & WithEnaSrdSpecification(AttachmentEnaSrdSpecification &&value)
NetworkInterfaceAttachment & WithNetworkCardIndex(int value)
void SetAttachmentId(const Aws::String &value)
AWS_EC2_API NetworkInterfaceAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkInterfaceAttachment & WithAttachmentId(const Aws::String &value)
NetworkInterfaceAttachment & WithAttachmentId(Aws::String &&value)
void SetStatus(const AttachmentStatus &value)
bool StatusHasBeenSet() const
void SetNetworkCardIndex(int value)
void SetAttachTime(const Aws::Utils::DateTime &value)
bool InstanceIdHasBeenSet() const
NetworkInterfaceAttachment & WithAttachTime(Aws::Utils::DateTime &&value)
void SetInstanceOwnerId(const Aws::String &value)
const Aws::String & GetAttachmentId() const
bool GetDeleteOnTermination() const
void SetInstanceOwnerId(Aws::String &&value)
bool DeviceIndexHasBeenSet() const
const AttachmentStatus & GetStatus() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDeviceIndex(int value)
const Aws::String & GetInstanceId() const
NetworkInterfaceAttachment & WithInstanceOwnerId(const char *value)
void SetStatus(AttachmentStatus &&value)
bool NetworkCardIndexHasBeenSet() const
NetworkInterfaceAttachment & WithAttachmentId(const char *value)
NetworkInterfaceAttachment & WithEnaSrdSpecification(const AttachmentEnaSrdSpecification &value)
AWS_EC2_API NetworkInterfaceAttachment()
void SetAttachmentId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream