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

Provides the forecast to meet the target for a particular date.

See * Also:

AWS * API Reference

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

The date that you need the forecast results for.

*/ inline const Aws::Utils::DateTime& GetDate() const{ return m_date; } /** *

The date that you need the forecast results for.

*/ inline bool DateHasBeenSet() const { return m_dateHasBeenSet; } /** *

The date that you need the forecast results for.

*/ inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; } /** *

The date that you need the forecast results for.

*/ inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); } /** *

The date that you need the forecast results for.

*/ inline WhatIfPointScenario& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;} /** *

The date that you need the forecast results for.

*/ inline WhatIfPointScenario& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;} /** *

The target value that you want to meet for the provided date.

*/ inline double GetValue() const{ return m_value; } /** *

The target value that you want to meet for the provided date.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The target value that you want to meet for the provided date.

*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *

The target value that you want to meet for the provided date.

*/ inline WhatIfPointScenario& WithValue(double value) { SetValue(value); return *this;} private: Aws::Utils::DateTime m_date; bool m_dateHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws