/** * 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 Athena { namespace Model { /** *

Contains statistics for a notebook calculation.

See Also:

AWS * API Reference

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

The data processing unit execution time in milliseconds for the * calculation.

*/ inline long long GetDpuExecutionInMillis() const{ return m_dpuExecutionInMillis; } /** *

The data processing unit execution time in milliseconds for the * calculation.

*/ inline bool DpuExecutionInMillisHasBeenSet() const { return m_dpuExecutionInMillisHasBeenSet; } /** *

The data processing unit execution time in milliseconds for the * calculation.

*/ inline void SetDpuExecutionInMillis(long long value) { m_dpuExecutionInMillisHasBeenSet = true; m_dpuExecutionInMillis = value; } /** *

The data processing unit execution time in milliseconds for the * calculation.

*/ inline CalculationStatistics& WithDpuExecutionInMillis(long long value) { SetDpuExecutionInMillis(value); return *this;} /** *

The progress of the calculation.

*/ inline const Aws::String& GetProgress() const{ return m_progress; } /** *

The progress of the calculation.

*/ inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; } /** *

The progress of the calculation.

*/ inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; } /** *

The progress of the calculation.

*/ inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); } /** *

The progress of the calculation.

*/ inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); } /** *

The progress of the calculation.

*/ inline CalculationStatistics& WithProgress(const Aws::String& value) { SetProgress(value); return *this;} /** *

The progress of the calculation.

*/ inline CalculationStatistics& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;} /** *

The progress of the calculation.

*/ inline CalculationStatistics& WithProgress(const char* value) { SetProgress(value); return *this;} private: long long m_dpuExecutionInMillis; bool m_dpuExecutionInMillisHasBeenSet = false; Aws::String m_progress; bool m_progressHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws