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

The range setup of a numeric axis display range.

This is a union type * structure. For this structure to be valid, only one of the attributes can be * defined.

See Also:

AWS * API Reference

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

The minimum and maximum setup of an axis display range.

*/ inline const AxisDisplayMinMaxRange& GetMinMax() const{ return m_minMax; } /** *

The minimum and maximum setup of an axis display range.

*/ inline bool MinMaxHasBeenSet() const { return m_minMaxHasBeenSet; } /** *

The minimum and maximum setup of an axis display range.

*/ inline void SetMinMax(const AxisDisplayMinMaxRange& value) { m_minMaxHasBeenSet = true; m_minMax = value; } /** *

The minimum and maximum setup of an axis display range.

*/ inline void SetMinMax(AxisDisplayMinMaxRange&& value) { m_minMaxHasBeenSet = true; m_minMax = std::move(value); } /** *

The minimum and maximum setup of an axis display range.

*/ inline AxisDisplayRange& WithMinMax(const AxisDisplayMinMaxRange& value) { SetMinMax(value); return *this;} /** *

The minimum and maximum setup of an axis display range.

*/ inline AxisDisplayRange& WithMinMax(AxisDisplayMinMaxRange&& value) { SetMinMax(std::move(value)); return *this;} /** *

The data-driven setup of an axis display range.

*/ inline const AxisDisplayDataDrivenRange& GetDataDriven() const{ return m_dataDriven; } /** *

The data-driven setup of an axis display range.

*/ inline bool DataDrivenHasBeenSet() const { return m_dataDrivenHasBeenSet; } /** *

The data-driven setup of an axis display range.

*/ inline void SetDataDriven(const AxisDisplayDataDrivenRange& value) { m_dataDrivenHasBeenSet = true; m_dataDriven = value; } /** *

The data-driven setup of an axis display range.

*/ inline void SetDataDriven(AxisDisplayDataDrivenRange&& value) { m_dataDrivenHasBeenSet = true; m_dataDriven = std::move(value); } /** *

The data-driven setup of an axis display range.

*/ inline AxisDisplayRange& WithDataDriven(const AxisDisplayDataDrivenRange& value) { SetDataDriven(value); return *this;} /** *

The data-driven setup of an axis display range.

*/ inline AxisDisplayRange& WithDataDriven(AxisDisplayDataDrivenRange&& value) { SetDataDriven(std::move(value)); return *this;} private: AxisDisplayMinMaxRange m_minMax; bool m_minMaxHasBeenSet = false; AxisDisplayDataDrivenRange m_dataDriven; bool m_dataDrivenHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws