/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchLogs { namespace Model { /** *

Represents an export task.

See Also:

AWS API * Reference

*/ class ExportTask { public: AWS_CLOUDWATCHLOGS_API ExportTask(); AWS_CLOUDWATCHLOGS_API ExportTask(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API ExportTask& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 ExportTask& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} /** *

The ID of the export task.

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

The ID of the export task.

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

The name of the export task.

*/ inline const Aws::String& GetTaskName() const{ return m_taskName; } /** *

The name of the export task.

*/ inline bool TaskNameHasBeenSet() const { return m_taskNameHasBeenSet; } /** *

The name of the export task.

*/ inline void SetTaskName(const Aws::String& value) { m_taskNameHasBeenSet = true; m_taskName = value; } /** *

The name of the export task.

*/ inline void SetTaskName(Aws::String&& value) { m_taskNameHasBeenSet = true; m_taskName = std::move(value); } /** *

The name of the export task.

*/ inline void SetTaskName(const char* value) { m_taskNameHasBeenSet = true; m_taskName.assign(value); } /** *

The name of the export task.

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

The name of the export task.

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

The name of the export task.

*/ inline ExportTask& WithTaskName(const char* value) { SetTaskName(value); return *this;} /** *

The name of the log group from which logs data was exported.

*/ inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; } /** *

The name of the log group from which logs data was exported.

*/ inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; } /** *

The name of the log group from which logs data was exported.

*/ inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; } /** *

The name of the log group from which logs data was exported.

*/ inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); } /** *

The name of the log group from which logs data was exported.

*/ inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); } /** *

The name of the log group from which logs data was exported.

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

The name of the log group from which logs data was exported.

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

The name of the log group from which logs data was exported.

*/ inline ExportTask& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;} /** *

The start time, expressed as the number of milliseconds after Jan 1, * 1970 00:00:00 UTC. Events with a timestamp before this time are not * exported.

*/ inline long long GetFrom() const{ return m_from; } /** *

The start time, expressed as the number of milliseconds after Jan 1, * 1970 00:00:00 UTC. Events with a timestamp before this time are not * exported.

*/ inline bool FromHasBeenSet() const { return m_fromHasBeenSet; } /** *

The start time, expressed as the number of milliseconds after Jan 1, * 1970 00:00:00 UTC. Events with a timestamp before this time are not * exported.

*/ inline void SetFrom(long long value) { m_fromHasBeenSet = true; m_from = value; } /** *

The start time, expressed as the number of milliseconds after Jan 1, * 1970 00:00:00 UTC. Events with a timestamp before this time are not * exported.

*/ inline ExportTask& WithFrom(long long value) { SetFrom(value); return *this;} /** *

The end time, expressed as the number of milliseconds after Jan 1, 1970 * 00:00:00 UTC. Events with a timestamp later than this time are not * exported.

*/ inline long long GetTo() const{ return m_to; } /** *

The end time, expressed as the number of milliseconds after Jan 1, 1970 * 00:00:00 UTC. Events with a timestamp later than this time are not * exported.

*/ inline bool ToHasBeenSet() const { return m_toHasBeenSet; } /** *

The end time, expressed as the number of milliseconds after Jan 1, 1970 * 00:00:00 UTC. Events with a timestamp later than this time are not * exported.

*/ inline void SetTo(long long value) { m_toHasBeenSet = true; m_to = value; } /** *

The end time, expressed as the number of milliseconds after Jan 1, 1970 * 00:00:00 UTC. Events with a timestamp later than this time are not * exported.

*/ inline ExportTask& WithTo(long long value) { SetTo(value); return *this;} /** *

The name of the S3 bucket to which the log data was exported.

*/ inline const Aws::String& GetDestination() const{ return m_destination; } /** *

The name of the S3 bucket to which the log data was exported.

*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *

The name of the S3 bucket to which the log data was exported.

*/ inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; } /** *

The name of the S3 bucket to which the log data was exported.

*/ inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); } /** *

The name of the S3 bucket to which the log data was exported.

*/ inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); } /** *

The name of the S3 bucket to which the log data was exported.

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

The name of the S3 bucket to which the log data was exported.

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

The name of the S3 bucket to which the log data was exported.

*/ inline ExportTask& WithDestination(const char* value) { SetDestination(value); return *this;} /** *

The prefix that was used as the start of Amazon S3 key for every object * exported.

*/ inline const Aws::String& GetDestinationPrefix() const{ return m_destinationPrefix; } /** *

The prefix that was used as the start of Amazon S3 key for every object * exported.

*/ inline bool DestinationPrefixHasBeenSet() const { return m_destinationPrefixHasBeenSet; } /** *

The prefix that was used as the start of Amazon S3 key for every object * exported.

*/ inline void SetDestinationPrefix(const Aws::String& value) { m_destinationPrefixHasBeenSet = true; m_destinationPrefix = value; } /** *

The prefix that was used as the start of Amazon S3 key for every object * exported.

*/ inline void SetDestinationPrefix(Aws::String&& value) { m_destinationPrefixHasBeenSet = true; m_destinationPrefix = std::move(value); } /** *

The prefix that was used as the start of Amazon S3 key for every object * exported.

*/ inline void SetDestinationPrefix(const char* value) { m_destinationPrefixHasBeenSet = true; m_destinationPrefix.assign(value); } /** *

The prefix that was used as the start of Amazon S3 key for every object * exported.

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

The prefix that was used as the start of Amazon S3 key for every object * exported.

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

The prefix that was used as the start of Amazon S3 key for every object * exported.

*/ inline ExportTask& WithDestinationPrefix(const char* value) { SetDestinationPrefix(value); return *this;} /** *

The status of the export task.

*/ inline const ExportTaskStatus& GetStatus() const{ return m_status; } /** *

The status of the export task.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the export task.

*/ inline void SetStatus(const ExportTaskStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the export task.

*/ inline void SetStatus(ExportTaskStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the export task.

*/ inline ExportTask& WithStatus(const ExportTaskStatus& value) { SetStatus(value); return *this;} /** *

The status of the export task.

*/ inline ExportTask& WithStatus(ExportTaskStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Execution information about the export task.

*/ inline const ExportTaskExecutionInfo& GetExecutionInfo() const{ return m_executionInfo; } /** *

Execution information about the export task.

*/ inline bool ExecutionInfoHasBeenSet() const { return m_executionInfoHasBeenSet; } /** *

Execution information about the export task.

*/ inline void SetExecutionInfo(const ExportTaskExecutionInfo& value) { m_executionInfoHasBeenSet = true; m_executionInfo = value; } /** *

Execution information about the export task.

*/ inline void SetExecutionInfo(ExportTaskExecutionInfo&& value) { m_executionInfoHasBeenSet = true; m_executionInfo = std::move(value); } /** *

Execution information about the export task.

*/ inline ExportTask& WithExecutionInfo(const ExportTaskExecutionInfo& value) { SetExecutionInfo(value); return *this;} /** *

Execution information about the export task.

*/ inline ExportTask& WithExecutionInfo(ExportTaskExecutionInfo&& value) { SetExecutionInfo(std::move(value)); return *this;} private: Aws::String m_taskId; bool m_taskIdHasBeenSet = false; Aws::String m_taskName; bool m_taskNameHasBeenSet = false; Aws::String m_logGroupName; bool m_logGroupNameHasBeenSet = false; long long m_from; bool m_fromHasBeenSet = false; long long m_to; bool m_toHasBeenSet = false; Aws::String m_destination; bool m_destinationHasBeenSet = false; Aws::String m_destinationPrefix; bool m_destinationPrefixHasBeenSet = false; ExportTaskStatus m_status; bool m_statusHasBeenSet = false; ExportTaskExecutionInfo m_executionInfo; bool m_executionInfoHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws