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

Describes a volume status operation code.

See Also:

AWS * API Reference

*/ class VolumeStatusAction { public: AWS_EC2_API VolumeStatusAction(); AWS_EC2_API VolumeStatusAction(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API VolumeStatusAction& 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 code identifying the operation, for example, * enable-volume-io.

*/ inline const Aws::String& GetCode() const{ return m_code; } /** *

The code identifying the operation, for example, * enable-volume-io.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The code identifying the operation, for example, * enable-volume-io.

*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The code identifying the operation, for example, * enable-volume-io.

*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The code identifying the operation, for example, * enable-volume-io.

*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *

The code identifying the operation, for example, * enable-volume-io.

*/ inline VolumeStatusAction& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *

The code identifying the operation, for example, * enable-volume-io.

*/ inline VolumeStatusAction& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *

The code identifying the operation, for example, * enable-volume-io.

*/ inline VolumeStatusAction& WithCode(const char* value) { SetCode(value); return *this;} /** *

A description of the operation.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the operation.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the operation.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the operation.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the operation.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the operation.

*/ inline VolumeStatusAction& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the operation.

*/ inline VolumeStatusAction& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the operation.

*/ inline VolumeStatusAction& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The ID of the event associated with this operation.

*/ inline const Aws::String& GetEventId() const{ return m_eventId; } /** *

The ID of the event associated with this operation.

*/ inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; } /** *

The ID of the event associated with this operation.

*/ inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; } /** *

The ID of the event associated with this operation.

*/ inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); } /** *

The ID of the event associated with this operation.

*/ inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); } /** *

The ID of the event associated with this operation.

*/ inline VolumeStatusAction& WithEventId(const Aws::String& value) { SetEventId(value); return *this;} /** *

The ID of the event associated with this operation.

*/ inline VolumeStatusAction& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;} /** *

The ID of the event associated with this operation.

*/ inline VolumeStatusAction& WithEventId(const char* value) { SetEventId(value); return *this;} /** *

The event type associated with this operation.

*/ inline const Aws::String& GetEventType() const{ return m_eventType; } /** *

The event type associated with this operation.

*/ inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; } /** *

The event type associated with this operation.

*/ inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; } /** *

The event type associated with this operation.

*/ inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); } /** *

The event type associated with this operation.

*/ inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); } /** *

The event type associated with this operation.

*/ inline VolumeStatusAction& WithEventType(const Aws::String& value) { SetEventType(value); return *this;} /** *

The event type associated with this operation.

*/ inline VolumeStatusAction& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;} /** *

The event type associated with this operation.

*/ inline VolumeStatusAction& WithEventType(const char* value) { SetEventType(value); return *this;} private: Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_eventId; bool m_eventIdHasBeenSet = false; Aws::String m_eventType; bool m_eventTypeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws