Partager via


Facet Class

  • java.lang.Object
    • com.azure.resourcemanager.resourcegraph.models.Facet

Implements

public class Facet
implements JsonSerializable<Facet>

A facet containing additional statistics on the response of a query. Can be either FacetResult or FacetError.

Constructor Summary

Constructor Description
Facet()

Creates an instance of Facet class.

Method Summary

Modifier and Type Method and Description
String expression()

Get the expression property: Facet expression, same as in the corresponding facet request.

static Facet fromJson(JsonReader jsonReader)

Reads an instance of Facet from the JsonReader.

String resultType()

Get the resultType property: Result type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Facet withExpression(String expression)

Set the expression property: Facet expression, same as in the corresponding facet request.

Methods inherited from java.lang.Object

Constructor Details

Facet

public Facet()

Creates an instance of Facet class.

Method Details

expression

public String expression()

Get the expression property: Facet expression, same as in the corresponding facet request.

Returns:

the expression value.

fromJson

public static Facet fromJson(JsonReader jsonReader)

Reads an instance of Facet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Facet if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

resultType

public String resultType()

Get the resultType property: Result type.

Returns:

the resultType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

Applies to