Class TopicCalculatedField
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TopicCalculatedField.Builder,TopicCalculatedField>
A structure that represents a calculated field.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal DefaultAggregationThe default aggregation.final StringThe default aggregation.final List<AuthorSpecifiedAggregation> The list of aggregation types that are allowed for the calculated field.The list of aggregation types that are allowed for the calculated field.static TopicCalculatedField.Builderbuilder()final StringThe calculated field description.final StringThe calculated field name.The other names or aliases for the calculated field.final List<CellValueSynonym> The other names or aliases for the calculated field cell value.final ColumnDataRoleThe column data role for a calculated field.final StringThe column data role for a calculated field.final ComparativeOrderThe order in which data is displayed for the calculated field when it's used in a comparative context.final DefaultFormattingThe default formatting definition.final BooleanA Boolean value that indicates if a calculated field is visible in the autocomplete.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringThe calculated field expression.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the AllowedAggregations property.final booleanFor responses, this returns true if the service returned a value for the CalculatedFieldSynonyms property.final booleanFor responses, this returns true if the service returned a value for the CellValueSynonyms property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the NotAllowedAggregations property.final BooleanA boolean value that indicates if a calculated field is included in the topic.final BooleanA Boolean value that indicates whether to never aggregate calculated field in filters.final BooleanThe non additive for the table style target.final List<AuthorSpecifiedAggregation> The list of aggregation types that are not allowed for the calculated field.The list of aggregation types that are not allowed for the calculated field.final SemanticTypeThe semantic type.static Class<? extends TopicCalculatedField.Builder> final TopicTimeGranularityThe level of time precision that is used to aggregateDateTimevalues.final StringThe level of time precision that is used to aggregateDateTimevalues.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
calculatedFieldName
The calculated field name.
- Returns:
- The calculated field name.
-
calculatedFieldDescription
The calculated field description.
- Returns:
- The calculated field description.
-
expression
The calculated field expression.
- Returns:
- The calculated field expression.
-
hasCalculatedFieldSynonyms
public final boolean hasCalculatedFieldSynonyms()For responses, this returns true if the service returned a value for the CalculatedFieldSynonyms property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
calculatedFieldSynonyms
The other names or aliases for the calculated field.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCalculatedFieldSynonyms()method.- Returns:
- The other names or aliases for the calculated field.
-
isIncludedInTopic
A boolean value that indicates if a calculated field is included in the topic.
- Returns:
- A boolean value that indicates if a calculated field is included in the topic.
-
disableIndexing
A Boolean value that indicates if a calculated field is visible in the autocomplete.
- Returns:
- A Boolean value that indicates if a calculated field is visible in the autocomplete.
-
columnDataRole
The column data role for a calculated field. Valid values for this structure are
DIMENSIONandMEASURE.If the service returns an enum value that is not available in the current SDK version,
columnDataRolewill returnColumnDataRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcolumnDataRoleAsString().- Returns:
- The column data role for a calculated field. Valid values for this structure are
DIMENSIONandMEASURE. - See Also:
-
columnDataRoleAsString
The column data role for a calculated field. Valid values for this structure are
DIMENSIONandMEASURE.If the service returns an enum value that is not available in the current SDK version,
columnDataRolewill returnColumnDataRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcolumnDataRoleAsString().- Returns:
- The column data role for a calculated field. Valid values for this structure are
DIMENSIONandMEASURE. - See Also:
-
timeGranularity
The level of time precision that is used to aggregate
DateTimevalues.If the service returns an enum value that is not available in the current SDK version,
timeGranularitywill returnTopicTimeGranularity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtimeGranularityAsString().- Returns:
- The level of time precision that is used to aggregate
DateTimevalues. - See Also:
-
timeGranularityAsString
The level of time precision that is used to aggregate
DateTimevalues.If the service returns an enum value that is not available in the current SDK version,
timeGranularitywill returnTopicTimeGranularity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtimeGranularityAsString().- Returns:
- The level of time precision that is used to aggregate
DateTimevalues. - See Also:
-
defaultFormatting
The default formatting definition.
- Returns:
- The default formatting definition.
-
aggregation
The default aggregation. Valid values for this structure are
SUM,MAX,MIN,COUNT,DISTINCT_COUNT, andAVERAGE.If the service returns an enum value that is not available in the current SDK version,
aggregationwill returnDefaultAggregation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaggregationAsString().- Returns:
- The default aggregation. Valid values for this structure are
SUM,MAX,MIN,COUNT,DISTINCT_COUNT, andAVERAGE. - See Also:
-
aggregationAsString
The default aggregation. Valid values for this structure are
SUM,MAX,MIN,COUNT,DISTINCT_COUNT, andAVERAGE.If the service returns an enum value that is not available in the current SDK version,
aggregationwill returnDefaultAggregation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaggregationAsString().- Returns:
- The default aggregation. Valid values for this structure are
SUM,MAX,MIN,COUNT,DISTINCT_COUNT, andAVERAGE. - See Also:
-
comparativeOrder
The order in which data is displayed for the calculated field when it's used in a comparative context.
- Returns:
- The order in which data is displayed for the calculated field when it's used in a comparative context.
-
semanticType
-
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, andPERCENTILE.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAllowedAggregations()method.- Returns:
- 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, andPERCENTILE.
-
hasAllowedAggregations
public final boolean hasAllowedAggregations()For responses, this returns true if the service returned a value for the AllowedAggregations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
allowedAggregationsAsStrings
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, andPERCENTILE.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAllowedAggregations()method.- Returns:
- 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, andPERCENTILE.
-
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, andPERCENTILE.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasNotAllowedAggregations()method.- Returns:
- 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, andPERCENTILE.
-
hasNotAllowedAggregations
public final boolean hasNotAllowedAggregations()For responses, this returns true if the service returned a value for the NotAllowedAggregations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
notAllowedAggregationsAsStrings
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, andPERCENTILE.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasNotAllowedAggregations()method.- Returns:
- 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, andPERCENTILE.
-
neverAggregateInFilter
A Boolean value that indicates whether to never aggregate calculated field in filters.
- Returns:
- A Boolean value that indicates whether to never aggregate calculated field in filters.
-
hasCellValueSynonyms
public final boolean hasCellValueSynonyms()For responses, this returns true if the service returned a value for the CellValueSynonyms property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
cellValueSynonyms
The other names or aliases for the calculated field cell value.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCellValueSynonyms()method.- Returns:
- The other names or aliases for the calculated field cell value.
-
nonAdditive
The non additive for the table style target.
- Returns:
- The non additive for the table style target.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<TopicCalculatedField.Builder,TopicCalculatedField> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-