/* * 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; /** *
* Dashboard version. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DashboardVersion implements Serializable, Cloneable, StructuredPojo { /** ** The time that this dashboard version was created. *
*/ private java.util.Date createdTime; /** ** Errors associated with this dashboard version. *
*/ private java.util.List* Version number for this version of the dashboard. *
*/ private Long versionNumber; /** ** The HTTP status of the request. *
*/ private String status; /** ** The Amazon Resource Name (ARN) of the resource. *
*/ private String arn; /** ** Source entity ARN. *
*/ private String sourceEntityArn; /** ** The Amazon Resource Numbers (ARNs) for the datasets that are associated with this version of the dashboard. *
*/ private java.util.List* Description. *
*/ private String description; /** ** The ARN of the theme associated with a version of the dashboard. *
*/ private String themeArn; /** ** A list of the associated sheets with the unique identifier and name of each sheet. *
*/ private java.util.List* The time that this dashboard version was created. *
* * @param createdTime * The time that this dashboard version was created. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** ** The time that this dashboard version was created. *
* * @return The time that this dashboard version was created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** ** The time that this dashboard version was created. *
* * @param createdTime * The time that this dashboard version was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardVersion withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** ** Errors associated with this dashboard version. *
* * @return Errors associated with this dashboard version. */ public java.util.List* Errors associated with this dashboard version. *
* * @param errors * Errors associated with this dashboard version. */ public void setErrors(java.util.Collection* Errors associated with this dashboard version. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setErrors(java.util.Collection)} or {@link #withErrors(java.util.Collection)} if you want to override the * existing values. *
* * @param errors * Errors associated with this dashboard version. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardVersion withErrors(DashboardError... errors) { if (this.errors == null) { setErrors(new java.util.ArrayList* Errors associated with this dashboard version. *
* * @param errors * Errors associated with this dashboard version. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardVersion withErrors(java.util.Collection* Version number for this version of the dashboard. *
* * @param versionNumber * Version number for this version of the dashboard. */ public void setVersionNumber(Long versionNumber) { this.versionNumber = versionNumber; } /** ** Version number for this version of the dashboard. *
* * @return Version number for this version of the dashboard. */ public Long getVersionNumber() { return this.versionNumber; } /** ** Version number for this version of the dashboard. *
* * @param versionNumber * Version number for this version of the dashboard. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardVersion withVersionNumber(Long versionNumber) { setVersionNumber(versionNumber); return this; } /** ** The HTTP status of the request. *
* * @param status * The HTTP status of the request. * @see ResourceStatus */ public void setStatus(String status) { this.status = status; } /** ** The HTTP status of the request. *
* * @return The HTTP status of the request. * @see ResourceStatus */ public String getStatus() { return this.status; } /** ** The HTTP status of the request. *
* * @param status * The HTTP status of the request. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceStatus */ public DashboardVersion withStatus(String status) { setStatus(status); return this; } /** ** The HTTP status of the request. *
* * @param status * The HTTP status of the request. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceStatus */ public DashboardVersion withStatus(ResourceStatus status) { this.status = status.toString(); return this; } /** ** The Amazon Resource Name (ARN) of the resource. *
* * @param arn * The Amazon Resource Name (ARN) of the resource. */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN) of the resource. *
* * @return The Amazon Resource Name (ARN) of the resource. */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (ARN) of the resource. *
* * @param arn * The Amazon Resource Name (ARN) of the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardVersion withArn(String arn) { setArn(arn); return this; } /** ** Source entity ARN. *
* * @param sourceEntityArn * Source entity ARN. */ public void setSourceEntityArn(String sourceEntityArn) { this.sourceEntityArn = sourceEntityArn; } /** ** Source entity ARN. *
* * @return Source entity ARN. */ public String getSourceEntityArn() { return this.sourceEntityArn; } /** ** Source entity ARN. *
* * @param sourceEntityArn * Source entity ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardVersion withSourceEntityArn(String sourceEntityArn) { setSourceEntityArn(sourceEntityArn); return this; } /** ** The Amazon Resource Numbers (ARNs) for the datasets that are associated with this version of the dashboard. *
* * @return The Amazon Resource Numbers (ARNs) for the datasets that are associated with this version of the * dashboard. */ public java.util.List* The Amazon Resource Numbers (ARNs) for the datasets that are associated with this version of the dashboard. *
* * @param dataSetArns * The Amazon Resource Numbers (ARNs) for the datasets that are associated with this version of the * dashboard. */ public void setDataSetArns(java.util.Collection* The Amazon Resource Numbers (ARNs) for the datasets that are associated with this version of the dashboard. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDataSetArns(java.util.Collection)} or {@link #withDataSetArns(java.util.Collection)} if you want to * override the existing values. *
* * @param dataSetArns * The Amazon Resource Numbers (ARNs) for the datasets that are associated with this version of the * dashboard. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardVersion withDataSetArns(String... dataSetArns) { if (this.dataSetArns == null) { setDataSetArns(new java.util.ArrayList* The Amazon Resource Numbers (ARNs) for the datasets that are associated with this version of the dashboard. *
* * @param dataSetArns * The Amazon Resource Numbers (ARNs) for the datasets that are associated with this version of the * dashboard. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardVersion withDataSetArns(java.util.Collection* Description. *
* * @param description * Description. */ public void setDescription(String description) { this.description = description; } /** ** Description. *
* * @return Description. */ public String getDescription() { return this.description; } /** ** Description. *
* * @param description * Description. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardVersion withDescription(String description) { setDescription(description); return this; } /** ** The ARN of the theme associated with a version of the dashboard. *
* * @param themeArn * The ARN of the theme associated with a version of the dashboard. */ public void setThemeArn(String themeArn) { this.themeArn = themeArn; } /** ** The ARN of the theme associated with a version of the dashboard. *
* * @return The ARN of the theme associated with a version of the dashboard. */ public String getThemeArn() { return this.themeArn; } /** ** The ARN of the theme associated with a version of the dashboard. *
* * @param themeArn * The ARN of the theme associated with a version of the dashboard. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardVersion withThemeArn(String themeArn) { setThemeArn(themeArn); return this; } /** ** A list of the associated sheets with the unique identifier and name of each sheet. *
* * @return A list of the associated sheets with the unique identifier and name of each sheet. */ public java.util.List* A list of the associated sheets with the unique identifier and name of each sheet. *
* * @param sheets * A list of the associated sheets with the unique identifier and name of each sheet. */ public void setSheets(java.util.Collection* A list of the associated sheets with the unique identifier and name of each sheet. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSheets(java.util.Collection)} or {@link #withSheets(java.util.Collection)} if you want to override the * existing values. *
* * @param sheets * A list of the associated sheets with the unique identifier and name of each sheet. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardVersion withSheets(Sheet... sheets) { if (this.sheets == null) { setSheets(new java.util.ArrayList* A list of the associated sheets with the unique identifier and name of each sheet. *
* * @param sheets * A list of the associated sheets with the unique identifier and name of each sheet. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardVersion withSheets(java.util.Collection