7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/AttachmentStatus.h>
12#include <aws/ec2/model/InstanceAttachmentEnaSrdSpecification.h>
45 template <
typename AttachTimeT = Aws::Utils::DateTime>
47 m_attachTimeHasBeenSet =
true;
48 m_attachTime = std::forward<AttachTimeT>(value);
50 template <
typename AttachTimeT = Aws::Utils::DateTime>
63 template <
typename AttachmentIdT = Aws::String>
65 m_attachmentIdHasBeenSet =
true;
66 m_attachmentId = std::forward<AttachmentIdT>(value);
68 template <
typename AttachmentIdT = Aws::String>
83 m_deleteOnTerminationHasBeenSet =
true;
84 m_deleteOnTermination = value;
100 m_deviceIndexHasBeenSet =
true;
101 m_deviceIndex = value;
116 m_statusHasBeenSet =
true;
132 m_networkCardIndexHasBeenSet =
true;
133 m_networkCardIndex = value;
148 template <
typename EnaSrdSpecificationT = InstanceAttachmentEnaSrdSpecification>
150 m_enaSrdSpecificationHasBeenSet =
true;
151 m_enaSrdSpecification = std::forward<EnaSrdSpecificationT>(value);
153 template <
typename EnaSrdSpecificationT = InstanceAttachmentEnaSrdSpecification>
167 m_enaQueueCountHasBeenSet =
true;
168 m_enaQueueCount = value;
180 bool m_deleteOnTermination{
false};
182 int m_deviceIndex{0};
186 int m_networkCardIndex{0};
188 InstanceAttachmentEnaSrdSpecification m_enaSrdSpecification;
190 int m_enaQueueCount{0};
191 bool m_attachTimeHasBeenSet =
false;
192 bool m_attachmentIdHasBeenSet =
false;
193 bool m_deleteOnTerminationHasBeenSet =
false;
194 bool m_deviceIndexHasBeenSet =
false;
195 bool m_statusHasBeenSet =
false;
196 bool m_networkCardIndexHasBeenSet =
false;
197 bool m_enaSrdSpecificationHasBeenSet =
false;
198 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