/* * 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 calculated field. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TopicCalculatedField implements Serializable, Cloneable, StructuredPojo { /** ** The calculated field name. *
*/ private String calculatedFieldName; /** ** The calculated field description. *
*/ private String calculatedFieldDescription; /** ** The calculated field expression. *
*/ private String expression; /** ** The other names or aliases for the calculated field. *
*/ private java.util.List* A boolean value that indicates if a calculated field is included in the topic. *
*/ private Boolean isIncludedInTopic; /** ** A Boolean value that indicates if a calculated field is visible in the autocomplete. *
*/ private Boolean disableIndexing; /** *
* The column data role for a calculated field. Valid values for this structure are DIMENSION
and
* MEASURE
.
*
* The level of time precision that is used to aggregate DateTime
values.
*
* The default formatting definition. *
*/ private DefaultFormatting defaultFormatting; /** *
* The default aggregation. Valid values for this structure are SUM
, MAX
, MIN
, COUNT
, DISTINCT_COUNT
, and AVERAGE
.
*
* The order in which data is displayed for the calculated field when it's used in a comparative context. *
*/ private ComparativeOrder comparativeOrder; /** ** The semantic type. *
*/ private SemanticType semanticType; /** *
* The list of aggregation types that are allowed for the calculated field. 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 calculated field. Valid values for this structure are
* COUNT
, DISTINCT_COUNT
, MIN
, MAX
, MEDIAN
,
* SUM
, AVERAGE
, STDEV
, STDEVP
, VAR
,
* VARP
, and PERCENTILE
.
*
* A Boolean value that indicates whether to never aggregate calculated field in filters. *
*/ private Boolean neverAggregateInFilter; /** ** The other names or aliases for the calculated field cell value. *
*/ private java.util.List* The calculated field name. *
* * @param calculatedFieldName * The calculated field name. */ public void setCalculatedFieldName(String calculatedFieldName) { this.calculatedFieldName = calculatedFieldName; } /** ** The calculated field name. *
* * @return The calculated field name. */ public String getCalculatedFieldName() { return this.calculatedFieldName; } /** ** The calculated field name. *
* * @param calculatedFieldName * The calculated field name. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicCalculatedField withCalculatedFieldName(String calculatedFieldName) { setCalculatedFieldName(calculatedFieldName); return this; } /** ** The calculated field description. *
* * @param calculatedFieldDescription * The calculated field description. */ public void setCalculatedFieldDescription(String calculatedFieldDescription) { this.calculatedFieldDescription = calculatedFieldDescription; } /** ** The calculated field description. *
* * @return The calculated field description. */ public String getCalculatedFieldDescription() { return this.calculatedFieldDescription; } /** ** The calculated field description. *
* * @param calculatedFieldDescription * The calculated field description. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicCalculatedField withCalculatedFieldDescription(String calculatedFieldDescription) { setCalculatedFieldDescription(calculatedFieldDescription); return this; } /** ** The calculated field expression. *
* * @param expression * The calculated field expression. */ public void setExpression(String expression) { this.expression = expression; } /** ** The calculated field expression. *
* * @return The calculated field expression. */ public String getExpression() { return this.expression; } /** ** The calculated field expression. *
* * @param expression * The calculated field expression. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicCalculatedField withExpression(String expression) { setExpression(expression); return this; } /** ** The other names or aliases for the calculated field. *
* * @return The other names or aliases for the calculated field. */ public java.util.List* The other names or aliases for the calculated field. *
* * @param calculatedFieldSynonyms * The other names or aliases for the calculated field. */ public void setCalculatedFieldSynonyms(java.util.Collection* The other names or aliases for the calculated field. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCalculatedFieldSynonyms(java.util.Collection)} or * {@link #withCalculatedFieldSynonyms(java.util.Collection)} if you want to override the existing values. *
* * @param calculatedFieldSynonyms * The other names or aliases for the calculated field. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicCalculatedField withCalculatedFieldSynonyms(String... calculatedFieldSynonyms) { if (this.calculatedFieldSynonyms == null) { setCalculatedFieldSynonyms(new java.util.ArrayList* The other names or aliases for the calculated field. *
* * @param calculatedFieldSynonyms * The other names or aliases for the calculated field. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicCalculatedField withCalculatedFieldSynonyms(java.util.Collection* A boolean value that indicates if a calculated field is included in the topic. *
* * @param isIncludedInTopic * A boolean value that indicates if a calculated field is included in the topic. */ public void setIsIncludedInTopic(Boolean isIncludedInTopic) { this.isIncludedInTopic = isIncludedInTopic; } /** ** A boolean value that indicates if a calculated field is included in the topic. *
* * @return A boolean value that indicates if a calculated field is included in the topic. */ public Boolean getIsIncludedInTopic() { return this.isIncludedInTopic; } /** ** A boolean value that indicates if a calculated field is included in the topic. *
* * @param isIncludedInTopic * A boolean value that indicates if a calculated field is included in the topic. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicCalculatedField withIsIncludedInTopic(Boolean isIncludedInTopic) { setIsIncludedInTopic(isIncludedInTopic); return this; } /** ** A boolean value that indicates if a calculated field is included in the topic. *
* * @return A boolean value that indicates if a calculated field is included in the topic. */ public Boolean isIncludedInTopic() { return this.isIncludedInTopic; } /** ** A Boolean value that indicates if a calculated field is visible in the autocomplete. *
* * @param disableIndexing * A Boolean value that indicates if a calculated field is visible in the autocomplete. */ public void setDisableIndexing(Boolean disableIndexing) { this.disableIndexing = disableIndexing; } /** ** A Boolean value that indicates if a calculated field is visible in the autocomplete. *
* * @return A Boolean value that indicates if a calculated field is visible in the autocomplete. */ public Boolean getDisableIndexing() { return this.disableIndexing; } /** ** A Boolean value that indicates if a calculated field is visible in the autocomplete. *
* * @param disableIndexing * A Boolean value that indicates if a calculated field is visible in the autocomplete. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicCalculatedField withDisableIndexing(Boolean disableIndexing) { setDisableIndexing(disableIndexing); return this; } /** ** A Boolean value that indicates if a calculated field is visible in the autocomplete. *
* * @return A Boolean value that indicates if a calculated field is visible in the autocomplete. */ public Boolean isDisableIndexing() { return this.disableIndexing; } /** *
* The column data role for a calculated field. Valid values for this structure are DIMENSION
and
* MEASURE
.
*
DIMENSION
* and MEASURE
.
* @see ColumnDataRole
*/
public void setColumnDataRole(String columnDataRole) {
this.columnDataRole = columnDataRole;
}
/**
*
* The column data role for a calculated field. Valid values for this structure are DIMENSION
and
* MEASURE
.
*
DIMENSION
* and MEASURE
.
* @see ColumnDataRole
*/
public String getColumnDataRole() {
return this.columnDataRole;
}
/**
*
* The column data role for a calculated field. Valid values for this structure 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 TopicCalculatedField withColumnDataRole(String columnDataRole) {
setColumnDataRole(columnDataRole);
return this;
}
/**
*
* The column data role for a calculated field. Valid values for this structure 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 TopicCalculatedField withColumnDataRole(ColumnDataRole columnDataRole) {
this.columnDataRole = columnDataRole.toString();
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 TopicCalculatedField 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 TopicCalculatedField withTimeGranularity(TopicTimeGranularity timeGranularity) {
this.timeGranularity = timeGranularity.toString();
return this;
}
/**
* * The default formatting definition. *
* * @param defaultFormatting * The default formatting definition. */ public void setDefaultFormatting(DefaultFormatting defaultFormatting) { this.defaultFormatting = defaultFormatting; } /** ** The default formatting definition. *
* * @return The default formatting definition. */ public DefaultFormatting getDefaultFormatting() { return this.defaultFormatting; } /** ** The default formatting definition. *
* * @param defaultFormatting * The default formatting definition. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicCalculatedField withDefaultFormatting(DefaultFormatting defaultFormatting) { setDefaultFormatting(defaultFormatting); return this; } /** *
* The default aggregation. 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 default aggregation. 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 default aggregation. 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 TopicCalculatedField withAggregation(String aggregation) {
setAggregation(aggregation);
return this;
}
/**
*
* The default aggregation. 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 TopicCalculatedField withAggregation(DefaultAggregation aggregation) {
this.aggregation = aggregation.toString();
return this;
}
/**
* * The order in which data is displayed for the calculated field when it's used in a comparative context. *
* * @param comparativeOrder * The order in which data is displayed for the calculated field 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 calculated field when it's used in a comparative context. *
* * @return The order in which data is displayed for the calculated field when it's used in a comparative context. */ public ComparativeOrder getComparativeOrder() { return this.comparativeOrder; } /** ** The order in which data is displayed for the calculated field when it's used in a comparative context. *
* * @param comparativeOrder * The order in which data is displayed for the calculated field when it's used in a comparative context. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicCalculatedField withComparativeOrder(ComparativeOrder comparativeOrder) { setComparativeOrder(comparativeOrder); return this; } /** ** The semantic type. *
* * @param semanticType * The semantic type. */ public void setSemanticType(SemanticType semanticType) { this.semanticType = semanticType; } /** ** The semantic type. *
* * @return The semantic type. */ public SemanticType getSemanticType() { return this.semanticType; } /** ** The semantic type. *
* * @param semanticType * The semantic type. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicCalculatedField withSemanticType(SemanticType semanticType) { setSemanticType(semanticType); return this; } /** *
* The list of aggregation types that are allowed for the calculated field. 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 calculated field. 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 calculated field. 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 calculated field. Valid values for this structure * areCOUNT
, 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 TopicCalculatedField withAllowedAggregations(String... allowedAggregations) {
if (this.allowedAggregations == null) {
setAllowedAggregations(new java.util.ArrayList
* The list of aggregation types that are allowed for the calculated field. 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 TopicCalculatedField withAllowedAggregations(java.util.Collection
* The list of aggregation types that are allowed for the calculated field. 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 TopicCalculatedField withAllowedAggregations(AuthorSpecifiedAggregation... allowedAggregations) {
java.util.ArrayList
* The list of aggregation types that are not allowed for the calculated field. 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 calculated field. 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 calculated field. 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 calculated field. Valid values for this * structure areCOUNT
, 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 TopicCalculatedField withNotAllowedAggregations(String... notAllowedAggregations) {
if (this.notAllowedAggregations == null) {
setNotAllowedAggregations(new java.util.ArrayList
* The list of aggregation types that are not allowed for the calculated field. 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 TopicCalculatedField withNotAllowedAggregations(java.util.Collection
* The list of aggregation types that are not allowed for the calculated field. 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 TopicCalculatedField withNotAllowedAggregations(AuthorSpecifiedAggregation... notAllowedAggregations) {
java.util.ArrayList* A Boolean value that indicates whether to never aggregate calculated field in filters. *
* * @param neverAggregateInFilter * A Boolean value that indicates whether to never aggregate calculated field in filters. */ public void setNeverAggregateInFilter(Boolean neverAggregateInFilter) { this.neverAggregateInFilter = neverAggregateInFilter; } /** ** A Boolean value that indicates whether to never aggregate calculated field in filters. *
* * @return A Boolean value that indicates whether to never aggregate calculated field in filters. */ public Boolean getNeverAggregateInFilter() { return this.neverAggregateInFilter; } /** ** A Boolean value that indicates whether to never aggregate calculated field in filters. *
* * @param neverAggregateInFilter * A Boolean value that indicates whether to never aggregate calculated field in filters. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicCalculatedField withNeverAggregateInFilter(Boolean neverAggregateInFilter) { setNeverAggregateInFilter(neverAggregateInFilter); return this; } /** ** A Boolean value that indicates whether to never aggregate calculated field in filters. *
* * @return A Boolean value that indicates whether to never aggregate calculated field in filters. */ public Boolean isNeverAggregateInFilter() { return this.neverAggregateInFilter; } /** ** The other names or aliases for the calculated field cell value. *
* * @return The other names or aliases for the calculated field cell value. */ public java.util.List* The other names or aliases for the calculated field cell value. *
* * @param cellValueSynonyms * The other names or aliases for the calculated field cell value. */ public void setCellValueSynonyms(java.util.Collection* The other names or aliases for the calculated field 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 calculated field cell value. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicCalculatedField withCellValueSynonyms(CellValueSynonym... cellValueSynonyms) { if (this.cellValueSynonyms == null) { setCellValueSynonyms(new java.util.ArrayList* The other names or aliases for the calculated field cell value. *
* * @param cellValueSynonyms * The other names or aliases for the calculated field cell value. * @return Returns a reference to this object so that method calls can be chained together. */ public TopicCalculatedField withCellValueSynonyms(java.util.Collection