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

The status, start time, and end time of a backtest, as well as a failure * reason if applicable.

See Also:

AWS * API Reference

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

The time at which the test began.

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

The time at which the test began.

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

The time at which the test began.

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

The time at which the test began.

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

The time at which the test began.

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

The time at which the test began.

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

The time at which the test ended.

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

The time at which the test ended.

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

The time at which the test ended.

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

The time at which the test ended.

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

The time at which the test ended.

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

The time at which the test ended.

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

The status of the test. Possible status values are:

  • * ACTIVE

  • CREATE_IN_PROGRESS

    *
  • CREATE_FAILED

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the test. Possible status values are:

  • * ACTIVE

  • CREATE_IN_PROGRESS

    *
  • CREATE_FAILED

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

The status of the test. Possible status values are:

  • * ACTIVE

  • CREATE_IN_PROGRESS

    *
  • CREATE_FAILED

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

The status of the test. Possible status values are:

  • * ACTIVE

  • CREATE_IN_PROGRESS

    *
  • CREATE_FAILED

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

The status of the test. Possible status values are:

  • * ACTIVE

  • CREATE_IN_PROGRESS

    *
  • CREATE_FAILED

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the test. Possible status values are:

  • * ACTIVE

  • CREATE_IN_PROGRESS

    *
  • CREATE_FAILED

*/ inline TestWindowSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the test. Possible status values are:

  • * ACTIVE

  • CREATE_IN_PROGRESS

    *
  • CREATE_FAILED

*/ inline TestWindowSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the test. Possible status values are:

  • * ACTIVE

  • CREATE_IN_PROGRESS

    *
  • CREATE_FAILED

*/ inline TestWindowSummary& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

If the test failed, the reason why it failed.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

If the test failed, the reason why it failed.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

If the test failed, the reason why it failed.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

If the test failed, the reason why it failed.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

If the test failed, the reason why it failed.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

If the test failed, the reason why it failed.

*/ inline TestWindowSummary& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

If the test failed, the reason why it failed.

*/ inline TestWindowSummary& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

If the test failed, the reason why it failed.

*/ inline TestWindowSummary& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::Utils::DateTime m_testWindowStart; bool m_testWindowStartHasBeenSet = false; Aws::Utils::DateTime m_testWindowEnd; bool m_testWindowEndHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace ForecastService } // namespace Aws