/** * 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 comparison display configuration of a KPI or gauge chart.

See * Also:

AWS * API Reference

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

The method of the comparison. Choose from the following options:

    *
  • DIFFERENCE

  • * PERCENT_DIFFERENCE

  • PERCENT

    *
*/ inline const ComparisonMethod& GetComparisonMethod() const{ return m_comparisonMethod; } /** *

The method of the comparison. Choose from the following options:

    *
  • DIFFERENCE

  • * PERCENT_DIFFERENCE

  • PERCENT

    *
*/ inline bool ComparisonMethodHasBeenSet() const { return m_comparisonMethodHasBeenSet; } /** *

The method of the comparison. Choose from the following options:

    *
  • DIFFERENCE

  • * PERCENT_DIFFERENCE

  • PERCENT

    *
*/ inline void SetComparisonMethod(const ComparisonMethod& value) { m_comparisonMethodHasBeenSet = true; m_comparisonMethod = value; } /** *

The method of the comparison. Choose from the following options:

    *
  • DIFFERENCE

  • * PERCENT_DIFFERENCE

  • PERCENT

    *
*/ inline void SetComparisonMethod(ComparisonMethod&& value) { m_comparisonMethodHasBeenSet = true; m_comparisonMethod = std::move(value); } /** *

The method of the comparison. Choose from the following options:

    *
  • DIFFERENCE

  • * PERCENT_DIFFERENCE

  • PERCENT

    *
*/ inline ComparisonConfiguration& WithComparisonMethod(const ComparisonMethod& value) { SetComparisonMethod(value); return *this;} /** *

The method of the comparison. Choose from the following options:

    *
  • DIFFERENCE

  • * PERCENT_DIFFERENCE

  • PERCENT

    *
*/ inline ComparisonConfiguration& WithComparisonMethod(ComparisonMethod&& value) { SetComparisonMethod(std::move(value)); return *this;} /** *

The format of the comparison.

*/ inline const ComparisonFormatConfiguration& GetComparisonFormat() const{ return m_comparisonFormat; } /** *

The format of the comparison.

*/ inline bool ComparisonFormatHasBeenSet() const { return m_comparisonFormatHasBeenSet; } /** *

The format of the comparison.

*/ inline void SetComparisonFormat(const ComparisonFormatConfiguration& value) { m_comparisonFormatHasBeenSet = true; m_comparisonFormat = value; } /** *

The format of the comparison.

*/ inline void SetComparisonFormat(ComparisonFormatConfiguration&& value) { m_comparisonFormatHasBeenSet = true; m_comparisonFormat = std::move(value); } /** *

The format of the comparison.

*/ inline ComparisonConfiguration& WithComparisonFormat(const ComparisonFormatConfiguration& value) { SetComparisonFormat(value); return *this;} /** *

The format of the comparison.

*/ inline ComparisonConfiguration& WithComparisonFormat(ComparisonFormatConfiguration&& value) { SetComparisonFormat(std::move(value)); return *this;} private: ComparisonMethod m_comparisonMethod; bool m_comparisonMethodHasBeenSet = false; ComparisonFormatConfiguration m_comparisonFormat; bool m_comparisonFormatHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws