/* * 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 structure that represents a dataset. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DatasetMetadata implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) of the dataset. *
*/ private String datasetArn; /** ** The name of the dataset. *
*/ private String datasetName; /** ** The description of the dataset. *
*/ private String datasetDescription; /** ** The definition of a data aggregation. *
*/ private DataAggregation dataAggregation; /** ** The list of filter definitions. *
*/ private java.util.List* The list of column definitions. *
*/ private java.util.List* The list of calculated field definitions. *
*/ private java.util.List* The list of named entities definitions. *
*/ private java.util.List* The Amazon Resource Name (ARN) of the dataset. *
* * @param datasetArn * The Amazon Resource Name (ARN) of the dataset. */ public void setDatasetArn(String datasetArn) { this.datasetArn = datasetArn; } /** ** The Amazon Resource Name (ARN) of the dataset. *
* * @return The Amazon Resource Name (ARN) of the dataset. */ public String getDatasetArn() { return this.datasetArn; } /** ** The Amazon Resource Name (ARN) of the dataset. *
* * @param datasetArn * The Amazon Resource Name (ARN) of the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetMetadata withDatasetArn(String datasetArn) { setDatasetArn(datasetArn); return this; } /** ** The name of the dataset. *
* * @param datasetName * The name of the dataset. */ public void setDatasetName(String datasetName) { this.datasetName = datasetName; } /** ** The name of the dataset. *
* * @return The name of the dataset. */ public String getDatasetName() { return this.datasetName; } /** ** The name of the dataset. *
* * @param datasetName * The name of the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetMetadata withDatasetName(String datasetName) { setDatasetName(datasetName); return this; } /** ** The description of the dataset. *
* * @param datasetDescription * The description of the dataset. */ public void setDatasetDescription(String datasetDescription) { this.datasetDescription = datasetDescription; } /** ** The description of the dataset. *
* * @return The description of the dataset. */ public String getDatasetDescription() { return this.datasetDescription; } /** ** The description of the dataset. *
* * @param datasetDescription * The description of the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetMetadata withDatasetDescription(String datasetDescription) { setDatasetDescription(datasetDescription); return this; } /** ** The definition of a data aggregation. *
* * @param dataAggregation * The definition of a data aggregation. */ public void setDataAggregation(DataAggregation dataAggregation) { this.dataAggregation = dataAggregation; } /** ** The definition of a data aggregation. *
* * @return The definition of a data aggregation. */ public DataAggregation getDataAggregation() { return this.dataAggregation; } /** ** The definition of a data aggregation. *
* * @param dataAggregation * The definition of a data aggregation. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetMetadata withDataAggregation(DataAggregation dataAggregation) { setDataAggregation(dataAggregation); return this; } /** ** The list of filter definitions. *
* * @return The list of filter definitions. */ public java.util.List* The list of filter definitions. *
* * @param filters * The list of filter definitions. */ public void setFilters(java.util.Collection* The list of filter definitions. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFilters(java.util.Collection)} or {@link #withFilters(java.util.Collection)} if you want to override * the existing values. *
* * @param filters * The list of filter definitions. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetMetadata withFilters(TopicFilter... filters) { if (this.filters == null) { setFilters(new java.util.ArrayList* The list of filter definitions. *
* * @param filters * The list of filter definitions. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetMetadata withFilters(java.util.Collection* The list of column definitions. *
* * @return The list of column definitions. */ public java.util.List* The list of column definitions. *
* * @param columns * The list of column definitions. */ public void setColumns(java.util.Collection* The list of column definitions. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setColumns(java.util.Collection)} or {@link #withColumns(java.util.Collection)} if you want to override * the existing values. *
* * @param columns * The list of column definitions. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetMetadata withColumns(TopicColumn... columns) { if (this.columns == null) { setColumns(new java.util.ArrayList* The list of column definitions. *
* * @param columns * The list of column definitions. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetMetadata withColumns(java.util.Collection* The list of calculated field definitions. *
* * @return The list of calculated field definitions. */ public java.util.List* The list of calculated field definitions. *
* * @param calculatedFields * The list of calculated field definitions. */ public void setCalculatedFields(java.util.Collection* The list of calculated field definitions. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCalculatedFields(java.util.Collection)} or {@link #withCalculatedFields(java.util.Collection)} if you * want to override the existing values. *
* * @param calculatedFields * The list of calculated field definitions. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetMetadata withCalculatedFields(TopicCalculatedField... calculatedFields) { if (this.calculatedFields == null) { setCalculatedFields(new java.util.ArrayList* The list of calculated field definitions. *
* * @param calculatedFields * The list of calculated field definitions. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetMetadata withCalculatedFields(java.util.Collection* The list of named entities definitions. *
* * @return The list of named entities definitions. */ public java.util.List* The list of named entities definitions. *
* * @param namedEntities * The list of named entities definitions. */ public void setNamedEntities(java.util.Collection* The list of named entities definitions. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setNamedEntities(java.util.Collection)} or {@link #withNamedEntities(java.util.Collection)} if you want * to override the existing values. *
* * @param namedEntities * The list of named entities definitions. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetMetadata withNamedEntities(TopicNamedEntity... namedEntities) { if (this.namedEntities == null) { setNamedEntities(new java.util.ArrayList* The list of named entities definitions. *
* * @param namedEntities * The list of named entities definitions. * @return Returns a reference to this object so that method calls can be chained together. */ public DatasetMetadata withNamedEntities(java.util.Collection