GraphQueryProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.resourcegraph.fluent.models.GraphQueryProperties

Implements

public final class GraphQueryProperties
implements JsonSerializable<GraphQueryProperties>

Properties that contain a graph query.

Constructor Summary

Constructor Description
GraphQueryProperties()

Creates an instance of GraphQueryProperties class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The description of a graph query.

static GraphQueryProperties fromJson(JsonReader jsonReader)

Reads an instance of GraphQueryProperties from the JsonReader.

String query()

Get the query property: KQL query that will be graph.

ResultKind resultKind()

Get the resultKind property: Enum indicating a type of graph query.

OffsetDateTime timeModified()

Get the timeModified property: Date and time in UTC of the last modification that was made to this graph query definition.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GraphQueryProperties withDescription(String description)

Set the description property: The description of a graph query.

GraphQueryProperties withQuery(String query)

Set the query property: KQL query that will be graph.

Methods inherited from java.lang.Object

Constructor Details

GraphQueryProperties

public GraphQueryProperties()

Creates an instance of GraphQueryProperties class.

Method Details

description

public String description()

Get the description property: The description of a graph query.

Returns:

the description value.

fromJson

public static GraphQueryProperties fromJson(JsonReader jsonReader)

Reads an instance of GraphQueryProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

query

public String query()

Get the query property: KQL query that will be graph.

Returns:

the query value.

resultKind

public ResultKind resultKind()

Get the resultKind property: Enum indicating a type of graph query.

Returns:

the resultKind value.

timeModified

public OffsetDateTime timeModified()

Get the timeModified property: Date and time in UTC of the last modification that was made to this graph query definition.

Returns:

the timeModified value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public GraphQueryProperties withDescription(String description)

Set the description property: The description of a graph query.

Parameters:

description - the description value to set.

Returns:

the GraphQueryProperties object itself.

withQuery

public GraphQueryProperties withQuery(String query)

Set the query property: KQL query that will be graph.

Parameters:

query - the query value to set.

Returns:

the GraphQueryProperties object itself.

Applies to