/* * 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; /** *
* Represents a column in a dataset. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TopicColumn implements Serializable, Cloneable, StructuredPojo { /** ** The name of the column. *
*/ private String columnName; /** ** A user-friendly name for the column. *
*/ private String columnFriendlyName; /** ** A description of the column and its contents. *
*/ private String columnDescription; /** ** The other names or aliases for the column. *
*/ private java.util.List
* The role of the column in the data. Valid values are DIMENSION
and MEASURE
.
*
* The type of aggregation that is performed on the column data when it's queried. Valid values for this structure
* are SUM
, MAX
, MIN
, COUNT
, DISTINCT_COUNT
, and
* AVERAGE
.
*
* A Boolean value that indicates whether the column is included in the query results. *
*/ private Boolean isIncludedInTopic; /** ** A Boolean value that indicates whether the column shows in the autocomplete functionality. *
*/ private Boolean disableIndexing; /** ** The order in which data is displayed for the column when it's used in a comparative context. *
*/ private ComparativeOrder comparativeOrder; /** ** The semantic type of data contained in the column. *
*/ private SemanticType semanticType; /** *
* The level of time precision that is used to aggregate DateTime
values.
*
* The list of aggregation types that are allowed for the column. Valid values for this structure are
* COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
*
* The list of aggregation types that are not allowed for the column. Valid values for this structure are
* COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
*
* The default formatting used for values in the column. *
*/ private DefaultFormatting defaultFormatting; /** ** A Boolean value that indicates whether to aggregate the column data when it's used in a filter context. *
*/ private Boolean neverAggregateInFilter; /** ** The other names or aliases for the column cell value. *
*/ private java.util.List* The name of the column. *
* * @param columnName * The name of the column. */ public void setColumnName(String columnName) { this.columnName = columnName; } /** ** The name of the column. *
* * @return The name of the column. */ public String getColumnName() { return this.columnName; } /** ** The name of the column. *
* * @param columnName * The name of the column. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicColumn withColumnName(String columnName) { setColumnName(columnName); return this; } /** ** A user-friendly name for the column. *
* * @param columnFriendlyName * A user-friendly name for the column. */ public void setColumnFriendlyName(String columnFriendlyName) { this.columnFriendlyName = columnFriendlyName; } /** ** A user-friendly name for the column. *
* * @return A user-friendly name for the column. */ public String getColumnFriendlyName() { return this.columnFriendlyName; } /** ** A user-friendly name for the column. *
* * @param columnFriendlyName * A user-friendly name for the column. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicColumn withColumnFriendlyName(String columnFriendlyName) { setColumnFriendlyName(columnFriendlyName); return this; } /** ** A description of the column and its contents. *
* * @param columnDescription * A description of the column and its contents. */ public void setColumnDescription(String columnDescription) { this.columnDescription = columnDescription; } /** ** A description of the column and its contents. *
* * @return A description of the column and its contents. */ public String getColumnDescription() { return this.columnDescription; } /** ** A description of the column and its contents. *
* * @param columnDescription * A description of the column and its contents. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicColumn withColumnDescription(String columnDescription) { setColumnDescription(columnDescription); return this; } /** ** The other names or aliases for the column. *
* * @return The other names or aliases for the column. */ public java.util.List* The other names or aliases for the column. *
* * @param columnSynonyms * The other names or aliases for the column. */ public void setColumnSynonyms(java.util.Collection* The other names or aliases for the column. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setColumnSynonyms(java.util.Collection)} or {@link #withColumnSynonyms(java.util.Collection)} if you want * to override the existing values. *
* * @param columnSynonyms * The other names or aliases for the column. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicColumn withColumnSynonyms(String... columnSynonyms) { if (this.columnSynonyms == null) { setColumnSynonyms(new java.util.ArrayList* The other names or aliases for the column. *
* * @param columnSynonyms * The other names or aliases for the column. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicColumn withColumnSynonyms(java.util.Collection
* The role of the column in the data. Valid values are DIMENSION
and MEASURE
.
*
DIMENSION
and MEASURE
.
* @see ColumnDataRole
*/
public void setColumnDataRole(String columnDataRole) {
this.columnDataRole = columnDataRole;
}
/**
*
* The role of the column in the data. Valid values are DIMENSION
and MEASURE
.
*
DIMENSION
and MEASURE
.
* @see ColumnDataRole
*/
public String getColumnDataRole() {
return this.columnDataRole;
}
/**
*
* The role of the column in the data. Valid values are DIMENSION
and MEASURE
.
*
DIMENSION
and MEASURE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ColumnDataRole
*/
public TopicColumn withColumnDataRole(String columnDataRole) {
setColumnDataRole(columnDataRole);
return this;
}
/**
*
* The role of the column in the data. Valid values are DIMENSION
and MEASURE
.
*
DIMENSION
and MEASURE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ColumnDataRole
*/
public TopicColumn withColumnDataRole(ColumnDataRole columnDataRole) {
this.columnDataRole = columnDataRole.toString();
return this;
}
/**
*
* The type of aggregation that is performed on the column data when it's queried. Valid values for this structure
* are SUM
, MAX
, MIN
, COUNT
, DISTINCT_COUNT
, and
* AVERAGE
.
*
SUM
, MAX
, MIN
, COUNT
,
* DISTINCT_COUNT
, and AVERAGE
.
* @see DefaultAggregation
*/
public void setAggregation(String aggregation) {
this.aggregation = aggregation;
}
/**
*
* The type of aggregation that is performed on the column data when it's queried. Valid values for this structure
* are SUM
, MAX
, MIN
, COUNT
, DISTINCT_COUNT
, and
* AVERAGE
.
*
SUM
, MAX
, MIN
, COUNT
,
* DISTINCT_COUNT
, and AVERAGE
.
* @see DefaultAggregation
*/
public String getAggregation() {
return this.aggregation;
}
/**
*
* The type of aggregation that is performed on the column data when it's queried. Valid values for this structure
* are SUM
, MAX
, MIN
, COUNT
, DISTINCT_COUNT
, and
* AVERAGE
.
*
SUM
, MAX
, MIN
, COUNT
,
* DISTINCT_COUNT
, and AVERAGE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DefaultAggregation
*/
public TopicColumn withAggregation(String aggregation) {
setAggregation(aggregation);
return this;
}
/**
*
* The type of aggregation that is performed on the column data when it's queried. Valid values for this structure
* are SUM
, MAX
, MIN
, COUNT
, DISTINCT_COUNT
, and
* AVERAGE
.
*
SUM
, MAX
, MIN
, COUNT
,
* DISTINCT_COUNT
, and AVERAGE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DefaultAggregation
*/
public TopicColumn withAggregation(DefaultAggregation aggregation) {
this.aggregation = aggregation.toString();
return this;
}
/**
* * A Boolean value that indicates whether the column is included in the query results. *
* * @param isIncludedInTopic * A Boolean value that indicates whether the column is included in the query results. */ public void setIsIncludedInTopic(Boolean isIncludedInTopic) { this.isIncludedInTopic = isIncludedInTopic; } /** ** A Boolean value that indicates whether the column is included in the query results. *
* * @return A Boolean value that indicates whether the column is included in the query results. */ public Boolean getIsIncludedInTopic() { return this.isIncludedInTopic; } /** ** A Boolean value that indicates whether the column is included in the query results. *
* * @param isIncludedInTopic * A Boolean value that indicates whether the column is included in the query results. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicColumn withIsIncludedInTopic(Boolean isIncludedInTopic) { setIsIncludedInTopic(isIncludedInTopic); return this; } /** ** A Boolean value that indicates whether the column is included in the query results. *
* * @return A Boolean value that indicates whether the column is included in the query results. */ public Boolean isIncludedInTopic() { return this.isIncludedInTopic; } /** ** A Boolean value that indicates whether the column shows in the autocomplete functionality. *
* * @param disableIndexing * A Boolean value that indicates whether the column shows in the autocomplete functionality. */ public void setDisableIndexing(Boolean disableIndexing) { this.disableIndexing = disableIndexing; } /** ** A Boolean value that indicates whether the column shows in the autocomplete functionality. *
* * @return A Boolean value that indicates whether the column shows in the autocomplete functionality. */ public Boolean getDisableIndexing() { return this.disableIndexing; } /** ** A Boolean value that indicates whether the column shows in the autocomplete functionality. *
* * @param disableIndexing * A Boolean value that indicates whether the column shows in the autocomplete functionality. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicColumn withDisableIndexing(Boolean disableIndexing) { setDisableIndexing(disableIndexing); return this; } /** ** A Boolean value that indicates whether the column shows in the autocomplete functionality. *
* * @return A Boolean value that indicates whether the column shows in the autocomplete functionality. */ public Boolean isDisableIndexing() { return this.disableIndexing; } /** ** The order in which data is displayed for the column when it's used in a comparative context. *
* * @param comparativeOrder * The order in which data is displayed for the column when it's used in a comparative context. */ public void setComparativeOrder(ComparativeOrder comparativeOrder) { this.comparativeOrder = comparativeOrder; } /** ** The order in which data is displayed for the column when it's used in a comparative context. *
* * @return The order in which data is displayed for the column when it's used in a comparative context. */ public ComparativeOrder getComparativeOrder() { return this.comparativeOrder; } /** ** The order in which data is displayed for the column when it's used in a comparative context. *
* * @param comparativeOrder * The order in which data is displayed for the column when it's used in a comparative context. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicColumn withComparativeOrder(ComparativeOrder comparativeOrder) { setComparativeOrder(comparativeOrder); return this; } /** ** The semantic type of data contained in the column. *
* * @param semanticType * The semantic type of data contained in the column. */ public void setSemanticType(SemanticType semanticType) { this.semanticType = semanticType; } /** ** The semantic type of data contained in the column. *
* * @return The semantic type of data contained in the column. */ public SemanticType getSemanticType() { return this.semanticType; } /** ** The semantic type of data contained in the column. *
* * @param semanticType * The semantic type of data contained in the column. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicColumn withSemanticType(SemanticType semanticType) { setSemanticType(semanticType); return this; } /** *
* The level of time precision that is used to aggregate DateTime
values.
*
DateTime
values.
* @see TopicTimeGranularity
*/
public void setTimeGranularity(String timeGranularity) {
this.timeGranularity = timeGranularity;
}
/**
*
* The level of time precision that is used to aggregate DateTime
values.
*
DateTime
values.
* @see TopicTimeGranularity
*/
public String getTimeGranularity() {
return this.timeGranularity;
}
/**
*
* The level of time precision that is used to aggregate DateTime
values.
*
DateTime
values.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TopicTimeGranularity
*/
public TopicColumn withTimeGranularity(String timeGranularity) {
setTimeGranularity(timeGranularity);
return this;
}
/**
*
* The level of time precision that is used to aggregate DateTime
values.
*
DateTime
values.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TopicTimeGranularity
*/
public TopicColumn withTimeGranularity(TopicTimeGranularity timeGranularity) {
this.timeGranularity = timeGranularity.toString();
return this;
}
/**
*
* The list of aggregation types that are allowed for the column. Valid values for this structure are
* COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
*
COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
* @see AuthorSpecifiedAggregation
*/
public java.util.List
* The list of aggregation types that are allowed for the column. Valid values for this structure are
* COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
*
COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
* @see AuthorSpecifiedAggregation
*/
public void setAllowedAggregations(java.util.Collection
* The list of aggregation types that are allowed for the column. Valid values for this structure are
* COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAllowedAggregations(java.util.Collection)} or {@link #withAllowedAggregations(java.util.Collection)} * if you want to override the existing values. *
* * @param allowedAggregations * The list of aggregation types that are allowed for the column. Valid values for this structure are *COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AuthorSpecifiedAggregation
*/
public TopicColumn withAllowedAggregations(String... allowedAggregations) {
if (this.allowedAggregations == null) {
setAllowedAggregations(new java.util.ArrayList
* The list of aggregation types that are allowed for the column. Valid values for this structure are
* COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
*
COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AuthorSpecifiedAggregation
*/
public TopicColumn withAllowedAggregations(java.util.Collection
* The list of aggregation types that are allowed for the column. Valid values for this structure are
* COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
*
COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AuthorSpecifiedAggregation
*/
public TopicColumn withAllowedAggregations(AuthorSpecifiedAggregation... allowedAggregations) {
java.util.ArrayList
* The list of aggregation types that are not allowed for the column. Valid values for this structure are
* COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
*
COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
* @see AuthorSpecifiedAggregation
*/
public java.util.List
* The list of aggregation types that are not allowed for the column. Valid values for this structure are
* COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
*
COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
* @see AuthorSpecifiedAggregation
*/
public void setNotAllowedAggregations(java.util.Collection
* The list of aggregation types that are not allowed for the column. Valid values for this structure are
* COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setNotAllowedAggregations(java.util.Collection)} or * {@link #withNotAllowedAggregations(java.util.Collection)} if you want to override the existing values. *
* * @param notAllowedAggregations * The list of aggregation types that are not allowed for the column. Valid values for this structure are *COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AuthorSpecifiedAggregation
*/
public TopicColumn withNotAllowedAggregations(String... notAllowedAggregations) {
if (this.notAllowedAggregations == null) {
setNotAllowedAggregations(new java.util.ArrayList
* The list of aggregation types that are not allowed for the column. Valid values for this structure are
* COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
*
COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AuthorSpecifiedAggregation
*/
public TopicColumn withNotAllowedAggregations(java.util.Collection
* The list of aggregation types that are not allowed for the column. Valid values for this structure are
* COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
*
COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AuthorSpecifiedAggregation
*/
public TopicColumn withNotAllowedAggregations(AuthorSpecifiedAggregation... notAllowedAggregations) {
java.util.ArrayList* The default formatting used for values in the column. *
* * @param defaultFormatting * The default formatting used for values in the column. */ public void setDefaultFormatting(DefaultFormatting defaultFormatting) { this.defaultFormatting = defaultFormatting; } /** ** The default formatting used for values in the column. *
* * @return The default formatting used for values in the column. */ public DefaultFormatting getDefaultFormatting() { return this.defaultFormatting; } /** ** The default formatting used for values in the column. *
* * @param defaultFormatting * The default formatting used for values in the column. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicColumn withDefaultFormatting(DefaultFormatting defaultFormatting) { setDefaultFormatting(defaultFormatting); return this; } /** ** A Boolean value that indicates whether to aggregate the column data when it's used in a filter context. *
* * @param neverAggregateInFilter * A Boolean value that indicates whether to aggregate the column data when it's used in a filter context. */ public void setNeverAggregateInFilter(Boolean neverAggregateInFilter) { this.neverAggregateInFilter = neverAggregateInFilter; } /** ** A Boolean value that indicates whether to aggregate the column data when it's used in a filter context. *
* * @return A Boolean value that indicates whether to aggregate the column data when it's used in a filter context. */ public Boolean getNeverAggregateInFilter() { return this.neverAggregateInFilter; } /** ** A Boolean value that indicates whether to aggregate the column data when it's used in a filter context. *
* * @param neverAggregateInFilter * A Boolean value that indicates whether to aggregate the column data when it's used in a filter context. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicColumn withNeverAggregateInFilter(Boolean neverAggregateInFilter) { setNeverAggregateInFilter(neverAggregateInFilter); return this; } /** ** A Boolean value that indicates whether to aggregate the column data when it's used in a filter context. *
* * @return A Boolean value that indicates whether to aggregate the column data when it's used in a filter context. */ public Boolean isNeverAggregateInFilter() { return this.neverAggregateInFilter; } /** ** The other names or aliases for the column cell value. *
* * @return The other names or aliases for the column cell value. */ public java.util.List* The other names or aliases for the column cell value. *
* * @param cellValueSynonyms * The other names or aliases for the column cell value. */ public void setCellValueSynonyms(java.util.Collection* The other names or aliases for the column cell value. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCellValueSynonyms(java.util.Collection)} or {@link #withCellValueSynonyms(java.util.Collection)} if * you want to override the existing values. *
* * @param cellValueSynonyms * The other names or aliases for the column cell value. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicColumn withCellValueSynonyms(CellValueSynonym... cellValueSynonyms) { if (this.cellValueSynonyms == null) { setCellValueSynonyms(new java.util.ArrayList* The other names or aliases for the column cell value. *
* * @param cellValueSynonyms * The other names or aliases for the column cell value. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicColumn withCellValueSynonyms(java.util.Collection