/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.quicksight.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The configuration of a pie chart. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PieChartConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** The field wells of the visual. *
*/ private PieChartFieldWells fieldWells; /** ** The sort configuration of a pie chart. *
*/ private PieChartSortConfiguration sortConfiguration; /** ** The options that determine the shape of the chart. This option determines whether the chart is a pie chart or a * donut chart. *
*/ private DonutOptions donutOptions; /** ** The small multiples setup for the visual. *
*/ private SmallMultiplesOptions smallMultiplesOptions; /** ** The label options of the group/color that is displayed in a pie chart. *
*/ private ChartAxisLabelOptions categoryLabelOptions; /** ** The label options for the value that is displayed in a pie chart. *
*/ private ChartAxisLabelOptions valueLabelOptions; /** ** The legend display setup of the visual. *
*/ private LegendOptions legend; /** ** The options that determine if visual data labels are displayed. *
*/ private DataLabelOptions dataLabels; /** ** The tooltip display setup of the visual. *
*/ private TooltipOptions tooltip; /** ** The palette (chart color) display setup of the visual. *
*/ private VisualPalette visualPalette; /** ** The contribution analysis (anomaly configuration) setup of the visual. *
*/ private java.util.List* The field wells of the visual. *
* * @param fieldWells * The field wells of the visual. */ public void setFieldWells(PieChartFieldWells fieldWells) { this.fieldWells = fieldWells; } /** ** The field wells of the visual. *
* * @return The field wells of the visual. */ public PieChartFieldWells getFieldWells() { return this.fieldWells; } /** ** The field wells of the visual. *
* * @param fieldWells * The field wells of the visual. * @return Returns a reference to this object so that method calls can be chained together. */ public PieChartConfiguration withFieldWells(PieChartFieldWells fieldWells) { setFieldWells(fieldWells); return this; } /** ** The sort configuration of a pie chart. *
* * @param sortConfiguration * The sort configuration of a pie chart. */ public void setSortConfiguration(PieChartSortConfiguration sortConfiguration) { this.sortConfiguration = sortConfiguration; } /** ** The sort configuration of a pie chart. *
* * @return The sort configuration of a pie chart. */ public PieChartSortConfiguration getSortConfiguration() { return this.sortConfiguration; } /** ** The sort configuration of a pie chart. *
* * @param sortConfiguration * The sort configuration of a pie chart. * @return Returns a reference to this object so that method calls can be chained together. */ public PieChartConfiguration withSortConfiguration(PieChartSortConfiguration sortConfiguration) { setSortConfiguration(sortConfiguration); 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. *
* * @param donutOptions * The options that determine the shape of the chart. This option determines whether the chart is a pie chart * or a donut chart. */ public void setDonutOptions(DonutOptions donutOptions) { this.donutOptions = donutOptions; } /** ** The options that determine the shape of the chart. This option determines whether the chart is a pie chart or a * donut chart. *
* * @return The options that determine the shape of the chart. This option determines whether the chart is a pie * chart or a donut chart. */ public DonutOptions getDonutOptions() { return this.donutOptions; } /** ** The options that determine the shape of the chart. This option determines whether the chart is a pie chart or a * donut chart. *
* * @param donutOptions * The options that determine the shape of the chart. This option determines whether the chart is a pie chart * or a donut chart. * @return Returns a reference to this object so that method calls can be chained together. */ public PieChartConfiguration withDonutOptions(DonutOptions donutOptions) { setDonutOptions(donutOptions); return this; } /** ** The small multiples setup for the visual. *
* * @param smallMultiplesOptions * The small multiples setup for the visual. */ public void setSmallMultiplesOptions(SmallMultiplesOptions smallMultiplesOptions) { this.smallMultiplesOptions = smallMultiplesOptions; } /** ** The small multiples setup for the visual. *
* * @return The small multiples setup for the visual. */ public SmallMultiplesOptions getSmallMultiplesOptions() { return this.smallMultiplesOptions; } /** ** The small multiples setup for the visual. *
* * @param smallMultiplesOptions * The small multiples setup for the visual. * @return Returns a reference to this object so that method calls can be chained together. */ public PieChartConfiguration withSmallMultiplesOptions(SmallMultiplesOptions smallMultiplesOptions) { setSmallMultiplesOptions(smallMultiplesOptions); return this; } /** ** The label options of the group/color that is displayed in a pie chart. *
* * @param categoryLabelOptions * The label options of the group/color that is displayed in a pie chart. */ public void setCategoryLabelOptions(ChartAxisLabelOptions categoryLabelOptions) { this.categoryLabelOptions = categoryLabelOptions; } /** ** The label options of the group/color that is displayed in a pie chart. *
* * @return The label options of the group/color that is displayed in a pie chart. */ public ChartAxisLabelOptions getCategoryLabelOptions() { return this.categoryLabelOptions; } /** ** The label options of the group/color that is displayed in a pie chart. *
* * @param categoryLabelOptions * The label options of the group/color that is displayed in a pie chart. * @return Returns a reference to this object so that method calls can be chained together. */ public PieChartConfiguration withCategoryLabelOptions(ChartAxisLabelOptions categoryLabelOptions) { setCategoryLabelOptions(categoryLabelOptions); return this; } /** ** The label options for the value that is displayed in a pie chart. *
* * @param valueLabelOptions * The label options for the value that is displayed in a pie chart. */ public void setValueLabelOptions(ChartAxisLabelOptions valueLabelOptions) { this.valueLabelOptions = valueLabelOptions; } /** ** The label options for the value that is displayed in a pie chart. *
* * @return The label options for the value that is displayed in a pie chart. */ public ChartAxisLabelOptions getValueLabelOptions() { return this.valueLabelOptions; } /** ** The label options for the value that is displayed in a pie chart. *
* * @param valueLabelOptions * The label options for the value that is displayed in a pie chart. * @return Returns a reference to this object so that method calls can be chained together. */ public PieChartConfiguration withValueLabelOptions(ChartAxisLabelOptions valueLabelOptions) { setValueLabelOptions(valueLabelOptions); return this; } /** ** The legend display setup of the visual. *
* * @param legend * The legend display setup of the visual. */ public void setLegend(LegendOptions legend) { this.legend = legend; } /** ** The legend display setup of the visual. *
* * @return The legend display setup of the visual. */ public LegendOptions getLegend() { return this.legend; } /** ** The legend display setup of the visual. *
* * @param legend * The legend display setup of the visual. * @return Returns a reference to this object so that method calls can be chained together. */ public PieChartConfiguration withLegend(LegendOptions legend) { setLegend(legend); return this; } /** ** The options that determine if visual data labels are displayed. *
* * @param dataLabels * The options that determine if visual data labels are displayed. */ public void setDataLabels(DataLabelOptions dataLabels) { this.dataLabels = dataLabels; } /** ** The options that determine if visual data labels are displayed. *
* * @return The options that determine if visual data labels are displayed. */ public DataLabelOptions getDataLabels() { return this.dataLabels; } /** ** The options that determine if visual data labels are displayed. *
* * @param dataLabels * The options that determine if visual data labels are displayed. * @return Returns a reference to this object so that method calls can be chained together. */ public PieChartConfiguration withDataLabels(DataLabelOptions dataLabels) { setDataLabels(dataLabels); return this; } /** ** The tooltip display setup of the visual. *
* * @param tooltip * The tooltip display setup of the visual. */ public void setTooltip(TooltipOptions tooltip) { this.tooltip = tooltip; } /** ** The tooltip display setup of the visual. *
* * @return The tooltip display setup of the visual. */ public TooltipOptions getTooltip() { return this.tooltip; } /** ** The tooltip display setup of the visual. *
* * @param tooltip * The tooltip display setup of the visual. * @return Returns a reference to this object so that method calls can be chained together. */ public PieChartConfiguration withTooltip(TooltipOptions tooltip) { setTooltip(tooltip); return this; } /** ** The palette (chart color) display setup of the visual. *
* * @param visualPalette * The palette (chart color) display setup of the visual. */ public void setVisualPalette(VisualPalette visualPalette) { this.visualPalette = visualPalette; } /** ** The palette (chart color) display setup of the visual. *
* * @return The palette (chart color) display setup of the visual. */ public VisualPalette getVisualPalette() { return this.visualPalette; } /** ** The palette (chart color) display setup of the visual. *
* * @param visualPalette * The palette (chart color) display setup of the visual. * @return Returns a reference to this object so that method calls can be chained together. */ public PieChartConfiguration withVisualPalette(VisualPalette visualPalette) { setVisualPalette(visualPalette); return this; } /** ** The contribution analysis (anomaly configuration) setup of the visual. *
* * @return The contribution analysis (anomaly configuration) setup of the visual. */ public java.util.List* The contribution analysis (anomaly configuration) setup of the visual. *
* * @param contributionAnalysisDefaults * The contribution analysis (anomaly configuration) setup of the visual. */ public void setContributionAnalysisDefaults(java.util.Collection* The contribution analysis (anomaly configuration) setup of the visual. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setContributionAnalysisDefaults(java.util.Collection)} or * {@link #withContributionAnalysisDefaults(java.util.Collection)} if you want to override the existing values. *
* * @param contributionAnalysisDefaults * The contribution analysis (anomaly configuration) setup of the visual. * @return Returns a reference to this object so that method calls can be chained together. */ public PieChartConfiguration withContributionAnalysisDefaults(ContributionAnalysisDefault... contributionAnalysisDefaults) { if (this.contributionAnalysisDefaults == null) { setContributionAnalysisDefaults(new java.util.ArrayList* The contribution analysis (anomaly configuration) setup of the visual. *
* * @param contributionAnalysisDefaults * The contribution analysis (anomaly configuration) setup of the visual. * @return Returns a reference to this object so that method calls can be chained together. */ public PieChartConfiguration withContributionAnalysisDefaults(java.util.Collection