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

The configuration of a pie chart.

See Also:

AWS * API Reference

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

The field wells of the visual.

*/ inline const PieChartFieldWells& GetFieldWells() const{ return m_fieldWells; } /** *

The field wells of the visual.

*/ inline bool FieldWellsHasBeenSet() const { return m_fieldWellsHasBeenSet; } /** *

The field wells of the visual.

*/ inline void SetFieldWells(const PieChartFieldWells& value) { m_fieldWellsHasBeenSet = true; m_fieldWells = value; } /** *

The field wells of the visual.

*/ inline void SetFieldWells(PieChartFieldWells&& value) { m_fieldWellsHasBeenSet = true; m_fieldWells = std::move(value); } /** *

The field wells of the visual.

*/ inline PieChartConfiguration& WithFieldWells(const PieChartFieldWells& value) { SetFieldWells(value); return *this;} /** *

The field wells of the visual.

*/ inline PieChartConfiguration& WithFieldWells(PieChartFieldWells&& value) { SetFieldWells(std::move(value)); return *this;} /** *

The sort configuration of a pie chart.

*/ inline const PieChartSortConfiguration& GetSortConfiguration() const{ return m_sortConfiguration; } /** *

The sort configuration of a pie chart.

*/ inline bool SortConfigurationHasBeenSet() const { return m_sortConfigurationHasBeenSet; } /** *

The sort configuration of a pie chart.

*/ inline void SetSortConfiguration(const PieChartSortConfiguration& value) { m_sortConfigurationHasBeenSet = true; m_sortConfiguration = value; } /** *

The sort configuration of a pie chart.

*/ inline void SetSortConfiguration(PieChartSortConfiguration&& value) { m_sortConfigurationHasBeenSet = true; m_sortConfiguration = std::move(value); } /** *

The sort configuration of a pie chart.

*/ inline PieChartConfiguration& WithSortConfiguration(const PieChartSortConfiguration& value) { SetSortConfiguration(value); return *this;} /** *

The sort configuration of a pie chart.

*/ inline PieChartConfiguration& WithSortConfiguration(PieChartSortConfiguration&& value) { SetSortConfiguration(std::move(value)); return *this;} /** *

The options that determine the shape of the chart. This option determines * whether the chart is a pie chart or a donut chart.

*/ inline const DonutOptions& GetDonutOptions() const{ return m_donutOptions; } /** *

The options that determine the shape of the chart. This option determines * whether the chart is a pie chart or a donut chart.

*/ inline bool DonutOptionsHasBeenSet() const { return m_donutOptionsHasBeenSet; } /** *

The options that determine the shape of the chart. This option determines * whether the chart is a pie chart or a donut chart.

*/ inline void SetDonutOptions(const DonutOptions& value) { m_donutOptionsHasBeenSet = true; m_donutOptions = value; } /** *

The options that determine the shape of the chart. This option determines * whether the chart is a pie chart or a donut chart.

*/ inline void SetDonutOptions(DonutOptions&& value) { m_donutOptionsHasBeenSet = true; m_donutOptions = std::move(value); } /** *

The options that determine the shape of the chart. This option determines * whether the chart is a pie chart or a donut chart.

*/ inline PieChartConfiguration& WithDonutOptions(const DonutOptions& value) { SetDonutOptions(value); return *this;} /** *

The options that determine the shape of the chart. This option determines * whether the chart is a pie chart or a donut chart.

*/ inline PieChartConfiguration& WithDonutOptions(DonutOptions&& value) { SetDonutOptions(std::move(value)); return *this;} /** *

The small multiples setup for the visual.

*/ inline const SmallMultiplesOptions& GetSmallMultiplesOptions() const{ return m_smallMultiplesOptions; } /** *

The small multiples setup for the visual.

*/ inline bool SmallMultiplesOptionsHasBeenSet() const { return m_smallMultiplesOptionsHasBeenSet; } /** *

The small multiples setup for the visual.

*/ inline void SetSmallMultiplesOptions(const SmallMultiplesOptions& value) { m_smallMultiplesOptionsHasBeenSet = true; m_smallMultiplesOptions = value; } /** *

The small multiples setup for the visual.

*/ inline void SetSmallMultiplesOptions(SmallMultiplesOptions&& value) { m_smallMultiplesOptionsHasBeenSet = true; m_smallMultiplesOptions = std::move(value); } /** *

The small multiples setup for the visual.

*/ inline PieChartConfiguration& WithSmallMultiplesOptions(const SmallMultiplesOptions& value) { SetSmallMultiplesOptions(value); return *this;} /** *

The small multiples setup for the visual.

*/ inline PieChartConfiguration& WithSmallMultiplesOptions(SmallMultiplesOptions&& value) { SetSmallMultiplesOptions(std::move(value)); return *this;} /** *

The label options of the group/color that is displayed in a pie chart.

*/ inline const ChartAxisLabelOptions& GetCategoryLabelOptions() const{ return m_categoryLabelOptions; } /** *

The label options of the group/color that is displayed in a pie chart.

*/ inline bool CategoryLabelOptionsHasBeenSet() const { return m_categoryLabelOptionsHasBeenSet; } /** *

The label options of the group/color that is displayed in a pie chart.

*/ inline void SetCategoryLabelOptions(const ChartAxisLabelOptions& value) { m_categoryLabelOptionsHasBeenSet = true; m_categoryLabelOptions = value; } /** *

The label options of the group/color that is displayed in a pie chart.

*/ inline void SetCategoryLabelOptions(ChartAxisLabelOptions&& value) { m_categoryLabelOptionsHasBeenSet = true; m_categoryLabelOptions = std::move(value); } /** *

The label options of the group/color that is displayed in a pie chart.

*/ inline PieChartConfiguration& WithCategoryLabelOptions(const ChartAxisLabelOptions& value) { SetCategoryLabelOptions(value); return *this;} /** *

The label options of the group/color that is displayed in a pie chart.

*/ inline PieChartConfiguration& WithCategoryLabelOptions(ChartAxisLabelOptions&& value) { SetCategoryLabelOptions(std::move(value)); return *this;} /** *

The label options for the value that is displayed in a pie chart.

*/ inline const ChartAxisLabelOptions& GetValueLabelOptions() const{ return m_valueLabelOptions; } /** *

The label options for the value that is displayed in a pie chart.

*/ inline bool ValueLabelOptionsHasBeenSet() const { return m_valueLabelOptionsHasBeenSet; } /** *

The label options for the value that is displayed in a pie chart.

*/ inline void SetValueLabelOptions(const ChartAxisLabelOptions& value) { m_valueLabelOptionsHasBeenSet = true; m_valueLabelOptions = value; } /** *

The label options for the value that is displayed in a pie chart.

*/ inline void SetValueLabelOptions(ChartAxisLabelOptions&& value) { m_valueLabelOptionsHasBeenSet = true; m_valueLabelOptions = std::move(value); } /** *

The label options for the value that is displayed in a pie chart.

*/ inline PieChartConfiguration& WithValueLabelOptions(const ChartAxisLabelOptions& value) { SetValueLabelOptions(value); return *this;} /** *

The label options for the value that is displayed in a pie chart.

*/ inline PieChartConfiguration& WithValueLabelOptions(ChartAxisLabelOptions&& value) { SetValueLabelOptions(std::move(value)); return *this;} /** *

The legend display setup of the visual.

*/ inline const LegendOptions& GetLegend() const{ return m_legend; } /** *

The legend display setup of the visual.

*/ inline bool LegendHasBeenSet() const { return m_legendHasBeenSet; } /** *

The legend display setup of the visual.

*/ inline void SetLegend(const LegendOptions& value) { m_legendHasBeenSet = true; m_legend = value; } /** *

The legend display setup of the visual.

*/ inline void SetLegend(LegendOptions&& value) { m_legendHasBeenSet = true; m_legend = std::move(value); } /** *

The legend display setup of the visual.

*/ inline PieChartConfiguration& WithLegend(const LegendOptions& value) { SetLegend(value); return *this;} /** *

The legend display setup of the visual.

*/ inline PieChartConfiguration& WithLegend(LegendOptions&& value) { SetLegend(std::move(value)); return *this;} /** *

The options that determine if visual data labels are displayed.

*/ inline const DataLabelOptions& GetDataLabels() const{ return m_dataLabels; } /** *

The options that determine if visual data labels are displayed.

*/ inline bool DataLabelsHasBeenSet() const { return m_dataLabelsHasBeenSet; } /** *

The options that determine if visual data labels are displayed.

*/ inline void SetDataLabels(const DataLabelOptions& value) { m_dataLabelsHasBeenSet = true; m_dataLabels = value; } /** *

The options that determine if visual data labels are displayed.

*/ inline void SetDataLabels(DataLabelOptions&& value) { m_dataLabelsHasBeenSet = true; m_dataLabels = std::move(value); } /** *

The options that determine if visual data labels are displayed.

*/ inline PieChartConfiguration& WithDataLabels(const DataLabelOptions& value) { SetDataLabels(value); return *this;} /** *

The options that determine if visual data labels are displayed.

*/ inline PieChartConfiguration& WithDataLabels(DataLabelOptions&& value) { SetDataLabels(std::move(value)); return *this;} /** *

The tooltip display setup of the visual.

*/ inline const TooltipOptions& GetTooltip() const{ return m_tooltip; } /** *

The tooltip display setup of the visual.

*/ inline bool TooltipHasBeenSet() const { return m_tooltipHasBeenSet; } /** *

The tooltip display setup of the visual.

*/ inline void SetTooltip(const TooltipOptions& value) { m_tooltipHasBeenSet = true; m_tooltip = value; } /** *

The tooltip display setup of the visual.

*/ inline void SetTooltip(TooltipOptions&& value) { m_tooltipHasBeenSet = true; m_tooltip = std::move(value); } /** *

The tooltip display setup of the visual.

*/ inline PieChartConfiguration& WithTooltip(const TooltipOptions& value) { SetTooltip(value); return *this;} /** *

The tooltip display setup of the visual.

*/ inline PieChartConfiguration& WithTooltip(TooltipOptions&& value) { SetTooltip(std::move(value)); return *this;} /** *

The palette (chart color) display setup of the visual.

*/ inline const VisualPalette& GetVisualPalette() const{ return m_visualPalette; } /** *

The palette (chart color) display setup of the visual.

*/ inline bool VisualPaletteHasBeenSet() const { return m_visualPaletteHasBeenSet; } /** *

The palette (chart color) display setup of the visual.

*/ inline void SetVisualPalette(const VisualPalette& value) { m_visualPaletteHasBeenSet = true; m_visualPalette = value; } /** *

The palette (chart color) display setup of the visual.

*/ inline void SetVisualPalette(VisualPalette&& value) { m_visualPaletteHasBeenSet = true; m_visualPalette = std::move(value); } /** *

The palette (chart color) display setup of the visual.

*/ inline PieChartConfiguration& WithVisualPalette(const VisualPalette& value) { SetVisualPalette(value); return *this;} /** *

The palette (chart color) display setup of the visual.

*/ inline PieChartConfiguration& WithVisualPalette(VisualPalette&& value) { SetVisualPalette(std::move(value)); return *this;} /** *

The contribution analysis (anomaly configuration) setup of the visual.

*/ inline const Aws::Vector& GetContributionAnalysisDefaults() const{ return m_contributionAnalysisDefaults; } /** *

The contribution analysis (anomaly configuration) setup of the visual.

*/ inline bool ContributionAnalysisDefaultsHasBeenSet() const { return m_contributionAnalysisDefaultsHasBeenSet; } /** *

The contribution analysis (anomaly configuration) setup of the visual.

*/ inline void SetContributionAnalysisDefaults(const Aws::Vector& value) { m_contributionAnalysisDefaultsHasBeenSet = true; m_contributionAnalysisDefaults = value; } /** *

The contribution analysis (anomaly configuration) setup of the visual.

*/ inline void SetContributionAnalysisDefaults(Aws::Vector&& value) { m_contributionAnalysisDefaultsHasBeenSet = true; m_contributionAnalysisDefaults = std::move(value); } /** *

The contribution analysis (anomaly configuration) setup of the visual.

*/ inline PieChartConfiguration& WithContributionAnalysisDefaults(const Aws::Vector& value) { SetContributionAnalysisDefaults(value); return *this;} /** *

The contribution analysis (anomaly configuration) setup of the visual.

*/ inline PieChartConfiguration& WithContributionAnalysisDefaults(Aws::Vector&& value) { SetContributionAnalysisDefaults(std::move(value)); return *this;} /** *

The contribution analysis (anomaly configuration) setup of the visual.

*/ inline PieChartConfiguration& AddContributionAnalysisDefaults(const ContributionAnalysisDefault& value) { m_contributionAnalysisDefaultsHasBeenSet = true; m_contributionAnalysisDefaults.push_back(value); return *this; } /** *

The contribution analysis (anomaly configuration) setup of the visual.

*/ inline PieChartConfiguration& AddContributionAnalysisDefaults(ContributionAnalysisDefault&& value) { m_contributionAnalysisDefaultsHasBeenSet = true; m_contributionAnalysisDefaults.push_back(std::move(value)); return *this; } private: PieChartFieldWells m_fieldWells; bool m_fieldWellsHasBeenSet = false; PieChartSortConfiguration m_sortConfiguration; bool m_sortConfigurationHasBeenSet = false; DonutOptions m_donutOptions; bool m_donutOptionsHasBeenSet = false; SmallMultiplesOptions m_smallMultiplesOptions; bool m_smallMultiplesOptionsHasBeenSet = false; ChartAxisLabelOptions m_categoryLabelOptions; bool m_categoryLabelOptionsHasBeenSet = false; ChartAxisLabelOptions m_valueLabelOptions; bool m_valueLabelOptionsHasBeenSet = false; LegendOptions m_legend; bool m_legendHasBeenSet = false; DataLabelOptions m_dataLabels; bool m_dataLabelsHasBeenSet = false; TooltipOptions m_tooltip; bool m_tooltipHasBeenSet = false; VisualPalette m_visualPalette; bool m_visualPaletteHasBeenSet = false; Aws::Vector m_contributionAnalysisDefaults; bool m_contributionAnalysisDefaultsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws