/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes volume attachment details.See Also:
AWS
* API Reference
The time stamp when the attachment initiated.
*/ inline const Aws::Utils::DateTime& GetAttachTime() const{ return m_attachTime; } /** *The time stamp when the attachment initiated.
*/ inline bool AttachTimeHasBeenSet() const { return m_attachTimeHasBeenSet; } /** *The time stamp when the attachment initiated.
*/ inline void SetAttachTime(const Aws::Utils::DateTime& value) { m_attachTimeHasBeenSet = true; m_attachTime = value; } /** *The time stamp when the attachment initiated.
*/ inline void SetAttachTime(Aws::Utils::DateTime&& value) { m_attachTimeHasBeenSet = true; m_attachTime = std::move(value); } /** *The time stamp when the attachment initiated.
*/ inline VolumeAttachment& WithAttachTime(const Aws::Utils::DateTime& value) { SetAttachTime(value); return *this;} /** *The time stamp when the attachment initiated.
*/ inline VolumeAttachment& WithAttachTime(Aws::Utils::DateTime&& value) { SetAttachTime(std::move(value)); return *this;} /** *The device name.
*/ inline const Aws::String& GetDevice() const{ return m_device; } /** *The device name.
*/ inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; } /** *The device name.
*/ inline void SetDevice(const Aws::String& value) { m_deviceHasBeenSet = true; m_device = value; } /** *The device name.
*/ inline void SetDevice(Aws::String&& value) { m_deviceHasBeenSet = true; m_device = std::move(value); } /** *The device name.
*/ inline void SetDevice(const char* value) { m_deviceHasBeenSet = true; m_device.assign(value); } /** *The device name.
*/ inline VolumeAttachment& WithDevice(const Aws::String& value) { SetDevice(value); return *this;} /** *The device name.
*/ inline VolumeAttachment& WithDevice(Aws::String&& value) { SetDevice(std::move(value)); return *this;} /** *The device name.
*/ inline VolumeAttachment& WithDevice(const char* value) { SetDevice(value); return *this;} /** *The ID of the instance.
*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *The ID of the instance.
*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *The ID of the instance.
*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *The ID of the instance.
*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *The ID of the instance.
*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *The ID of the instance.
*/ inline VolumeAttachment& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *The ID of the instance.
*/ inline VolumeAttachment& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *The ID of the instance.
*/ inline VolumeAttachment& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *The attachment state of the volume.
*/ inline const VolumeAttachmentState& GetState() const{ return m_state; } /** *The attachment state of the volume.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The attachment state of the volume.
*/ inline void SetState(const VolumeAttachmentState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The attachment state of the volume.
*/ inline void SetState(VolumeAttachmentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The attachment state of the volume.
*/ inline VolumeAttachment& WithState(const VolumeAttachmentState& value) { SetState(value); return *this;} /** *The attachment state of the volume.
*/ inline VolumeAttachment& WithState(VolumeAttachmentState&& value) { SetState(std::move(value)); return *this;} /** *The ID of the volume.
*/ inline const Aws::String& GetVolumeId() const{ return m_volumeId; } /** *The ID of the volume.
*/ inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; } /** *The ID of the volume.
*/ inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; } /** *The ID of the volume.
*/ inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); } /** *The ID of the volume.
*/ inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); } /** *The ID of the volume.
*/ inline VolumeAttachment& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;} /** *The ID of the volume.
*/ inline VolumeAttachment& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;} /** *The ID of the volume.
*/ inline VolumeAttachment& WithVolumeId(const char* value) { SetVolumeId(value); return *this;} /** *Indicates whether the EBS volume is deleted on instance termination.
*/ inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; } /** *Indicates whether the EBS volume is deleted on instance termination.
*/ inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; } /** *Indicates whether the EBS volume is deleted on instance termination.
*/ inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; } /** *Indicates whether the EBS volume is deleted on instance termination.
*/ inline VolumeAttachment& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline VolumeAttachment& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline VolumeAttachment& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Utils::DateTime m_attachTime; bool m_attachTimeHasBeenSet = false; Aws::String m_device; bool m_deviceHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; VolumeAttachmentState m_state; bool m_stateHasBeenSet = false; Aws::String m_volumeId; bool m_volumeIdHasBeenSet = false; bool m_deleteOnTermination; bool m_deleteOnTerminationHasBeenSet = false; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws