/* * 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 version of a template. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TemplateVersion implements Serializable, Cloneable, StructuredPojo { /** ** The time that this template version was created. *
*/ private java.util.Date createdTime; /** ** Errors associated with this template version. *
*/ private java.util.List* The version number of the template version. *
*/ private Long versionNumber; /** ** The status that is associated with the template. *
*
* CREATION_IN_PROGRESS
*
* CREATION_SUCCESSFUL
*
* CREATION_FAILED
*
* UPDATE_IN_PROGRESS
*
* UPDATE_SUCCESSFUL
*
* UPDATE_FAILED
*
* DELETED
*
* Schema of the dataset identified by the placeholder. Any dashboard created from this template should be bound to * new datasets matching the same schema described through this API operation. *
*/ private java.util.List* The description of the template. *
*/ private String description; /** ** The Amazon Resource Name (ARN) of an analysis or template that was used to create this template. *
*/ private String sourceEntityArn; /** ** The ARN of the theme associated with this version of the template. *
*/ 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 template version was created. *
* * @param createdTime * The time that this template version was created. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** ** The time that this template version was created. *
* * @return The time that this template version was created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** ** The time that this template version was created. *
* * @param createdTime * The time that this template version was created. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateVersion withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** ** Errors associated with this template version. *
* * @return Errors associated with this template version. */ public java.util.List* Errors associated with this template version. *
* * @param errors * Errors associated with this template version. */ public void setErrors(java.util.Collection* Errors associated with this template 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 template version. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateVersion withErrors(TemplateError... errors) { if (this.errors == null) { setErrors(new java.util.ArrayList* Errors associated with this template version. *
* * @param errors * Errors associated with this template version. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateVersion withErrors(java.util.Collection* The version number of the template version. *
* * @param versionNumber * The version number of the template version. */ public void setVersionNumber(Long versionNumber) { this.versionNumber = versionNumber; } /** ** The version number of the template version. *
* * @return The version number of the template version. */ public Long getVersionNumber() { return this.versionNumber; } /** ** The version number of the template version. *
* * @param versionNumber * The version number of the template version. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateVersion withVersionNumber(Long versionNumber) { setVersionNumber(versionNumber); return this; } /** ** The status that is associated with the template. *
*
* CREATION_IN_PROGRESS
*
* CREATION_SUCCESSFUL
*
* CREATION_FAILED
*
* UPDATE_IN_PROGRESS
*
* UPDATE_SUCCESSFUL
*
* UPDATE_FAILED
*
* DELETED
*
* CREATION_IN_PROGRESS
*
* CREATION_SUCCESSFUL
*
* CREATION_FAILED
*
* UPDATE_IN_PROGRESS
*
* UPDATE_SUCCESSFUL
*
* UPDATE_FAILED
*
* DELETED
*
* The status that is associated with the template. *
*
* CREATION_IN_PROGRESS
*
* CREATION_SUCCESSFUL
*
* CREATION_FAILED
*
* UPDATE_IN_PROGRESS
*
* UPDATE_SUCCESSFUL
*
* UPDATE_FAILED
*
* DELETED
*
* CREATION_IN_PROGRESS
*
* CREATION_SUCCESSFUL
*
* CREATION_FAILED
*
* UPDATE_IN_PROGRESS
*
* UPDATE_SUCCESSFUL
*
* UPDATE_FAILED
*
* DELETED
*
* The status that is associated with the template. *
*
* CREATION_IN_PROGRESS
*
* CREATION_SUCCESSFUL
*
* CREATION_FAILED
*
* UPDATE_IN_PROGRESS
*
* UPDATE_SUCCESSFUL
*
* UPDATE_FAILED
*
* DELETED
*
* CREATION_IN_PROGRESS
*
* CREATION_SUCCESSFUL
*
* CREATION_FAILED
*
* UPDATE_IN_PROGRESS
*
* UPDATE_SUCCESSFUL
*
* UPDATE_FAILED
*
* DELETED
*
* The status that is associated with the template. *
*
* CREATION_IN_PROGRESS
*
* CREATION_SUCCESSFUL
*
* CREATION_FAILED
*
* UPDATE_IN_PROGRESS
*
* UPDATE_SUCCESSFUL
*
* UPDATE_FAILED
*
* DELETED
*
* CREATION_IN_PROGRESS
*
* CREATION_SUCCESSFUL
*
* CREATION_FAILED
*
* UPDATE_IN_PROGRESS
*
* UPDATE_SUCCESSFUL
*
* UPDATE_FAILED
*
* DELETED
*
* Schema of the dataset identified by the placeholder. Any dashboard created from this template should be bound to * new datasets matching the same schema described through this API operation. *
* * @return Schema of the dataset identified by the placeholder. Any dashboard created from this template should be * bound to new datasets matching the same schema described through this API operation. */ public java.util.List* Schema of the dataset identified by the placeholder. Any dashboard created from this template should be bound to * new datasets matching the same schema described through this API operation. *
* * @param dataSetConfigurations * Schema of the dataset identified by the placeholder. Any dashboard created from this template should be * bound to new datasets matching the same schema described through this API operation. */ public void setDataSetConfigurations(java.util.Collection* Schema of the dataset identified by the placeholder. Any dashboard created from this template should be bound to * new datasets matching the same schema described through this API operation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDataSetConfigurations(java.util.Collection)} or * {@link #withDataSetConfigurations(java.util.Collection)} if you want to override the existing values. *
* * @param dataSetConfigurations * Schema of the dataset identified by the placeholder. Any dashboard created from this template should be * bound to new datasets matching the same schema described through this API operation. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateVersion withDataSetConfigurations(DataSetConfiguration... dataSetConfigurations) { if (this.dataSetConfigurations == null) { setDataSetConfigurations(new java.util.ArrayList* Schema of the dataset identified by the placeholder. Any dashboard created from this template should be bound to * new datasets matching the same schema described through this API operation. *
* * @param dataSetConfigurations * Schema of the dataset identified by the placeholder. Any dashboard created from this template should be * bound to new datasets matching the same schema described through this API operation. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateVersion withDataSetConfigurations(java.util.Collection* The description of the template. *
* * @param description * The description of the template. */ public void setDescription(String description) { this.description = description; } /** ** The description of the template. *
* * @return The description of the template. */ public String getDescription() { return this.description; } /** ** The description of the template. *
* * @param description * The description of the template. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateVersion withDescription(String description) { setDescription(description); return this; } /** ** The Amazon Resource Name (ARN) of an analysis or template that was used to create this template. *
* * @param sourceEntityArn * The Amazon Resource Name (ARN) of an analysis or template that was used to create this template. */ public void setSourceEntityArn(String sourceEntityArn) { this.sourceEntityArn = sourceEntityArn; } /** ** The Amazon Resource Name (ARN) of an analysis or template that was used to create this template. *
* * @return The Amazon Resource Name (ARN) of an analysis or template that was used to create this template. */ public String getSourceEntityArn() { return this.sourceEntityArn; } /** ** The Amazon Resource Name (ARN) of an analysis or template that was used to create this template. *
* * @param sourceEntityArn * The Amazon Resource Name (ARN) of an analysis or template that was used to create this template. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateVersion withSourceEntityArn(String sourceEntityArn) { setSourceEntityArn(sourceEntityArn); return this; } /** ** The ARN of the theme associated with this version of the template. *
* * @param themeArn * The ARN of the theme associated with this version of the template. */ public void setThemeArn(String themeArn) { this.themeArn = themeArn; } /** ** The ARN of the theme associated with this version of the template. *
* * @return The ARN of the theme associated with this version of the template. */ public String getThemeArn() { return this.themeArn; } /** ** The ARN of the theme associated with this version of the template. *
* * @param themeArn * The ARN of the theme associated with this version of the template. * @return Returns a reference to this object so that method calls can be chained together. */ public TemplateVersion 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 TemplateVersion 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 TemplateVersion withSheets(java.util.Collection