Class Facet
- java.lang.Object
-
- com.azure.resourcemanager.resourcegraph.models.Facet
-
- Direct Known Subclasses:
FacetError
,FacetResult
public class Facet extends Object
A facet containing additional statistics on the response of a query. Can be either FacetResult or FacetError.
-
-
Constructor Summary
Constructors Constructor Description Facet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
expression()
Get the expression property: Facet expression, same as in the corresponding facet request.void
validate()
Validates the instance.Facet
withExpression(String expression)
Set the expression property: Facet expression, same as in the corresponding facet request.
-
-
-
Method Detail
-
expression
public String expression()
Get the expression property: Facet expression, same as in the corresponding facet request.- Returns:
- the expression value.
-
withExpression
public Facet withExpression(String expression)
Set the expression property: Facet expression, same as in the corresponding facet request.- Parameters:
expression
- the expression value to set.- Returns:
- the Facet object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-