/** * 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 pie chart.

See Also:

AWS * API Reference

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

The sort configuration of the category fields.

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

The sort configuration of the category fields.

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

The sort configuration of the category fields.

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

The limit on the number of categories that are displayed in a pie chart.

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

The limit on the number of categories that are displayed in a pie chart.

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

The limit on the number of categories that are displayed in a pie chart.

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

The limit on the number of categories that are displayed in a pie chart.

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

The limit on the number of categories that are displayed in a pie chart.

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

The limit on the number of categories that are displayed in a pie chart.

*/ inline PieChartSortConfiguration& WithCategoryItemsLimit(ItemsLimitConfiguration&& value) { SetCategoryItemsLimit(std::move(value)); return *this;} /** *

The sort configuration of the small multiples field.

*/ inline const Aws::Vector& GetSmallMultiplesSort() const{ return m_smallMultiplesSort; } /** *

The sort configuration of the small multiples field.

*/ inline bool SmallMultiplesSortHasBeenSet() const { return m_smallMultiplesSortHasBeenSet; } /** *

The sort configuration of the small multiples field.

*/ inline void SetSmallMultiplesSort(const Aws::Vector& value) { m_smallMultiplesSortHasBeenSet = true; m_smallMultiplesSort = value; } /** *

The sort configuration of the small multiples field.

*/ inline void SetSmallMultiplesSort(Aws::Vector&& value) { m_smallMultiplesSortHasBeenSet = true; m_smallMultiplesSort = std::move(value); } /** *

The sort configuration of the small multiples field.

*/ inline PieChartSortConfiguration& WithSmallMultiplesSort(const Aws::Vector& value) { SetSmallMultiplesSort(value); return *this;} /** *

The sort configuration of the small multiples field.

*/ inline PieChartSortConfiguration& WithSmallMultiplesSort(Aws::Vector&& value) { SetSmallMultiplesSort(std::move(value)); return *this;} /** *

The sort configuration of the small multiples field.

*/ inline PieChartSortConfiguration& AddSmallMultiplesSort(const FieldSortOptions& value) { m_smallMultiplesSortHasBeenSet = true; m_smallMultiplesSort.push_back(value); return *this; } /** *

The sort configuration of the small multiples field.

*/ inline PieChartSortConfiguration& AddSmallMultiplesSort(FieldSortOptions&& value) { m_smallMultiplesSortHasBeenSet = true; m_smallMultiplesSort.push_back(std::move(value)); return *this; } /** *

The limit on the number of small multiples panels that are displayed.

*/ inline const ItemsLimitConfiguration& GetSmallMultiplesLimitConfiguration() const{ return m_smallMultiplesLimitConfiguration; } /** *

The limit on the number of small multiples panels that are displayed.

*/ inline bool SmallMultiplesLimitConfigurationHasBeenSet() const { return m_smallMultiplesLimitConfigurationHasBeenSet; } /** *

The limit on the number of small multiples panels that are displayed.

*/ inline void SetSmallMultiplesLimitConfiguration(const ItemsLimitConfiguration& value) { m_smallMultiplesLimitConfigurationHasBeenSet = true; m_smallMultiplesLimitConfiguration = value; } /** *

The limit on the number of small multiples panels that are displayed.

*/ inline void SetSmallMultiplesLimitConfiguration(ItemsLimitConfiguration&& value) { m_smallMultiplesLimitConfigurationHasBeenSet = true; m_smallMultiplesLimitConfiguration = std::move(value); } /** *

The limit on the number of small multiples panels that are displayed.

*/ inline PieChartSortConfiguration& WithSmallMultiplesLimitConfiguration(const ItemsLimitConfiguration& value) { SetSmallMultiplesLimitConfiguration(value); return *this;} /** *

The limit on the number of small multiples panels that are displayed.

*/ inline PieChartSortConfiguration& WithSmallMultiplesLimitConfiguration(ItemsLimitConfiguration&& value) { SetSmallMultiplesLimitConfiguration(std::move(value)); return *this;} private: Aws::Vector m_categorySort; bool m_categorySortHasBeenSet = false; ItemsLimitConfiguration m_categoryItemsLimit; bool m_categoryItemsLimitHasBeenSet = false; Aws::Vector m_smallMultiplesSort; bool m_smallMultiplesSortHasBeenSet = false; ItemsLimitConfiguration m_smallMultiplesLimitConfiguration; bool m_smallMultiplesLimitConfigurationHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws