/** * 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 EC2 { namespace Model { /** */ class CancelExportTaskRequest : public EC2Request { public: AWS_EC2_API CancelExportTaskRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CancelExportTask"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The ID of the export task. This is the ID returned by * CreateInstanceExportTask.

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

The ID of the export task. This is the ID returned by * CreateInstanceExportTask.

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

The ID of the export task. This is the ID returned by * CreateInstanceExportTask.

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

The ID of the export task. This is the ID returned by * CreateInstanceExportTask.

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

The ID of the export task. This is the ID returned by * CreateInstanceExportTask.

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

The ID of the export task. This is the ID returned by * CreateInstanceExportTask.

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

The ID of the export task. This is the ID returned by * CreateInstanceExportTask.

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

The ID of the export task. This is the ID returned by * CreateInstanceExportTask.

*/ inline CancelExportTaskRequest& WithExportTaskId(const char* value) { SetExportTaskId(value); return *this;} private: Aws::String m_exportTaskId; bool m_exportTaskIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws