Class QueryAggregation

java.lang.Object
com.azure.resourcemanager.costmanagement.models.QueryAggregation

public final class QueryAggregation extends Object
The aggregation expression to be used in the query.
  • Constructor Details

    • QueryAggregation

      public QueryAggregation()
      Creates an instance of QueryAggregation class.
  • Method Details

    • name

      public String name()
      Get the name property: The name of the column to aggregate.
      Returns:
      the name value.
    • withName

      public QueryAggregation withName(String name)
      Set the name property: The name of the column to aggregate.
      Parameters:
      name - the name value to set.
      Returns:
      the QueryAggregation object itself.
    • function

      public FunctionType function()
      Get the function property: The name of the aggregation function to use.
      Returns:
      the function value.
    • withFunction

      public QueryAggregation withFunction(FunctionType function)
      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.