Class QueryAggregation
java.lang.Object
com.azure.resourcemanager.costmanagement.models.QueryAggregation
The aggregation expression to be used in the query.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfunction()Get the function property: The name of the aggregation function to use.name()Get the name property: The name of the column to aggregate.voidvalidate()Validates the instance.withFunction(FunctionType function) Set the function property: The name of the aggregation function to use.Set the name property: The name of the column to aggregate.
-
Constructor Details
-
QueryAggregation
public QueryAggregation()Creates an instance of QueryAggregation class.
-
-
Method Details
-
name
Get the name property: The name of the column to aggregate.- Returns:
- the name value.
-
withName
Set the name property: The name of the column to aggregate.- Parameters:
name- the name value to set.- Returns:
- the QueryAggregation object itself.
-
function
Get the function property: The name of the aggregation function to use.- Returns:
- the function value.
-
withFunction
Set the function property: The name of the aggregation function to use.- Parameters:
function- the function value to set.- Returns:
- the QueryAggregation object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-