Class AggFunction
- java.lang.Object
-
- software.amazon.awssdk.services.quicksight.model.AggFunction
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<AggFunction.Builder,AggFunction>
@Generated("software.amazon.awssdk:codegen") public final class AggFunction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AggFunction.Builder,AggFunction>
The definition of an Agg function.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AggFunction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AggType
aggregation()
The aggregation of an Agg function.String
aggregationAsString()
The aggregation of an Agg function.Map<String,String>
aggregationFunctionParameters()
The aggregation parameters for an Agg function.static AggFunction.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
boolean
hasAggregationFunctionParameters()
For responses, this returns true if the service returned a value for the AggregationFunctionParameters property.int
hashCode()
TopicTimeGranularity
period()
The period of an Agg function.String
periodAsString()
The period of an Agg function.String
periodField()
The period field for an Agg function.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends AggFunction.Builder>
serializableBuilderClass()
AggFunction.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
aggregation
public final AggType aggregation()
The aggregation of an Agg function.
If the service returns an enum value that is not available in the current SDK version,
aggregation
will returnAggType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromaggregationAsString()
.- Returns:
- The aggregation of an Agg function.
- See Also:
AggType
-
aggregationAsString
public final String aggregationAsString()
The aggregation of an Agg function.
If the service returns an enum value that is not available in the current SDK version,
aggregation
will returnAggType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromaggregationAsString()
.- Returns:
- The aggregation of an Agg function.
- See Also:
AggType
-
hasAggregationFunctionParameters
public final boolean hasAggregationFunctionParameters()
For responses, this returns true if the service returned a value for the AggregationFunctionParameters 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.
-
aggregationFunctionParameters
public final Map<String,String> aggregationFunctionParameters()
The aggregation parameters for an Agg function.
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
hasAggregationFunctionParameters()
method.- Returns:
- The aggregation parameters for an Agg function.
-
period
public final TopicTimeGranularity period()
The period of an Agg function.
If the service returns an enum value that is not available in the current SDK version,
period
will returnTopicTimeGranularity.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromperiodAsString()
.- Returns:
- The period of an Agg function.
- See Also:
TopicTimeGranularity
-
periodAsString
public final String periodAsString()
The period of an Agg function.
If the service returns an enum value that is not available in the current SDK version,
period
will returnTopicTimeGranularity.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromperiodAsString()
.- Returns:
- The period of an Agg function.
- See Also:
TopicTimeGranularity
-
periodField
public final String periodField()
The period field for an Agg function.
- Returns:
- The period field for an Agg function.
-
toBuilder
public AggFunction.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<AggFunction.Builder,AggFunction>
-
builder
public static AggFunction.Builder builder()
-
serializableBuilderClass
public static Class<? extends AggFunction.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-