/* * 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 calculatedFieldSynonyms; /** *

* 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. *

*/ private String columnDataRole; /** *

* The level of time precision that is used to aggregate DateTime values. *

*/ private String timeGranularity; /** *

* The default formatting definition. *

*/ private DefaultFormatting defaultFormatting; /** *

* The default aggregation. Valid values for this structure are SUM, MAX, MIN, COUNT, DISTINCT_COUNT, and AVERAGE. *

*/ private String aggregation; /** *

* 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. *

*/ private java.util.List allowedAggregations; /** *

* 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. *

*/ private java.util.List notAllowedAggregations; /** *

* 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 cellValueSynonyms; /** *

* 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 getCalculatedFieldSynonyms() { return calculatedFieldSynonyms; } /** *

* 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 calculatedFieldSynonyms) { if (calculatedFieldSynonyms == null) { this.calculatedFieldSynonyms = null; return; } this.calculatedFieldSynonyms = new java.util.ArrayList(calculatedFieldSynonyms); } /** *

* 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(calculatedFieldSynonyms.length)); } for (String ele : calculatedFieldSynonyms) { this.calculatedFieldSynonyms.add(ele); } return this; } /** *

* 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 calculatedFieldSynonyms) { setCalculatedFieldSynonyms(calculatedFieldSynonyms); return this; } /** *

* 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. *

* * @param columnDataRole * The column data role for a calculated field. Valid values for this structure are 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. *

* * @return The column data role for a calculated field. Valid values for this structure are 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. *

* * @param columnDataRole * The column data role for a calculated field. Valid values for this structure are 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. *

* * @param columnDataRole * The column data role for a calculated field. Valid values for this structure are 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. *

* * @param timeGranularity * The level of time precision that is used to aggregate DateTime values. * @see TopicTimeGranularity */ public void setTimeGranularity(String timeGranularity) { this.timeGranularity = timeGranularity; } /** *

* The level of time precision that is used to aggregate DateTime values. *

* * @return The level of time precision that is used to aggregate DateTime values. * @see TopicTimeGranularity */ public String getTimeGranularity() { return this.timeGranularity; } /** *

* The level of time precision that is used to aggregate DateTime values. *

* * @param timeGranularity * The level of time precision that is used to aggregate 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. *

* * @param timeGranularity * The level of time precision that is used to aggregate 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. *

* * @param aggregation * The default aggregation. Valid values for this structure are 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. *

* * @return The default aggregation. Valid values for this structure are 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. *

* * @param aggregation * The default aggregation. Valid values for this structure are 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. *

* * @param aggregation * The default aggregation. Valid values for this structure are 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. *

* * @return 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. * @see AuthorSpecifiedAggregation */ public java.util.List getAllowedAggregations() { return allowedAggregations; } /** *

* 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. *

* * @param allowedAggregations * 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. * @see AuthorSpecifiedAggregation */ public void setAllowedAggregations(java.util.Collection allowedAggregations) { if (allowedAggregations == null) { this.allowedAggregations = null; return; } this.allowedAggregations = new java.util.ArrayList(allowedAggregations); } /** *

* 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 * 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 TopicCalculatedField withAllowedAggregations(String... allowedAggregations) { if (this.allowedAggregations == null) { setAllowedAggregations(new java.util.ArrayList(allowedAggregations.length)); } for (String ele : allowedAggregations) { this.allowedAggregations.add(ele); } 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. *

* * @param allowedAggregations * 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. * @return Returns a reference to this object so that method calls can be chained together. * @see AuthorSpecifiedAggregation */ public TopicCalculatedField withAllowedAggregations(java.util.Collection allowedAggregations) { setAllowedAggregations(allowedAggregations); 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. *

* * @param allowedAggregations * 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. * @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 allowedAggregationsCopy = new java.util.ArrayList(allowedAggregations.length); for (AuthorSpecifiedAggregation value : allowedAggregations) { allowedAggregationsCopy.add(value.toString()); } if (getAllowedAggregations() == null) { setAllowedAggregations(allowedAggregationsCopy); } else { getAllowedAggregations().addAll(allowedAggregationsCopy); } return this; } /** *

* 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. *

* * @return 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. * @see AuthorSpecifiedAggregation */ public java.util.List getNotAllowedAggregations() { return notAllowedAggregations; } /** *

* 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. *

* * @param notAllowedAggregations * 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. * @see AuthorSpecifiedAggregation */ public void setNotAllowedAggregations(java.util.Collection notAllowedAggregations) { if (notAllowedAggregations == null) { this.notAllowedAggregations = null; return; } this.notAllowedAggregations = new java.util.ArrayList(notAllowedAggregations); } /** *

* 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 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 TopicCalculatedField withNotAllowedAggregations(String... notAllowedAggregations) { if (this.notAllowedAggregations == null) { setNotAllowedAggregations(new java.util.ArrayList(notAllowedAggregations.length)); } for (String ele : notAllowedAggregations) { this.notAllowedAggregations.add(ele); } return this; } /** *

* 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. *

* * @param notAllowedAggregations * 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. * @return Returns a reference to this object so that method calls can be chained together. * @see AuthorSpecifiedAggregation */ public TopicCalculatedField withNotAllowedAggregations(java.util.Collection notAllowedAggregations) { setNotAllowedAggregations(notAllowedAggregations); return this; } /** *

* 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. *

* * @param notAllowedAggregations * 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. * @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 notAllowedAggregationsCopy = new java.util.ArrayList(notAllowedAggregations.length); for (AuthorSpecifiedAggregation value : notAllowedAggregations) { notAllowedAggregationsCopy.add(value.toString()); } if (getNotAllowedAggregations() == null) { setNotAllowedAggregations(notAllowedAggregationsCopy); } else { getNotAllowedAggregations().addAll(notAllowedAggregationsCopy); } return this; } /** *

* 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 getCellValueSynonyms() { return cellValueSynonyms; } /** *

* 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 cellValueSynonyms) { if (cellValueSynonyms == null) { this.cellValueSynonyms = null; return; } this.cellValueSynonyms = new java.util.ArrayList(cellValueSynonyms); } /** *

* 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(cellValueSynonyms.length)); } for (CellValueSynonym ele : cellValueSynonyms) { this.cellValueSynonyms.add(ele); } return this; } /** *

* 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 cellValueSynonyms) { setCellValueSynonyms(cellValueSynonyms); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCalculatedFieldName() != null) sb.append("CalculatedFieldName: ").append(getCalculatedFieldName()).append(","); if (getCalculatedFieldDescription() != null) sb.append("CalculatedFieldDescription: ").append(getCalculatedFieldDescription()).append(","); if (getExpression() != null) sb.append("Expression: ").append("***Sensitive Data Redacted***").append(","); if (getCalculatedFieldSynonyms() != null) sb.append("CalculatedFieldSynonyms: ").append(getCalculatedFieldSynonyms()).append(","); if (getIsIncludedInTopic() != null) sb.append("IsIncludedInTopic: ").append(getIsIncludedInTopic()).append(","); if (getDisableIndexing() != null) sb.append("DisableIndexing: ").append(getDisableIndexing()).append(","); if (getColumnDataRole() != null) sb.append("ColumnDataRole: ").append(getColumnDataRole()).append(","); if (getTimeGranularity() != null) sb.append("TimeGranularity: ").append(getTimeGranularity()).append(","); if (getDefaultFormatting() != null) sb.append("DefaultFormatting: ").append(getDefaultFormatting()).append(","); if (getAggregation() != null) sb.append("Aggregation: ").append(getAggregation()).append(","); if (getComparativeOrder() != null) sb.append("ComparativeOrder: ").append(getComparativeOrder()).append(","); if (getSemanticType() != null) sb.append("SemanticType: ").append(getSemanticType()).append(","); if (getAllowedAggregations() != null) sb.append("AllowedAggregations: ").append(getAllowedAggregations()).append(","); if (getNotAllowedAggregations() != null) sb.append("NotAllowedAggregations: ").append(getNotAllowedAggregations()).append(","); if (getNeverAggregateInFilter() != null) sb.append("NeverAggregateInFilter: ").append(getNeverAggregateInFilter()).append(","); if (getCellValueSynonyms() != null) sb.append("CellValueSynonyms: ").append(getCellValueSynonyms()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TopicCalculatedField == false) return false; TopicCalculatedField other = (TopicCalculatedField) obj; if (other.getCalculatedFieldName() == null ^ this.getCalculatedFieldName() == null) return false; if (other.getCalculatedFieldName() != null && other.getCalculatedFieldName().equals(this.getCalculatedFieldName()) == false) return false; if (other.getCalculatedFieldDescription() == null ^ this.getCalculatedFieldDescription() == null) return false; if (other.getCalculatedFieldDescription() != null && other.getCalculatedFieldDescription().equals(this.getCalculatedFieldDescription()) == false) return false; if (other.getExpression() == null ^ this.getExpression() == null) return false; if (other.getExpression() != null && other.getExpression().equals(this.getExpression()) == false) return false; if (other.getCalculatedFieldSynonyms() == null ^ this.getCalculatedFieldSynonyms() == null) return false; if (other.getCalculatedFieldSynonyms() != null && other.getCalculatedFieldSynonyms().equals(this.getCalculatedFieldSynonyms()) == false) return false; if (other.getIsIncludedInTopic() == null ^ this.getIsIncludedInTopic() == null) return false; if (other.getIsIncludedInTopic() != null && other.getIsIncludedInTopic().equals(this.getIsIncludedInTopic()) == false) return false; if (other.getDisableIndexing() == null ^ this.getDisableIndexing() == null) return false; if (other.getDisableIndexing() != null && other.getDisableIndexing().equals(this.getDisableIndexing()) == false) return false; if (other.getColumnDataRole() == null ^ this.getColumnDataRole() == null) return false; if (other.getColumnDataRole() != null && other.getColumnDataRole().equals(this.getColumnDataRole()) == false) return false; if (other.getTimeGranularity() == null ^ this.getTimeGranularity() == null) return false; if (other.getTimeGranularity() != null && other.getTimeGranularity().equals(this.getTimeGranularity()) == false) return false; if (other.getDefaultFormatting() == null ^ this.getDefaultFormatting() == null) return false; if (other.getDefaultFormatting() != null && other.getDefaultFormatting().equals(this.getDefaultFormatting()) == false) return false; if (other.getAggregation() == null ^ this.getAggregation() == null) return false; if (other.getAggregation() != null && other.getAggregation().equals(this.getAggregation()) == false) return false; if (other.getComparativeOrder() == null ^ this.getComparativeOrder() == null) return false; if (other.getComparativeOrder() != null && other.getComparativeOrder().equals(this.getComparativeOrder()) == false) return false; if (other.getSemanticType() == null ^ this.getSemanticType() == null) return false; if (other.getSemanticType() != null && other.getSemanticType().equals(this.getSemanticType()) == false) return false; if (other.getAllowedAggregations() == null ^ this.getAllowedAggregations() == null) return false; if (other.getAllowedAggregations() != null && other.getAllowedAggregations().equals(this.getAllowedAggregations()) == false) return false; if (other.getNotAllowedAggregations() == null ^ this.getNotAllowedAggregations() == null) return false; if (other.getNotAllowedAggregations() != null && other.getNotAllowedAggregations().equals(this.getNotAllowedAggregations()) == false) return false; if (other.getNeverAggregateInFilter() == null ^ this.getNeverAggregateInFilter() == null) return false; if (other.getNeverAggregateInFilter() != null && other.getNeverAggregateInFilter().equals(this.getNeverAggregateInFilter()) == false) return false; if (other.getCellValueSynonyms() == null ^ this.getCellValueSynonyms() == null) return false; if (other.getCellValueSynonyms() != null && other.getCellValueSynonyms().equals(this.getCellValueSynonyms()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCalculatedFieldName() == null) ? 0 : getCalculatedFieldName().hashCode()); hashCode = prime * hashCode + ((getCalculatedFieldDescription() == null) ? 0 : getCalculatedFieldDescription().hashCode()); hashCode = prime * hashCode + ((getExpression() == null) ? 0 : getExpression().hashCode()); hashCode = prime * hashCode + ((getCalculatedFieldSynonyms() == null) ? 0 : getCalculatedFieldSynonyms().hashCode()); hashCode = prime * hashCode + ((getIsIncludedInTopic() == null) ? 0 : getIsIncludedInTopic().hashCode()); hashCode = prime * hashCode + ((getDisableIndexing() == null) ? 0 : getDisableIndexing().hashCode()); hashCode = prime * hashCode + ((getColumnDataRole() == null) ? 0 : getColumnDataRole().hashCode()); hashCode = prime * hashCode + ((getTimeGranularity() == null) ? 0 : getTimeGranularity().hashCode()); hashCode = prime * hashCode + ((getDefaultFormatting() == null) ? 0 : getDefaultFormatting().hashCode()); hashCode = prime * hashCode + ((getAggregation() == null) ? 0 : getAggregation().hashCode()); hashCode = prime * hashCode + ((getComparativeOrder() == null) ? 0 : getComparativeOrder().hashCode()); hashCode = prime * hashCode + ((getSemanticType() == null) ? 0 : getSemanticType().hashCode()); hashCode = prime * hashCode + ((getAllowedAggregations() == null) ? 0 : getAllowedAggregations().hashCode()); hashCode = prime * hashCode + ((getNotAllowedAggregations() == null) ? 0 : getNotAllowedAggregations().hashCode()); hashCode = prime * hashCode + ((getNeverAggregateInFilter() == null) ? 0 : getNeverAggregateInFilter().hashCode()); hashCode = prime * hashCode + ((getCellValueSynonyms() == null) ? 0 : getCellValueSynonyms().hashCode()); return hashCode; } @Override public TopicCalculatedField clone() { try { return (TopicCalculatedField) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.quicksight.model.transform.TopicCalculatedFieldMarshaller.getInstance().marshall(this, protocolMarshaller); } }