7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/VolumeAttachmentState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ec2/model/ResponseMetadata.h>
51 inline void SetDeleteOnTermination(
bool value) { m_deleteOnTerminationHasBeenSet =
true; m_deleteOnTermination = value; }
64 inline void SetAssociatedResource(
const char* value) { m_associatedResourceHasBeenSet =
true; m_associatedResource.assign(value); }
80 inline void SetInstanceOwningService(
const char* value) { m_instanceOwningServiceHasBeenSet =
true; m_instanceOwningService.assign(value); }
94 inline void SetVolumeId(
const char* value) { m_volumeIdHasBeenSet =
true; m_volumeId.assign(value); }
109 inline void SetInstanceId(
const char* value) { m_instanceIdHasBeenSet =
true; m_instanceId.assign(value); }
124 inline void SetDevice(
const char* value) { m_deviceHasBeenSet =
true; m_device.assign(value); }
164 bool m_deleteOnTermination;
165 bool m_deleteOnTerminationHasBeenSet =
false;
168 bool m_associatedResourceHasBeenSet =
false;
171 bool m_instanceOwningServiceHasBeenSet =
false;
174 bool m_volumeIdHasBeenSet =
false;
177 bool m_instanceIdHasBeenSet =
false;
180 bool m_deviceHasBeenSet =
false;
183 bool m_stateHasBeenSet =
false;
186 bool m_attachTimeHasBeenSet =
false;
void SetDevice(const char *value)
void SetAssociatedResource(const Aws::String &value)
VolumeAttachment & WithInstanceId(const Aws::String &value)
void SetInstanceId(const Aws::String &value)
bool GetDeleteOnTermination() const
void SetResponseMetadata(const ResponseMetadata &value)
void SetState(VolumeAttachmentState &&value)
void SetVolumeId(Aws::String &&value)
VolumeAttachment & WithDeleteOnTermination(bool value)
const Aws::String & GetDevice() const
AWS_EC2_API VolumeAttachment & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VolumeAttachment & WithInstanceId(Aws::String &&value)
VolumeAttachment & WithInstanceOwningService(const char *value)
void SetInstanceOwningService(const Aws::String &value)
const Aws::String & GetVolumeId() const
void SetAttachTime(const Aws::Utils::DateTime &value)
const Aws::String & GetAssociatedResource() const
void SetDevice(Aws::String &&value)
void SetVolumeId(const char *value)
bool InstanceOwningServiceHasBeenSet() const
VolumeAttachment & WithDevice(Aws::String &&value)
const Aws::Utils::DateTime & GetAttachTime() const
VolumeAttachment & WithResponseMetadata(const ResponseMetadata &value)
void SetInstanceOwningService(const char *value)
bool StateHasBeenSet() const
void SetAssociatedResource(const char *value)
void SetDeleteOnTermination(bool value)
void SetState(const VolumeAttachmentState &value)
VolumeAttachment & WithDevice(const Aws::String &value)
const VolumeAttachmentState & GetState() const
VolumeAttachment & WithVolumeId(const char *value)
bool AssociatedResourceHasBeenSet() const
void SetAttachTime(Aws::Utils::DateTime &&value)
void SetInstanceId(const char *value)
void SetResponseMetadata(ResponseMetadata &&value)
void SetAssociatedResource(Aws::String &&value)
VolumeAttachment & WithVolumeId(Aws::String &&value)
VolumeAttachment & WithAttachTime(const Aws::Utils::DateTime &value)
VolumeAttachment & WithState(VolumeAttachmentState &&value)
bool AttachTimeHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool InstanceIdHasBeenSet() const
VolumeAttachment & WithResponseMetadata(ResponseMetadata &&value)
const Aws::String & GetInstanceOwningService() const
VolumeAttachment & WithVolumeId(const Aws::String &value)
void SetDevice(const Aws::String &value)
VolumeAttachment & WithState(const VolumeAttachmentState &value)
bool DeleteOnTerminationHasBeenSet() const
const Aws::String & GetInstanceId() const
bool DeviceHasBeenSet() const
VolumeAttachment & WithAssociatedResource(const Aws::String &value)
void SetInstanceId(Aws::String &&value)
VolumeAttachment & WithInstanceOwningService(Aws::String &&value)
VolumeAttachment & WithAssociatedResource(const char *value)
AWS_EC2_API VolumeAttachment()
VolumeAttachment & WithInstanceOwningService(const Aws::String &value)
VolumeAttachment & WithAttachTime(Aws::Utils::DateTime &&value)
void SetVolumeId(const Aws::String &value)
AWS_EC2_API VolumeAttachment(const Aws::Utils::Xml::XmlNode &xmlNode)
VolumeAttachment & WithInstanceId(const char *value)
const ResponseMetadata & GetResponseMetadata() const
bool VolumeIdHasBeenSet() const
VolumeAttachment & WithAssociatedResource(Aws::String &&value)
VolumeAttachment & WithDevice(const char *value)
void SetInstanceOwningService(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream