/* * 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; /** *
* A bar chart. *
*
* The BarChartVisual
structure describes a visual that is a member of the bar chart family. The following
* charts can be described using this structure:
*
* Horizontal bar chart *
** Vertical bar chart *
** Horizontal stacked bar chart *
** Vertical stacked bar chart *
** Horizontal stacked 100% bar chart *
** Vertical stacked 100% bar chart *
** For more information, see Using bar * charts in the Amazon QuickSight User Guide. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BarChartVisual implements Serializable, Cloneable, StructuredPojo { /** ** The unique identifier of a visual. This identifier must be unique within the context of a dashboard, template, or * analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers. *
*/ private String visualId; /** ** The title that is displayed on the visual. *
*/ private VisualTitleLabelOptions title; /** ** The subtitle that is displayed on the visual. *
*/ private VisualSubtitleLabelOptions subtitle; /** ** The configuration settings of the visual. *
*/ private BarChartConfiguration chartConfiguration; /** ** The list of custom actions that are configured for a visual. *
*/ private java.util.List* The column hierarchy that is used during drill-downs and drill-ups. *
*/ private java.util.List* The unique identifier of a visual. This identifier must be unique within the context of a dashboard, template, or * analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers. *
* * @param visualId * The unique identifier of a visual. This identifier must be unique within the context of a dashboard, * template, or analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers. */ public void setVisualId(String visualId) { this.visualId = visualId; } /** ** The unique identifier of a visual. This identifier must be unique within the context of a dashboard, template, or * analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers. *
* * @return The unique identifier of a visual. This identifier must be unique within the context of a dashboard, * template, or analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers. */ public String getVisualId() { return this.visualId; } /** ** The unique identifier of a visual. This identifier must be unique within the context of a dashboard, template, or * analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers. *
* * @param visualId * The unique identifier of a visual. This identifier must be unique within the context of a dashboard, * template, or analysis. Two dashboards, analyses, or templates can have visuals with the same identifiers. * @return Returns a reference to this object so that method calls can be chained together. */ public BarChartVisual withVisualId(String visualId) { setVisualId(visualId); return this; } /** ** The title that is displayed on the visual. *
* * @param title * The title that is displayed on the visual. */ public void setTitle(VisualTitleLabelOptions title) { this.title = title; } /** ** The title that is displayed on the visual. *
* * @return The title that is displayed on the visual. */ public VisualTitleLabelOptions getTitle() { return this.title; } /** ** The title that is displayed on the visual. *
* * @param title * The title that is displayed on the visual. * @return Returns a reference to this object so that method calls can be chained together. */ public BarChartVisual withTitle(VisualTitleLabelOptions title) { setTitle(title); return this; } /** ** The subtitle that is displayed on the visual. *
* * @param subtitle * The subtitle that is displayed on the visual. */ public void setSubtitle(VisualSubtitleLabelOptions subtitle) { this.subtitle = subtitle; } /** ** The subtitle that is displayed on the visual. *
* * @return The subtitle that is displayed on the visual. */ public VisualSubtitleLabelOptions getSubtitle() { return this.subtitle; } /** ** The subtitle that is displayed on the visual. *
* * @param subtitle * The subtitle that is displayed on the visual. * @return Returns a reference to this object so that method calls can be chained together. */ public BarChartVisual withSubtitle(VisualSubtitleLabelOptions subtitle) { setSubtitle(subtitle); return this; } /** ** The configuration settings of the visual. *
* * @param chartConfiguration * The configuration settings of the visual. */ public void setChartConfiguration(BarChartConfiguration chartConfiguration) { this.chartConfiguration = chartConfiguration; } /** ** The configuration settings of the visual. *
* * @return The configuration settings of the visual. */ public BarChartConfiguration getChartConfiguration() { return this.chartConfiguration; } /** ** The configuration settings of the visual. *
* * @param chartConfiguration * The configuration settings of the visual. * @return Returns a reference to this object so that method calls can be chained together. */ public BarChartVisual withChartConfiguration(BarChartConfiguration chartConfiguration) { setChartConfiguration(chartConfiguration); return this; } /** ** The list of custom actions that are configured for a visual. *
* * @return The list of custom actions that are configured for a visual. */ public java.util.List* The list of custom actions that are configured for a visual. *
* * @param actions * The list of custom actions that are configured for a visual. */ public void setActions(java.util.Collection* The list of custom actions that are configured for a visual. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setActions(java.util.Collection)} or {@link #withActions(java.util.Collection)} if you want to override * the existing values. *
* * @param actions * The list of custom actions that are configured for a visual. * @return Returns a reference to this object so that method calls can be chained together. */ public BarChartVisual withActions(VisualCustomAction... actions) { if (this.actions == null) { setActions(new java.util.ArrayList* The list of custom actions that are configured for a visual. *
* * @param actions * The list of custom actions that are configured for a visual. * @return Returns a reference to this object so that method calls can be chained together. */ public BarChartVisual withActions(java.util.Collection* The column hierarchy that is used during drill-downs and drill-ups. *
* * @return The column hierarchy that is used during drill-downs and drill-ups. */ public java.util.List* The column hierarchy that is used during drill-downs and drill-ups. *
* * @param columnHierarchies * The column hierarchy that is used during drill-downs and drill-ups. */ public void setColumnHierarchies(java.util.Collection* The column hierarchy that is used during drill-downs and drill-ups. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setColumnHierarchies(java.util.Collection)} or {@link #withColumnHierarchies(java.util.Collection)} if * you want to override the existing values. *
* * @param columnHierarchies * The column hierarchy that is used during drill-downs and drill-ups. * @return Returns a reference to this object so that method calls can be chained together. */ public BarChartVisual withColumnHierarchies(ColumnHierarchy... columnHierarchies) { if (this.columnHierarchies == null) { setColumnHierarchies(new java.util.ArrayList* The column hierarchy that is used during drill-downs and drill-ups. *
* * @param columnHierarchies * The column hierarchy that is used during drill-downs and drill-ups. * @return Returns a reference to this object so that method calls can be chained together. */ public BarChartVisual withColumnHierarchies(java.util.Collection