Class FacetRequest
- java.lang.Object
-
- com.azure.resourcemanager.resourcegraph.models.FacetRequest
-
public final class FacetRequest extends Object
A request to compute additional statistics (facets) over the query results.
-
-
Constructor Summary
Constructors Constructor Description FacetRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
expression()
Get the expression property: The column or list of columns to summarize by.FacetRequestOptions
options()
Get the options property: The options for facet evaluation.void
validate()
Validates the instance.FacetRequest
withExpression(String expression)
Set the expression property: The column or list of columns to summarize by.FacetRequest
withOptions(FacetRequestOptions options)
Set the options property: The options for facet evaluation.
-
-
-
Method Detail
-
expression
public String expression()
Get the expression property: The column or list of columns to summarize by.- Returns:
- the expression value.
-
withExpression
public FacetRequest withExpression(String expression)
Set the expression property: The column or list of columns to summarize by.- Parameters:
expression
- the expression value to set.- Returns:
- the FacetRequest object itself.
-
options
public FacetRequestOptions options()
Get the options property: The options for facet evaluation.- Returns:
- the options value.
-
withOptions
public FacetRequest withOptions(FacetRequestOptions options)
Set the options property: The options for facet evaluation.- Parameters:
options
- the options value to set.- Returns:
- the FacetRequest object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-