/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace FSx { namespace Model { /** *

Provides the task status showing a running total of the total number of files * to be processed, the number successfully processed, and the number of files the * task failed to process.

See Also:

AWS * API Reference

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

The total number of files that the task will process. While a task is * executing, the sum of SucceededCount plus FailedCount * may not equal TotalCount. When the task is complete, * TotalCount equals the sum of SucceededCount plus * FailedCount.

*/ inline long long GetTotalCount() const{ return m_totalCount; } /** *

The total number of files that the task will process. While a task is * executing, the sum of SucceededCount plus FailedCount * may not equal TotalCount. When the task is complete, * TotalCount equals the sum of SucceededCount plus * FailedCount.

*/ inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; } /** *

The total number of files that the task will process. While a task is * executing, the sum of SucceededCount plus FailedCount * may not equal TotalCount. When the task is complete, * TotalCount equals the sum of SucceededCount plus * FailedCount.

*/ inline void SetTotalCount(long long value) { m_totalCountHasBeenSet = true; m_totalCount = value; } /** *

The total number of files that the task will process. While a task is * executing, the sum of SucceededCount plus FailedCount * may not equal TotalCount. When the task is complete, * TotalCount equals the sum of SucceededCount plus * FailedCount.

*/ inline DataRepositoryTaskStatus& WithTotalCount(long long value) { SetTotalCount(value); return *this;} /** *

A running total of the number of files that the task has successfully * processed.

*/ inline long long GetSucceededCount() const{ return m_succeededCount; } /** *

A running total of the number of files that the task has successfully * processed.

*/ inline bool SucceededCountHasBeenSet() const { return m_succeededCountHasBeenSet; } /** *

A running total of the number of files that the task has successfully * processed.

*/ inline void SetSucceededCount(long long value) { m_succeededCountHasBeenSet = true; m_succeededCount = value; } /** *

A running total of the number of files that the task has successfully * processed.

*/ inline DataRepositoryTaskStatus& WithSucceededCount(long long value) { SetSucceededCount(value); return *this;} /** *

A running total of the number of files that the task failed to process.

*/ inline long long GetFailedCount() const{ return m_failedCount; } /** *

A running total of the number of files that the task failed to process.

*/ inline bool FailedCountHasBeenSet() const { return m_failedCountHasBeenSet; } /** *

A running total of the number of files that the task failed to process.

*/ inline void SetFailedCount(long long value) { m_failedCountHasBeenSet = true; m_failedCount = value; } /** *

A running total of the number of files that the task failed to process.

*/ inline DataRepositoryTaskStatus& WithFailedCount(long long value) { SetFailedCount(value); return *this;} /** *

The time at which the task status was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

The time at which the task status was last updated.

*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

The time at which the task status was last updated.

*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *

The time at which the task status was last updated.

*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *

The time at which the task status was last updated.

*/ inline DataRepositoryTaskStatus& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

The time at which the task status was last updated.

*/ inline DataRepositoryTaskStatus& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *

The total amount of data, in GiB, released by an Amazon File Cache * AUTO_RELEASE_DATA task that automatically releases files from the cache.

*/ inline long long GetReleasedCapacity() const{ return m_releasedCapacity; } /** *

The total amount of data, in GiB, released by an Amazon File Cache * AUTO_RELEASE_DATA task that automatically releases files from the cache.

*/ inline bool ReleasedCapacityHasBeenSet() const { return m_releasedCapacityHasBeenSet; } /** *

The total amount of data, in GiB, released by an Amazon File Cache * AUTO_RELEASE_DATA task that automatically releases files from the cache.

*/ inline void SetReleasedCapacity(long long value) { m_releasedCapacityHasBeenSet = true; m_releasedCapacity = value; } /** *

The total amount of data, in GiB, released by an Amazon File Cache * AUTO_RELEASE_DATA task that automatically releases files from the cache.

*/ inline DataRepositoryTaskStatus& WithReleasedCapacity(long long value) { SetReleasedCapacity(value); return *this;} private: long long m_totalCount; bool m_totalCountHasBeenSet = false; long long m_succeededCount; bool m_succeededCountHasBeenSet = false; long long m_failedCount; bool m_failedCountHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; long long m_releasedCapacity; bool m_releasedCapacityHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws