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

The metrics for a time range within the evaluation portion of a dataset. This * object is part of the EvaluationResult object.

The * TestWindowStart and TestWindowEnd parameters are * determined by the BackTestWindowOffset parameter of the * EvaluationParameters object.

See Also:

AWS * API Reference

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

The timestamp that defines the start of the window.

*/ inline const Aws::Utils::DateTime& GetTestWindowStart() const{ return m_testWindowStart; } /** *

The timestamp that defines the start of the window.

*/ inline bool TestWindowStartHasBeenSet() const { return m_testWindowStartHasBeenSet; } /** *

The timestamp that defines the start of the window.

*/ inline void SetTestWindowStart(const Aws::Utils::DateTime& value) { m_testWindowStartHasBeenSet = true; m_testWindowStart = value; } /** *

The timestamp that defines the start of the window.

*/ inline void SetTestWindowStart(Aws::Utils::DateTime&& value) { m_testWindowStartHasBeenSet = true; m_testWindowStart = std::move(value); } /** *

The timestamp that defines the start of the window.

*/ inline WindowSummary& WithTestWindowStart(const Aws::Utils::DateTime& value) { SetTestWindowStart(value); return *this;} /** *

The timestamp that defines the start of the window.

*/ inline WindowSummary& WithTestWindowStart(Aws::Utils::DateTime&& value) { SetTestWindowStart(std::move(value)); return *this;} /** *

The timestamp that defines the end of the window.

*/ inline const Aws::Utils::DateTime& GetTestWindowEnd() const{ return m_testWindowEnd; } /** *

The timestamp that defines the end of the window.

*/ inline bool TestWindowEndHasBeenSet() const { return m_testWindowEndHasBeenSet; } /** *

The timestamp that defines the end of the window.

*/ inline void SetTestWindowEnd(const Aws::Utils::DateTime& value) { m_testWindowEndHasBeenSet = true; m_testWindowEnd = value; } /** *

The timestamp that defines the end of the window.

*/ inline void SetTestWindowEnd(Aws::Utils::DateTime&& value) { m_testWindowEndHasBeenSet = true; m_testWindowEnd = std::move(value); } /** *

The timestamp that defines the end of the window.

*/ inline WindowSummary& WithTestWindowEnd(const Aws::Utils::DateTime& value) { SetTestWindowEnd(value); return *this;} /** *

The timestamp that defines the end of the window.

*/ inline WindowSummary& WithTestWindowEnd(Aws::Utils::DateTime&& value) { SetTestWindowEnd(std::move(value)); return *this;} /** *

The number of data points within the window.

*/ inline int GetItemCount() const{ return m_itemCount; } /** *

The number of data points within the window.

*/ inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; } /** *

The number of data points within the window.

*/ inline void SetItemCount(int value) { m_itemCountHasBeenSet = true; m_itemCount = value; } /** *

The number of data points within the window.

*/ inline WindowSummary& WithItemCount(int value) { SetItemCount(value); return *this;} /** *

The type of evaluation.

  • SUMMARY - The average * metrics across all windows.

  • COMPUTED - The * metrics for the specified window.

*/ inline const EvaluationType& GetEvaluationType() const{ return m_evaluationType; } /** *

The type of evaluation.

  • SUMMARY - The average * metrics across all windows.

  • COMPUTED - The * metrics for the specified window.

*/ inline bool EvaluationTypeHasBeenSet() const { return m_evaluationTypeHasBeenSet; } /** *

The type of evaluation.

  • SUMMARY - The average * metrics across all windows.

  • COMPUTED - The * metrics for the specified window.

*/ inline void SetEvaluationType(const EvaluationType& value) { m_evaluationTypeHasBeenSet = true; m_evaluationType = value; } /** *

The type of evaluation.

  • SUMMARY - The average * metrics across all windows.

  • COMPUTED - The * metrics for the specified window.

*/ inline void SetEvaluationType(EvaluationType&& value) { m_evaluationTypeHasBeenSet = true; m_evaluationType = std::move(value); } /** *

The type of evaluation.

  • SUMMARY - The average * metrics across all windows.

  • COMPUTED - The * metrics for the specified window.

*/ inline WindowSummary& WithEvaluationType(const EvaluationType& value) { SetEvaluationType(value); return *this;} /** *

The type of evaluation.

  • SUMMARY - The average * metrics across all windows.

  • COMPUTED - The * metrics for the specified window.

*/ inline WindowSummary& WithEvaluationType(EvaluationType&& value) { SetEvaluationType(std::move(value)); return *this;} /** *

Provides metrics used to evaluate the performance of a predictor.

*/ inline const Metrics& GetMetrics() const{ return m_metrics; } /** *

Provides metrics used to evaluate the performance of a predictor.

*/ inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; } /** *

Provides metrics used to evaluate the performance of a predictor.

*/ inline void SetMetrics(const Metrics& value) { m_metricsHasBeenSet = true; m_metrics = value; } /** *

Provides metrics used to evaluate the performance of a predictor.

*/ inline void SetMetrics(Metrics&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); } /** *

Provides metrics used to evaluate the performance of a predictor.

*/ inline WindowSummary& WithMetrics(const Metrics& value) { SetMetrics(value); return *this;} /** *

Provides metrics used to evaluate the performance of a predictor.

*/ inline WindowSummary& WithMetrics(Metrics&& value) { SetMetrics(std::move(value)); return *this;} private: Aws::Utils::DateTime m_testWindowStart; bool m_testWindowStartHasBeenSet = false; Aws::Utils::DateTime m_testWindowEnd; bool m_testWindowEndHasBeenSet = false; int m_itemCount; bool m_itemCountHasBeenSet = false; EvaluationType m_evaluationType; bool m_evaluationTypeHasBeenSet = false; Metrics m_metrics; bool m_metricsHasBeenSet = false; }; } // namespace Model } // namespace ForecastService } // namespace Aws