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 AttachmentIdT = Aws::String>
47 m_attachmentIdHasBeenSet =
true;
48 m_attachmentId = std::forward<AttachmentIdT>(value);
50 template <
typename AttachmentIdT = Aws::String>
63 template <
typename AttachTimeT = Aws::Utils::DateTime>
65 m_attachTimeHasBeenSet =
true;
66 m_attachTime = std::forward<AttachTimeT>(value);
68 template <
typename AttachTimeT = Aws::Utils::DateTime>
84 m_deleteOnTerminationHasBeenSet =
true;
85 m_deleteOnTermination = value;
100 m_deviceIndexHasBeenSet =
true;
101 m_deviceIndex = value;
115 template <
typename InstanceIdT = Aws::String>
117 m_instanceIdHasBeenSet =
true;
118 m_instanceId = std::forward<InstanceIdT>(value);
120 template <
typename InstanceIdT = Aws::String>
133 template <
typename InstanceOwnerIdT = Aws::String>
135 m_instanceOwnerIdHasBeenSet =
true;
136 m_instanceOwnerId = std::forward<InstanceOwnerIdT>(value);
138 template <
typename InstanceOwnerIdT = Aws::String>
152 m_networkCardIndexHasBeenSet =
true;
153 m_networkCardIndex = value;
168 m_statusHasBeenSet =
true;
181 bool m_deleteOnTermination{
false};
183 int m_deviceIndex{0};
189 int m_networkCardIndex{0};
192 bool m_attachmentIdHasBeenSet =
false;
193 bool m_attachTimeHasBeenSet =
false;
194 bool m_deleteOnTerminationHasBeenSet =
false;
195 bool m_deviceIndexHasBeenSet =
false;
196 bool m_instanceIdHasBeenSet =
false;
197 bool m_instanceOwnerIdHasBeenSet =
false;
198 bool m_networkCardIndexHasBeenSet =
false;
199 bool m_statusHasBeenSet =
false;
bool AttachmentIdHasBeenSet() const
void SetNetworkCardIndex(int value)
AttachmentStatus GetStatus() const
SecondaryInterfaceAttachment & WithInstanceId(InstanceIdT &&value)
bool AttachTimeHasBeenSet() const
bool DeviceIndexHasBeenSet() const
SecondaryInterfaceAttachment & WithAttachmentId(AttachmentIdT &&value)
AWS_EC2_API SecondaryInterfaceAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetInstanceOwnerId() const
const Aws::Utils::DateTime & GetAttachTime() const
bool InstanceIdHasBeenSet() const
AWS_EC2_API SecondaryInterfaceAttachment()=default
AWS_EC2_API SecondaryInterfaceAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceId(InstanceIdT &&value)
SecondaryInterfaceAttachment & WithAttachTime(AttachTimeT &&value)
SecondaryInterfaceAttachment & WithDeviceIndex(int value)
void SetAttachTime(AttachTimeT &&value)
void SetStatus(AttachmentStatus value)
bool GetDeleteOnTermination() const
void SetInstanceOwnerId(InstanceOwnerIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool DeleteOnTerminationHasBeenSet() const
int GetNetworkCardIndex() const
const Aws::String & GetInstanceId() const
SecondaryInterfaceAttachment & WithStatus(AttachmentStatus value)
bool StatusHasBeenSet() const
void SetDeleteOnTermination(bool value)
bool NetworkCardIndexHasBeenSet() const
SecondaryInterfaceAttachment & WithDeleteOnTermination(bool value)
void SetAttachmentId(AttachmentIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
int GetDeviceIndex() const
void SetDeviceIndex(int value)
const Aws::String & GetAttachmentId() const
SecondaryInterfaceAttachment & WithInstanceOwnerId(InstanceOwnerIdT &&value)
SecondaryInterfaceAttachment & WithNetworkCardIndex(int value)
bool InstanceOwnerIdHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream