FacetRequest Class

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

Implements

public final class FacetRequest
implements JsonSerializable<FacetRequest>

A request to compute additional statistics (facets) over the query results.

Constructor Summary

Constructor Description
FacetRequest()

Creates an instance of FacetRequest class.

Method Summary

Modifier and Type Method and Description
String expression()

Get the expression property: The column or list of columns to summarize by.

static FacetRequest fromJson(JsonReader jsonReader)

Reads an instance of FacetRequest from the JsonReader.

FacetRequestOptions options()

Get the options property: The options for facet evaluation.

JsonWriter toJson(JsonWriter jsonWriter)
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.

Methods inherited from java.lang.Object

Constructor Details

FacetRequest

public FacetRequest()

Creates an instance of FacetRequest class.

Method Details

expression

public String expression()

Get the expression property: The column or list of columns to summarize by.

Returns:

the expression value.

fromJson

public static FacetRequest fromJson(JsonReader jsonReader)

Reads an instance of FacetRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of FacetRequest 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.

options

public FacetRequestOptions options()

Get the options property: The options for facet evaluation.

Returns:

the options value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to