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/InstanceAttachmentEnaSrdSpecification.h>
51 template<
typename AttachTimeT = Aws::Utils::DateTime>
52 void SetAttachTime(AttachTimeT&& value) { m_attachTimeHasBeenSet =
true; m_attachTime = std::forward<AttachTimeT>(value); }
53 template<
typename AttachTimeT = Aws::Utils::DateTime>
63 template<
typename AttachmentIdT = Aws::String>
64 void SetAttachmentId(AttachmentIdT&& value) { m_attachmentIdHasBeenSet =
true; m_attachmentId = std::forward<AttachmentIdT>(value); }
65 template<
typename AttachmentIdT = Aws::String>
76 inline void SetDeleteOnTermination(
bool value) { m_deleteOnTerminationHasBeenSet =
true; m_deleteOnTermination = value; }
87 inline void SetDeviceIndex(
int value) { m_deviceIndexHasBeenSet =
true; m_deviceIndex = value; }
107 inline void SetNetworkCardIndex(
int value) { m_networkCardIndexHasBeenSet =
true; m_networkCardIndex = value; }
118 template<
typename EnaSrdSpecificationT = InstanceAttachmentEnaSrdSpecification>
119 void SetEnaSrdSpecification(EnaSrdSpecificationT&& value) { m_enaSrdSpecificationHasBeenSet =
true; m_enaSrdSpecification = std::forward<EnaSrdSpecificationT>(value); }
120 template<
typename EnaSrdSpecificationT = InstanceAttachmentEnaSrdSpecification>
130 inline void SetEnaQueueCount(
int value) { m_enaQueueCountHasBeenSet =
true; m_enaQueueCount = value; }
136 bool m_attachTimeHasBeenSet =
false;
139 bool m_attachmentIdHasBeenSet =
false;
141 bool m_deleteOnTermination{
false};
142 bool m_deleteOnTerminationHasBeenSet =
false;
144 int m_deviceIndex{0};
145 bool m_deviceIndexHasBeenSet =
false;
148 bool m_statusHasBeenSet =
false;
150 int m_networkCardIndex{0};
151 bool m_networkCardIndexHasBeenSet =
false;
153 InstanceAttachmentEnaSrdSpecification m_enaSrdSpecification;
154 bool m_enaSrdSpecificationHasBeenSet =
false;
156 int m_enaQueueCount{0};
157 bool m_enaQueueCountHasBeenSet =
false;
void SetAttachmentId(AttachmentIdT &&value)
void SetEnaSrdSpecification(EnaSrdSpecificationT &&value)
const InstanceAttachmentEnaSrdSpecification & GetEnaSrdSpecification() const
int GetEnaQueueCount() const
void SetStatus(AttachmentStatus value)
bool EnaQueueCountHasBeenSet() const
void SetEnaQueueCount(int value)
InstanceNetworkInterfaceAttachment & WithAttachTime(AttachTimeT &&value)
AWS_EC2_API InstanceNetworkInterfaceAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API InstanceNetworkInterfaceAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetAttachmentId() const
AWS_EC2_API InstanceNetworkInterfaceAttachment()=default
bool GetDeleteOnTermination() const
bool StatusHasBeenSet() const
bool AttachmentIdHasBeenSet() const
int GetDeviceIndex() const
InstanceNetworkInterfaceAttachment & WithAttachmentId(AttachmentIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
int GetNetworkCardIndex() const
void SetAttachTime(AttachTimeT &&value)
InstanceNetworkInterfaceAttachment & WithEnaSrdSpecification(EnaSrdSpecificationT &&value)
bool DeleteOnTerminationHasBeenSet() const
InstanceNetworkInterfaceAttachment & WithDeviceIndex(int value)
void SetDeleteOnTermination(bool value)
const Aws::Utils::DateTime & GetAttachTime() const
InstanceNetworkInterfaceAttachment & WithNetworkCardIndex(int value)
bool DeviceIndexHasBeenSet() const
InstanceNetworkInterfaceAttachment & WithEnaQueueCount(int value)
InstanceNetworkInterfaceAttachment & WithDeleteOnTermination(bool value)
InstanceNetworkInterfaceAttachment & WithStatus(AttachmentStatus value)
bool AttachTimeHasBeenSet() const
void SetNetworkCardIndex(int value)
AttachmentStatus GetStatus() const
bool EnaSrdSpecificationHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool NetworkCardIndexHasBeenSet() const
void SetDeviceIndex(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream