/** * 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 FunnelChartVisual.

See * Also:

AWS * API Reference

*/ class FunnelChartSortConfiguration { public: AWS_QUICKSIGHT_API FunnelChartSortConfiguration(); AWS_QUICKSIGHT_API FunnelChartSortConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API FunnelChartSortConfiguration& 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 FunnelChartSortConfiguration& WithCategorySort(const Aws::Vector& value) { SetCategorySort(value); return *this;} /** *

The sort configuration of the category fields.

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

The sort configuration of the category fields.

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

The sort configuration of the category fields.

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

The limit on the number of categories displayed.

*/ inline const ItemsLimitConfiguration& GetCategoryItemsLimit() const{ return m_categoryItemsLimit; } /** *

The limit on the number of categories displayed.

*/ inline bool CategoryItemsLimitHasBeenSet() const { return m_categoryItemsLimitHasBeenSet; } /** *

The limit on the number of categories displayed.

*/ inline void SetCategoryItemsLimit(const ItemsLimitConfiguration& value) { m_categoryItemsLimitHasBeenSet = true; m_categoryItemsLimit = value; } /** *

The limit on the number of categories displayed.

*/ inline void SetCategoryItemsLimit(ItemsLimitConfiguration&& value) { m_categoryItemsLimitHasBeenSet = true; m_categoryItemsLimit = std::move(value); } /** *

The limit on the number of categories displayed.

*/ inline FunnelChartSortConfiguration& WithCategoryItemsLimit(const ItemsLimitConfiguration& value) { SetCategoryItemsLimit(value); return *this;} /** *

The limit on the number of categories displayed.

*/ inline FunnelChartSortConfiguration& WithCategoryItemsLimit(ItemsLimitConfiguration&& value) { SetCategoryItemsLimit(std::move(value)); return *this;} private: Aws::Vector m_categorySort; bool m_categorySortHasBeenSet = false; ItemsLimitConfiguration m_categoryItemsLimit; bool m_categoryItemsLimitHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws