/* * 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 table visual. *
** For more information, see Using tables as * visuals in the Amazon QuickSight User Guide. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TableVisual 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 TableConfiguration chartConfiguration; /** *
* The conditional formatting for a PivotTableVisual
.
*
* The list of custom actions that are configured for a visual. *
*/ 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 TableVisual 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 TableVisual 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 TableVisual withSubtitle(VisualSubtitleLabelOptions subtitle) { setSubtitle(subtitle); return this; } /** ** The configuration settings of the visual. *
* * @param chartConfiguration * The configuration settings of the visual. */ public void setChartConfiguration(TableConfiguration chartConfiguration) { this.chartConfiguration = chartConfiguration; } /** ** The configuration settings of the visual. *
* * @return The configuration settings of the visual. */ public TableConfiguration 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 TableVisual withChartConfiguration(TableConfiguration chartConfiguration) { setChartConfiguration(chartConfiguration); return this; } /** *
* The conditional formatting for a PivotTableVisual
.
*
PivotTableVisual
.
*/
public void setConditionalFormatting(TableConditionalFormatting conditionalFormatting) {
this.conditionalFormatting = conditionalFormatting;
}
/**
*
* The conditional formatting for a PivotTableVisual
.
*
PivotTableVisual
.
*/
public TableConditionalFormatting getConditionalFormatting() {
return this.conditionalFormatting;
}
/**
*
* The conditional formatting for a PivotTableVisual
.
*
PivotTableVisual
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TableVisual withConditionalFormatting(TableConditionalFormatting conditionalFormatting) {
setConditionalFormatting(conditionalFormatting);
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 TableVisual 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 TableVisual withActions(java.util.Collection