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/AttachmentEnaSrdSpecification.h>
12#include <aws/ec2/model/AttachmentStatus.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;
99 m_deviceIndexHasBeenSet =
true;
100 m_deviceIndex = value;
115 m_networkCardIndexHasBeenSet =
true;
116 m_networkCardIndex = value;
130 template <
typename InstanceIdT = Aws::String>
132 m_instanceIdHasBeenSet =
true;
133 m_instanceId = std::forward<InstanceIdT>(value);
135 template <
typename InstanceIdT = Aws::String>
148 template <
typename InstanceOwnerIdT = Aws::String>
150 m_instanceOwnerIdHasBeenSet =
true;
151 m_instanceOwnerId = std::forward<InstanceOwnerIdT>(value);
153 template <
typename InstanceOwnerIdT = Aws::String>
167 m_statusHasBeenSet =
true;
183 template <
typename EnaSrdSpecificationT = AttachmentEnaSrdSpecification>
185 m_enaSrdSpecificationHasBeenSet =
true;
186 m_enaSrdSpecification = std::forward<EnaSrdSpecificationT>(value);
188 template <
typename EnaSrdSpecificationT = AttachmentEnaSrdSpecification>
202 m_enaQueueCountHasBeenSet =
true;
203 m_enaQueueCount = value;
215 bool m_deleteOnTermination{
false};
217 int m_deviceIndex{0};
219 int m_networkCardIndex{0};
227 AttachmentEnaSrdSpecification m_enaSrdSpecification;
229 int m_enaQueueCount{0};
230 bool m_attachTimeHasBeenSet =
false;
231 bool m_attachmentIdHasBeenSet =
false;
232 bool m_deleteOnTerminationHasBeenSet =
false;
233 bool m_deviceIndexHasBeenSet =
false;
234 bool m_networkCardIndexHasBeenSet =
false;
235 bool m_instanceIdHasBeenSet =
false;
236 bool m_instanceOwnerIdHasBeenSet =
false;
237 bool m_statusHasBeenSet =
false;
238 bool m_enaSrdSpecificationHasBeenSet =
false;
239 bool m_enaQueueCountHasBeenSet =
false;
AWS_EC2_API NetworkInterfaceAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool EnaSrdSpecificationHasBeenSet() const
void SetDeleteOnTermination(bool value)
NetworkInterfaceAttachment & WithStatus(AttachmentStatus value)
bool AttachmentIdHasBeenSet() const
void SetEnaQueueCount(int value)
AttachmentStatus GetStatus() const
NetworkInterfaceAttachment & WithAttachTime(AttachTimeT &&value)
bool AttachTimeHasBeenSet() const
int GetDeviceIndex() const
bool InstanceOwnerIdHasBeenSet() const
void SetStatus(AttachmentStatus value)
int GetNetworkCardIndex() const
int GetEnaQueueCount() const
NetworkInterfaceAttachment & WithDeviceIndex(int value)
NetworkInterfaceAttachment & WithInstanceOwnerId(InstanceOwnerIdT &&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 SetAttachTime(AttachTimeT &&value)
const AttachmentEnaSrdSpecification & GetEnaSrdSpecification() const
NetworkInterfaceAttachment & WithDeleteOnTermination(bool value)
bool DeleteOnTerminationHasBeenSet() const
NetworkInterfaceAttachment & WithEnaSrdSpecification(EnaSrdSpecificationT &&value)
NetworkInterfaceAttachment & WithNetworkCardIndex(int value)
void SetEnaSrdSpecification(EnaSrdSpecificationT &&value)
AWS_EC2_API NetworkInterfaceAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkInterfaceAttachment & WithEnaQueueCount(int value)
bool StatusHasBeenSet() const
void SetNetworkCardIndex(int value)
bool InstanceIdHasBeenSet() const
const Aws::String & GetAttachmentId() const
bool GetDeleteOnTermination() const
bool DeviceIndexHasBeenSet() const
NetworkInterfaceAttachment & WithAttachmentId(AttachmentIdT &&value)
void SetAttachmentId(AttachmentIdT &&value)
NetworkInterfaceAttachment & WithInstanceId(InstanceIdT &&value)
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
bool EnaQueueCountHasBeenSet() const
bool NetworkCardIndexHasBeenSet() const
AWS_EC2_API NetworkInterfaceAttachment()=default
void SetInstanceOwnerId(InstanceOwnerIdT &&value)
void SetInstanceId(InstanceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream