/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the quicksight-2018-04-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.QuickSight.Model
{
///
/// A structure that represents a calculated field.
///
public partial class TopicCalculatedField
{
private DefaultAggregation _aggregation;
private List _allowedAggregations = new List();
private string _calculatedFieldDescription;
private string _calculatedFieldName;
private List _calculatedFieldSynonyms = new List();
private List _cellValueSynonyms = new List();
private ColumnDataRole _columnDataRole;
private ComparativeOrder _comparativeOrder;
private DefaultFormatting _defaultFormatting;
private bool? _disableIndexing;
private string _expression;
private bool? _isIncludedInTopic;
private bool? _neverAggregateInFilter;
private List _notAllowedAggregations = new List();
private SemanticType _semanticType;
private TopicTimeGranularity _timeGranularity;
///
/// Gets and sets the property Aggregation.
///
/// The default aggregation. Valid values for this structure are SUM
, MAX
,
/// MIN
, COUNT
, DISTINCT_COUNT
, and AVERAGE
.
///
///
public DefaultAggregation Aggregation
{
get { return this._aggregation; }
set { this._aggregation = value; }
}
// Check to see if Aggregation property is set
internal bool IsSetAggregation()
{
return this._aggregation != null;
}
///
/// Gets and sets the property 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
.
///
///
public List AllowedAggregations
{
get { return this._allowedAggregations; }
set { this._allowedAggregations = value; }
}
// Check to see if AllowedAggregations property is set
internal bool IsSetAllowedAggregations()
{
return this._allowedAggregations != null && this._allowedAggregations.Count > 0;
}
///
/// Gets and sets the property CalculatedFieldDescription.
///
/// The calculated field description.
///
///
[AWSProperty(Max=256)]
public string CalculatedFieldDescription
{
get { return this._calculatedFieldDescription; }
set { this._calculatedFieldDescription = value; }
}
// Check to see if CalculatedFieldDescription property is set
internal bool IsSetCalculatedFieldDescription()
{
return this._calculatedFieldDescription != null;
}
///
/// Gets and sets the property CalculatedFieldName.
///
/// The calculated field name.
///
///
[AWSProperty(Required=true, Max=256)]
public string CalculatedFieldName
{
get { return this._calculatedFieldName; }
set { this._calculatedFieldName = value; }
}
// Check to see if CalculatedFieldName property is set
internal bool IsSetCalculatedFieldName()
{
return this._calculatedFieldName != null;
}
///
/// Gets and sets the property CalculatedFieldSynonyms.
///
/// The other names or aliases for the calculated field.
///
///
public List CalculatedFieldSynonyms
{
get { return this._calculatedFieldSynonyms; }
set { this._calculatedFieldSynonyms = value; }
}
// Check to see if CalculatedFieldSynonyms property is set
internal bool IsSetCalculatedFieldSynonyms()
{
return this._calculatedFieldSynonyms != null && this._calculatedFieldSynonyms.Count > 0;
}
///
/// Gets and sets the property CellValueSynonyms.
///
/// The other names or aliases for the calculated field cell value.
///
///
public List CellValueSynonyms
{
get { return this._cellValueSynonyms; }
set { this._cellValueSynonyms = value; }
}
// Check to see if CellValueSynonyms property is set
internal bool IsSetCellValueSynonyms()
{
return this._cellValueSynonyms != null && this._cellValueSynonyms.Count > 0;
}
///
/// Gets and sets the property ColumnDataRole.
///
/// The column data role for a calculated field. Valid values for this structure are DIMENSION
/// and MEASURE
.
///
///
public ColumnDataRole ColumnDataRole
{
get { return this._columnDataRole; }
set { this._columnDataRole = value; }
}
// Check to see if ColumnDataRole property is set
internal bool IsSetColumnDataRole()
{
return this._columnDataRole != null;
}
///
/// Gets and sets the property ComparativeOrder.
///
/// The order in which data is displayed for the calculated field when it's used in a
/// comparative context.
///
///
public ComparativeOrder ComparativeOrder
{
get { return this._comparativeOrder; }
set { this._comparativeOrder = value; }
}
// Check to see if ComparativeOrder property is set
internal bool IsSetComparativeOrder()
{
return this._comparativeOrder != null;
}
///
/// Gets and sets the property DefaultFormatting.
///
/// The default formatting definition.
///
///
public DefaultFormatting DefaultFormatting
{
get { return this._defaultFormatting; }
set { this._defaultFormatting = value; }
}
// Check to see if DefaultFormatting property is set
internal bool IsSetDefaultFormatting()
{
return this._defaultFormatting != null;
}
///
/// Gets and sets the property DisableIndexing.
///
/// A Boolean value that indicates if a calculated field is visible in the autocomplete.
///
///
public bool DisableIndexing
{
get { return this._disableIndexing.GetValueOrDefault(); }
set { this._disableIndexing = value; }
}
// Check to see if DisableIndexing property is set
internal bool IsSetDisableIndexing()
{
return this._disableIndexing.HasValue;
}
///
/// Gets and sets the property Expression.
///
/// The calculated field expression.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=4096)]
public string Expression
{
get { return this._expression; }
set { this._expression = value; }
}
// Check to see if Expression property is set
internal bool IsSetExpression()
{
return this._expression != null;
}
///
/// Gets and sets the property IsIncludedInTopic.
///
/// A boolean value that indicates if a calculated field is included in the topic.
///
///
public bool IsIncludedInTopic
{
get { return this._isIncludedInTopic.GetValueOrDefault(); }
set { this._isIncludedInTopic = value; }
}
// Check to see if IsIncludedInTopic property is set
internal bool IsSetIsIncludedInTopic()
{
return this._isIncludedInTopic.HasValue;
}
///
/// Gets and sets the property NeverAggregateInFilter.
///
/// A Boolean value that indicates whether to never aggregate calculated field in filters.
///
///
public bool NeverAggregateInFilter
{
get { return this._neverAggregateInFilter.GetValueOrDefault(); }
set { this._neverAggregateInFilter = value; }
}
// Check to see if NeverAggregateInFilter property is set
internal bool IsSetNeverAggregateInFilter()
{
return this._neverAggregateInFilter.HasValue;
}
///
/// Gets and sets the property 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
.
///
///
public List NotAllowedAggregations
{
get { return this._notAllowedAggregations; }
set { this._notAllowedAggregations = value; }
}
// Check to see if NotAllowedAggregations property is set
internal bool IsSetNotAllowedAggregations()
{
return this._notAllowedAggregations != null && this._notAllowedAggregations.Count > 0;
}
///
/// Gets and sets the property SemanticType.
///
/// The semantic type.
///
///
public SemanticType SemanticType
{
get { return this._semanticType; }
set { this._semanticType = value; }
}
// Check to see if SemanticType property is set
internal bool IsSetSemanticType()
{
return this._semanticType != null;
}
///
/// Gets and sets the property TimeGranularity.
///
/// The level of time precision that is used to aggregate DateTime
values.
///
///
public TopicTimeGranularity TimeGranularity
{
get { return this._timeGranularity; }
set { this._timeGranularity = value; }
}
// Check to see if TimeGranularity property is set
internal bool IsSetTimeGranularity()
{
return this._timeGranularity != null;
}
}
}