/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SnowDeviceManagement { namespace Model { /** *

Describes a parameter used to set up an Amazon Elastic Block Store (Amazon * EBS) volume in a block device mapping.

See Also:

AWS * API Reference

*/ class EbsInstanceBlockDevice { public: AWS_SNOWDEVICEMANAGEMENT_API EbsInstanceBlockDevice(); AWS_SNOWDEVICEMANAGEMENT_API EbsInstanceBlockDevice(Aws::Utils::Json::JsonView jsonValue); AWS_SNOWDEVICEMANAGEMENT_API EbsInstanceBlockDevice& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

When the attachment was initiated.

*/ inline const Aws::Utils::DateTime& GetAttachTime() const{ return m_attachTime; } /** *

When the attachment was initiated.

*/ inline bool AttachTimeHasBeenSet() const { return m_attachTimeHasBeenSet; } /** *

When the attachment was initiated.

*/ inline void SetAttachTime(const Aws::Utils::DateTime& value) { m_attachTimeHasBeenSet = true; m_attachTime = value; } /** *

When the attachment was initiated.

*/ inline void SetAttachTime(Aws::Utils::DateTime&& value) { m_attachTimeHasBeenSet = true; m_attachTime = std::move(value); } /** *

When the attachment was initiated.

*/ inline EbsInstanceBlockDevice& WithAttachTime(const Aws::Utils::DateTime& value) { SetAttachTime(value); return *this;} /** *

When the attachment was initiated.

*/ inline EbsInstanceBlockDevice& WithAttachTime(Aws::Utils::DateTime&& value) { SetAttachTime(std::move(value)); return *this;} /** *

A value that indicates whether the volume is deleted on instance * termination.

*/ inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; } /** *

A value that indicates whether the volume is deleted on instance * termination.

*/ inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; } /** *

A value that indicates whether the volume is deleted on instance * termination.

*/ inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; } /** *

A value that indicates whether the volume is deleted on instance * termination.

*/ inline EbsInstanceBlockDevice& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;} /** *

The attachment state.

*/ inline const AttachmentStatus& GetStatus() const{ return m_status; } /** *

The attachment state.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The attachment state.

*/ inline void SetStatus(const AttachmentStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The attachment state.

*/ inline void SetStatus(AttachmentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The attachment state.

*/ inline EbsInstanceBlockDevice& WithStatus(const AttachmentStatus& value) { SetStatus(value); return *this;} /** *

The attachment state.

*/ inline EbsInstanceBlockDevice& WithStatus(AttachmentStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The ID of the Amazon EBS volume.

*/ inline const Aws::String& GetVolumeId() const{ return m_volumeId; } /** *

The ID of the Amazon EBS volume.

*/ inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; } /** *

The ID of the Amazon EBS volume.

*/ inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; } /** *

The ID of the Amazon EBS volume.

*/ inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); } /** *

The ID of the Amazon EBS volume.

*/ inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); } /** *

The ID of the Amazon EBS volume.

*/ inline EbsInstanceBlockDevice& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;} /** *

The ID of the Amazon EBS volume.

*/ inline EbsInstanceBlockDevice& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;} /** *

The ID of the Amazon EBS volume.

*/ inline EbsInstanceBlockDevice& WithVolumeId(const char* value) { SetVolumeId(value); return *this;} private: Aws::Utils::DateTime m_attachTime; bool m_attachTimeHasBeenSet = false; bool m_deleteOnTermination; bool m_deleteOnTerminationHasBeenSet = false; AttachmentStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_volumeId; bool m_volumeIdHasBeenSet = false; }; } // namespace Model } // namespace SnowDeviceManagement } // namespace Aws