/** * 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 conditional formatting options of a KPI visual.

See Also:

* AWS * API Reference

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

The conditional formatting for the primary value of a KPI visual.

*/ inline const KPIPrimaryValueConditionalFormatting& GetPrimaryValue() const{ return m_primaryValue; } /** *

The conditional formatting for the primary value of a KPI visual.

*/ inline bool PrimaryValueHasBeenSet() const { return m_primaryValueHasBeenSet; } /** *

The conditional formatting for the primary value of a KPI visual.

*/ inline void SetPrimaryValue(const KPIPrimaryValueConditionalFormatting& value) { m_primaryValueHasBeenSet = true; m_primaryValue = value; } /** *

The conditional formatting for the primary value of a KPI visual.

*/ inline void SetPrimaryValue(KPIPrimaryValueConditionalFormatting&& value) { m_primaryValueHasBeenSet = true; m_primaryValue = std::move(value); } /** *

The conditional formatting for the primary value of a KPI visual.

*/ inline KPIConditionalFormattingOption& WithPrimaryValue(const KPIPrimaryValueConditionalFormatting& value) { SetPrimaryValue(value); return *this;} /** *

The conditional formatting for the primary value of a KPI visual.

*/ inline KPIConditionalFormattingOption& WithPrimaryValue(KPIPrimaryValueConditionalFormatting&& value) { SetPrimaryValue(std::move(value)); return *this;} /** *

The conditional formatting for the progress bar of a KPI visual.

*/ inline const KPIProgressBarConditionalFormatting& GetProgressBar() const{ return m_progressBar; } /** *

The conditional formatting for the progress bar of a KPI visual.

*/ inline bool ProgressBarHasBeenSet() const { return m_progressBarHasBeenSet; } /** *

The conditional formatting for the progress bar of a KPI visual.

*/ inline void SetProgressBar(const KPIProgressBarConditionalFormatting& value) { m_progressBarHasBeenSet = true; m_progressBar = value; } /** *

The conditional formatting for the progress bar of a KPI visual.

*/ inline void SetProgressBar(KPIProgressBarConditionalFormatting&& value) { m_progressBarHasBeenSet = true; m_progressBar = std::move(value); } /** *

The conditional formatting for the progress bar of a KPI visual.

*/ inline KPIConditionalFormattingOption& WithProgressBar(const KPIProgressBarConditionalFormatting& value) { SetProgressBar(value); return *this;} /** *

The conditional formatting for the progress bar of a KPI visual.

*/ inline KPIConditionalFormattingOption& WithProgressBar(KPIProgressBarConditionalFormatting&& value) { SetProgressBar(std::move(value)); return *this;} private: KPIPrimaryValueConditionalFormatting m_primaryValue; bool m_primaryValueHasBeenSet = false; KPIProgressBarConditionalFormatting m_progressBar; bool m_progressBarHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws