/** * 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 an export instance task.

See Also:

AWS API * Reference

*/ class ExportTask { public: AWS_EC2_API ExportTask(); AWS_EC2_API ExportTask(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ExportTask& 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; /** *

A description of the resource being exported.

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

A description of the resource being exported.

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

A description of the resource being exported.

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

A description of the resource being exported.

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

A description of the resource being exported.

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

A description of the resource being exported.

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

A description of the resource being exported.

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

A description of the resource being exported.

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

The ID of the export task.

*/ inline const Aws::String& GetExportTaskId() const{ return m_exportTaskId; } /** *

The ID of the export task.

*/ inline bool ExportTaskIdHasBeenSet() const { return m_exportTaskIdHasBeenSet; } /** *

The ID of the export task.

*/ inline void SetExportTaskId(const Aws::String& value) { m_exportTaskIdHasBeenSet = true; m_exportTaskId = value; } /** *

The ID of the export task.

*/ inline void SetExportTaskId(Aws::String&& value) { m_exportTaskIdHasBeenSet = true; m_exportTaskId = std::move(value); } /** *

The ID of the export task.

*/ inline void SetExportTaskId(const char* value) { m_exportTaskIdHasBeenSet = true; m_exportTaskId.assign(value); } /** *

The ID of the export task.

*/ inline ExportTask& WithExportTaskId(const Aws::String& value) { SetExportTaskId(value); return *this;} /** *

The ID of the export task.

*/ inline ExportTask& WithExportTaskId(Aws::String&& value) { SetExportTaskId(std::move(value)); return *this;} /** *

The ID of the export task.

*/ inline ExportTask& WithExportTaskId(const char* value) { SetExportTaskId(value); return *this;} /** *

Information about the export task.

*/ inline const ExportToS3Task& GetExportToS3Task() const{ return m_exportToS3Task; } /** *

Information about the export task.

*/ inline bool ExportToS3TaskHasBeenSet() const { return m_exportToS3TaskHasBeenSet; } /** *

Information about the export task.

*/ inline void SetExportToS3Task(const ExportToS3Task& value) { m_exportToS3TaskHasBeenSet = true; m_exportToS3Task = value; } /** *

Information about the export task.

*/ inline void SetExportToS3Task(ExportToS3Task&& value) { m_exportToS3TaskHasBeenSet = true; m_exportToS3Task = std::move(value); } /** *

Information about the export task.

*/ inline ExportTask& WithExportToS3Task(const ExportToS3Task& value) { SetExportToS3Task(value); return *this;} /** *

Information about the export task.

*/ inline ExportTask& WithExportToS3Task(ExportToS3Task&& value) { SetExportToS3Task(std::move(value)); return *this;} /** *

Information about the instance to export.

*/ inline const InstanceExportDetails& GetInstanceExportDetails() const{ return m_instanceExportDetails; } /** *

Information about the instance to export.

*/ inline bool InstanceExportDetailsHasBeenSet() const { return m_instanceExportDetailsHasBeenSet; } /** *

Information about the instance to export.

*/ inline void SetInstanceExportDetails(const InstanceExportDetails& value) { m_instanceExportDetailsHasBeenSet = true; m_instanceExportDetails = value; } /** *

Information about the instance to export.

*/ inline void SetInstanceExportDetails(InstanceExportDetails&& value) { m_instanceExportDetailsHasBeenSet = true; m_instanceExportDetails = std::move(value); } /** *

Information about the instance to export.

*/ inline ExportTask& WithInstanceExportDetails(const InstanceExportDetails& value) { SetInstanceExportDetails(value); return *this;} /** *

Information about the instance to export.

*/ inline ExportTask& WithInstanceExportDetails(InstanceExportDetails&& value) { SetInstanceExportDetails(std::move(value)); return *this;} /** *

The state of the export task.

*/ inline const ExportTaskState& GetState() const{ return m_state; } /** *

The state of the export task.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the export task.

*/ inline void SetState(const ExportTaskState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the export task.

*/ inline void SetState(ExportTaskState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the export task.

*/ inline ExportTask& WithState(const ExportTaskState& value) { SetState(value); return *this;} /** *

The state of the export task.

*/ inline ExportTask& WithState(ExportTaskState&& value) { SetState(std::move(value)); return *this;} /** *

The status message related to the export task.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

The status message related to the export task.

*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

The status message related to the export task.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *

The status message related to the export task.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *

The status message related to the export task.

*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *

The status message related to the export task.

*/ inline ExportTask& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

The status message related to the export task.

*/ inline ExportTask& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

The status message related to the export task.

*/ inline ExportTask& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

The tags for the export task.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags for the export task.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags for the export task.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags for the export task.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags for the export task.

*/ inline ExportTask& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags for the export task.

*/ inline ExportTask& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags for the export task.

*/ inline ExportTask& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags for the export task.

*/ inline ExportTask& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_exportTaskId; bool m_exportTaskIdHasBeenSet = false; ExportToS3Task m_exportToS3Task; bool m_exportToS3TaskHasBeenSet = false; InstanceExportDetails m_instanceExportDetails; bool m_instanceExportDetailsHasBeenSet = false; ExportTaskState m_state; bool m_stateHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws