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

The sort configuration of a waterfall visual.

See Also:

AWS * API Reference

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

The sort configuration of the category fields.

*/ inline const Aws::Vector& GetCategorySort() const{ return m_categorySort; } /** *

The sort configuration of the category fields.

*/ inline bool CategorySortHasBeenSet() const { return m_categorySortHasBeenSet; } /** *

The sort configuration of the category fields.

*/ inline void SetCategorySort(const Aws::Vector& value) { m_categorySortHasBeenSet = true; m_categorySort = value; } /** *

The sort configuration of the category fields.

*/ inline void SetCategorySort(Aws::Vector&& value) { m_categorySortHasBeenSet = true; m_categorySort = std::move(value); } /** *

The sort configuration of the category fields.

*/ inline WaterfallChartSortConfiguration& WithCategorySort(const Aws::Vector& value) { SetCategorySort(value); return *this;} /** *

The sort configuration of the category fields.

*/ inline WaterfallChartSortConfiguration& WithCategorySort(Aws::Vector&& value) { SetCategorySort(std::move(value)); return *this;} /** *

The sort configuration of the category fields.

*/ inline WaterfallChartSortConfiguration& AddCategorySort(const FieldSortOptions& value) { m_categorySortHasBeenSet = true; m_categorySort.push_back(value); return *this; } /** *

The sort configuration of the category fields.

*/ inline WaterfallChartSortConfiguration& AddCategorySort(FieldSortOptions&& value) { m_categorySortHasBeenSet = true; m_categorySort.push_back(std::move(value)); return *this; } /** *

The limit on the number of bar groups that are displayed.

*/ inline const ItemsLimitConfiguration& GetBreakdownItemsLimit() const{ return m_breakdownItemsLimit; } /** *

The limit on the number of bar groups that are displayed.

*/ inline bool BreakdownItemsLimitHasBeenSet() const { return m_breakdownItemsLimitHasBeenSet; } /** *

The limit on the number of bar groups that are displayed.

*/ inline void SetBreakdownItemsLimit(const ItemsLimitConfiguration& value) { m_breakdownItemsLimitHasBeenSet = true; m_breakdownItemsLimit = value; } /** *

The limit on the number of bar groups that are displayed.

*/ inline void SetBreakdownItemsLimit(ItemsLimitConfiguration&& value) { m_breakdownItemsLimitHasBeenSet = true; m_breakdownItemsLimit = std::move(value); } /** *

The limit on the number of bar groups that are displayed.

*/ inline WaterfallChartSortConfiguration& WithBreakdownItemsLimit(const ItemsLimitConfiguration& value) { SetBreakdownItemsLimit(value); return *this;} /** *

The limit on the number of bar groups that are displayed.

*/ inline WaterfallChartSortConfiguration& WithBreakdownItemsLimit(ItemsLimitConfiguration&& value) { SetBreakdownItemsLimit(std::move(value)); return *this;} private: Aws::Vector m_categorySort; bool m_categorySortHasBeenSet = false; ItemsLimitConfiguration m_breakdownItemsLimit; bool m_breakdownItemsLimitHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws