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

Describes the volume status.

See Also:

AWS * API Reference

*/ class VolumeStatusItem { public: AWS_EC2_API VolumeStatusItem(); AWS_EC2_API VolumeStatusItem(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API VolumeStatusItem& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The details of the operation.

*/ inline const Aws::Vector& GetActions() const{ return m_actions; } /** *

The details of the operation.

*/ inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } /** *

The details of the operation.

*/ inline void SetActions(const Aws::Vector& value) { m_actionsHasBeenSet = true; m_actions = value; } /** *

The details of the operation.

*/ inline void SetActions(Aws::Vector&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); } /** *

The details of the operation.

*/ inline VolumeStatusItem& WithActions(const Aws::Vector& value) { SetActions(value); return *this;} /** *

The details of the operation.

*/ inline VolumeStatusItem& WithActions(Aws::Vector&& value) { SetActions(std::move(value)); return *this;} /** *

The details of the operation.

*/ inline VolumeStatusItem& AddActions(const VolumeStatusAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } /** *

The details of the operation.

*/ inline VolumeStatusItem& AddActions(VolumeStatusAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; } /** *

The Availability Zone of the volume.

*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

The Availability Zone of the volume.

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

The Availability Zone of the volume.

*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

The Availability Zone of the volume.

*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

The Availability Zone of the volume.

*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *

The Availability Zone of the volume.

*/ inline VolumeStatusItem& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *

The Availability Zone of the volume.

*/ inline VolumeStatusItem& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *

The Availability Zone of the volume.

*/ inline VolumeStatusItem& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; } /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; } /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline VolumeStatusItem& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline VolumeStatusItem& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Outpost.

*/ inline VolumeStatusItem& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;} /** *

A list of events associated with the volume.

*/ inline const Aws::Vector& GetEvents() const{ return m_events; } /** *

A list of events associated with the volume.

*/ inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; } /** *

A list of events associated with the volume.

*/ inline void SetEvents(const Aws::Vector& value) { m_eventsHasBeenSet = true; m_events = value; } /** *

A list of events associated with the volume.

*/ inline void SetEvents(Aws::Vector&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); } /** *

A list of events associated with the volume.

*/ inline VolumeStatusItem& WithEvents(const Aws::Vector& value) { SetEvents(value); return *this;} /** *

A list of events associated with the volume.

*/ inline VolumeStatusItem& WithEvents(Aws::Vector&& value) { SetEvents(std::move(value)); return *this;} /** *

A list of events associated with the volume.

*/ inline VolumeStatusItem& AddEvents(const VolumeStatusEvent& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; } /** *

A list of events associated with the volume.

*/ inline VolumeStatusItem& AddEvents(VolumeStatusEvent&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; } /** *

The volume ID.

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

The volume ID.

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

The volume ID.

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

The volume ID.

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

The volume ID.

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

The volume ID.

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

The volume ID.

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

The volume ID.

*/ inline VolumeStatusItem& WithVolumeId(const char* value) { SetVolumeId(value); return *this;} /** *

The volume status.

*/ inline const VolumeStatusInfo& GetVolumeStatus() const{ return m_volumeStatus; } /** *

The volume status.

*/ inline bool VolumeStatusHasBeenSet() const { return m_volumeStatusHasBeenSet; } /** *

The volume status.

*/ inline void SetVolumeStatus(const VolumeStatusInfo& value) { m_volumeStatusHasBeenSet = true; m_volumeStatus = value; } /** *

The volume status.

*/ inline void SetVolumeStatus(VolumeStatusInfo&& value) { m_volumeStatusHasBeenSet = true; m_volumeStatus = std::move(value); } /** *

The volume status.

*/ inline VolumeStatusItem& WithVolumeStatus(const VolumeStatusInfo& value) { SetVolumeStatus(value); return *this;} /** *

The volume status.

*/ inline VolumeStatusItem& WithVolumeStatus(VolumeStatusInfo&& value) { SetVolumeStatus(std::move(value)); return *this;} /** *

Information about the instances to which the volume is attached.

*/ inline const Aws::Vector& GetAttachmentStatuses() const{ return m_attachmentStatuses; } /** *

Information about the instances to which the volume is attached.

*/ inline bool AttachmentStatusesHasBeenSet() const { return m_attachmentStatusesHasBeenSet; } /** *

Information about the instances to which the volume is attached.

*/ inline void SetAttachmentStatuses(const Aws::Vector& value) { m_attachmentStatusesHasBeenSet = true; m_attachmentStatuses = value; } /** *

Information about the instances to which the volume is attached.

*/ inline void SetAttachmentStatuses(Aws::Vector&& value) { m_attachmentStatusesHasBeenSet = true; m_attachmentStatuses = std::move(value); } /** *

Information about the instances to which the volume is attached.

*/ inline VolumeStatusItem& WithAttachmentStatuses(const Aws::Vector& value) { SetAttachmentStatuses(value); return *this;} /** *

Information about the instances to which the volume is attached.

*/ inline VolumeStatusItem& WithAttachmentStatuses(Aws::Vector&& value) { SetAttachmentStatuses(std::move(value)); return *this;} /** *

Information about the instances to which the volume is attached.

*/ inline VolumeStatusItem& AddAttachmentStatuses(const VolumeStatusAttachmentStatus& value) { m_attachmentStatusesHasBeenSet = true; m_attachmentStatuses.push_back(value); return *this; } /** *

Information about the instances to which the volume is attached.

*/ inline VolumeStatusItem& AddAttachmentStatuses(VolumeStatusAttachmentStatus&& value) { m_attachmentStatusesHasBeenSet = true; m_attachmentStatuses.push_back(std::move(value)); return *this; } private: Aws::Vector m_actions; bool m_actionsHasBeenSet = false; Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; Aws::String m_outpostArn; bool m_outpostArnHasBeenSet = false; Aws::Vector m_events; bool m_eventsHasBeenSet = false; Aws::String m_volumeId; bool m_volumeIdHasBeenSet = false; VolumeStatusInfo m_volumeStatus; bool m_volumeStatusHasBeenSet = false; Aws::Vector m_attachmentStatuses; bool m_attachmentStatusesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws