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>
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>
84 m_deleteOnTerminationHasBeenSet =
true;
85 m_deleteOnTermination = value;
100 m_deviceIndexHasBeenSet =
true;
101 m_deviceIndex = value;
116 m_statusHasBeenSet =
true;
132 m_networkCardIndexHasBeenSet =
true;
133 m_networkCardIndex = value;
145 bool m_deleteOnTermination{
false};
147 int m_deviceIndex{0};
151 int m_networkCardIndex{0};
152 bool m_attachTimeHasBeenSet =
false;
153 bool m_attachmentIdHasBeenSet =
false;
154 bool m_deleteOnTerminationHasBeenSet =
false;
155 bool m_deviceIndexHasBeenSet =
false;
156 bool m_statusHasBeenSet =
false;
157 bool m_networkCardIndexHasBeenSet =
false;
int GetDeviceIndex() const
void SetAttachmentId(AttachmentIdT &&value)
InstanceSecondaryInterfaceAttachment & WithStatus(AttachmentStatus value)
bool GetDeleteOnTermination() const
AWS_EC2_API InstanceSecondaryInterfaceAttachment()=default
void SetDeviceIndex(int value)
bool AttachmentIdHasBeenSet() const
AWS_EC2_API InstanceSecondaryInterfaceAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool AttachTimeHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool NetworkCardIndexHasBeenSet() const
InstanceSecondaryInterfaceAttachment & WithDeviceIndex(int value)
bool DeviceIndexHasBeenSet() const
const Aws::Utils::DateTime & GetAttachTime() const
bool DeleteOnTerminationHasBeenSet() const
AWS_EC2_API InstanceSecondaryInterfaceAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceSecondaryInterfaceAttachment & WithAttachmentId(AttachmentIdT &&value)
InstanceSecondaryInterfaceAttachment & WithAttachTime(AttachTimeT &&value)
const Aws::String & GetAttachmentId() const
int GetNetworkCardIndex() const
InstanceSecondaryInterfaceAttachment & WithDeleteOnTermination(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetStatus(AttachmentStatus value)
InstanceSecondaryInterfaceAttachment & WithNetworkCardIndex(int value)
void SetNetworkCardIndex(int value)
AttachmentStatus GetStatus() const
bool StatusHasBeenSet() const
void SetDeleteOnTermination(bool value)
void SetAttachTime(AttachTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream