/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CloudWatchLogs { namespace Model { /** */ class DescribeExportTasksRequest : public CloudWatchLogsRequest { public: AWS_CLOUDWATCHLOGS_API DescribeExportTasksRequest(); // 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 "DescribeExportTasks"; } AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the export task. Specifying a task ID filters the results to one or * zero export tasks.

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

The ID of the export task. Specifying a task ID filters the results to one or * zero export tasks.

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

The ID of the export task. Specifying a task ID filters the results to one or * zero export tasks.

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

The ID of the export task. Specifying a task ID filters the results to one or * zero export tasks.

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

The ID of the export task. Specifying a task ID filters the results to one or * zero export tasks.

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

The ID of the export task. Specifying a task ID filters the results to one or * zero export tasks.

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

The ID of the export task. Specifying a task ID filters the results to one or * zero export tasks.

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

The ID of the export task. Specifying a task ID filters the results to one or * zero export tasks.

*/ inline DescribeExportTasksRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;} /** *

The status code of the export task. Specifying a status code filters the * results to zero or more export tasks.

*/ inline const ExportTaskStatusCode& GetStatusCode() const{ return m_statusCode; } /** *

The status code of the export task. Specifying a status code filters the * results to zero or more export tasks.

*/ inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } /** *

The status code of the export task. Specifying a status code filters the * results to zero or more export tasks.

*/ inline void SetStatusCode(const ExportTaskStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } /** *

The status code of the export task. Specifying a status code filters the * results to zero or more export tasks.

*/ inline void SetStatusCode(ExportTaskStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); } /** *

The status code of the export task. Specifying a status code filters the * results to zero or more export tasks.

*/ inline DescribeExportTasksRequest& WithStatusCode(const ExportTaskStatusCode& value) { SetStatusCode(value); return *this;} /** *

The status code of the export task. Specifying a status code filters the * results to zero or more export tasks.

*/ inline DescribeExportTasksRequest& WithStatusCode(ExportTaskStatusCode&& value) { SetStatusCode(std::move(value)); return *this;} /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline DescribeExportTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline DescribeExportTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token for the next set of items to return. (You received this token from * a previous call.)

*/ inline DescribeExportTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of items returned. If you don't specify a value, the * default is up to 50 items.

*/ inline int GetLimit() const{ return m_limit; } /** *

The maximum number of items returned. If you don't specify a value, the * default is up to 50 items.

*/ inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } /** *

The maximum number of items returned. If you don't specify a value, the * default is up to 50 items.

*/ inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } /** *

The maximum number of items returned. If you don't specify a value, the * default is up to 50 items.

*/ inline DescribeExportTasksRequest& WithLimit(int value) { SetLimit(value); return *this;} private: Aws::String m_taskId; bool m_taskIdHasBeenSet = false; ExportTaskStatusCode m_statusCode; bool m_statusCodeHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_limit; bool m_limitHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws