/* * 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 sankey diagram. *
** For more information, see Using * Sankey diagrams in the Amazon QuickSight User Guide. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SankeyDiagramVisual 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 of a sankey diagram. *
*/ private SankeyDiagramChartConfiguration chartConfiguration; /** ** 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 SankeyDiagramVisual 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 SankeyDiagramVisual 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 SankeyDiagramVisual withSubtitle(VisualSubtitleLabelOptions subtitle) { setSubtitle(subtitle); return this; } /** ** The configuration of a sankey diagram. *
* * @param chartConfiguration * The configuration of a sankey diagram. */ public void setChartConfiguration(SankeyDiagramChartConfiguration chartConfiguration) { this.chartConfiguration = chartConfiguration; } /** ** The configuration of a sankey diagram. *
* * @return The configuration of a sankey diagram. */ public SankeyDiagramChartConfiguration getChartConfiguration() { return this.chartConfiguration; } /** ** The configuration of a sankey diagram. *
* * @param chartConfiguration * The configuration of a sankey diagram. * @return Returns a reference to this object so that method calls can be chained together. */ public SankeyDiagramVisual withChartConfiguration(SankeyDiagramChartConfiguration 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 SankeyDiagramVisual 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 SankeyDiagramVisual withActions(java.util.Collection