/** * 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 CloudWatchLogs { namespace Model { /** */ class CancelExportTaskRequest : public CloudWatchLogsRequest { public: AWS_CLOUDWATCHLOGS_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_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the export task.

*/ inline const Aws::String& GetTaskId() const{ return m_taskId; } /** *

The ID of the export task.

*/ inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } /** *

The ID of the export task.

*/ inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } /** *

The ID of the export task.

*/ inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } /** *

The ID of the export task.

*/ inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } /** *

The ID of the export task.

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

The ID of the export task.

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

The ID of the export task.

*/ inline CancelExportTaskRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;} private: Aws::String m_taskId; bool m_taskIdHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws