Class FacetError
- java.lang.Object
-
- com.azure.resourcemanager.resourcegraph.models.Facet
-
- com.azure.resourcemanager.resourcegraph.models.FacetError
-
public final class FacetError extends Facet
A facet whose execution resulted in an error.
-
-
Constructor Summary
Constructors Constructor Description FacetError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ErrorDetails>
errors()
Get the errors property: An array containing detected facet errors with details.void
validate()
Validates the instance.FacetError
withErrors(List<ErrorDetails> errors)
Set the errors property: An array containing detected facet errors with details.FacetError
withExpression(String expression)
Set the expression property: Facet expression, same as in the corresponding facet request.-
Methods inherited from class com.azure.resourcemanager.resourcegraph.models.Facet
expression
-
-
-
-
Method Detail
-
errors
public List<ErrorDetails> errors()
Get the errors property: An array containing detected facet errors with details.- Returns:
- the errors value.
-
withErrors
public FacetError withErrors(List<ErrorDetails> errors)
Set the errors property: An array containing detected facet errors with details.- Parameters:
errors
- the errors value to set.- Returns:
- the FacetError object itself.
-
withExpression
public FacetError withExpression(String expression)
Set the expression property: Facet expression, same as in the corresponding facet request.- Overrides:
withExpression
in classFacet
- Parameters:
expression
- the expression value to set.- Returns:
- the Facet object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classFacet
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-