Partager via


GraphQueryResourceInner Class

public final class GraphQueryResourceInner
extends Resource

Graph Query entity definition.

Constructor Summary

Constructor Description
GraphQueryResourceInner()

Creates an instance of GraphQueryResourceInner class.

Method Summary

Modifier and Type Method and Description
String description()

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

String etag()

Get the etag property: This will be used to handle Optimistic Concurrency.

static GraphQueryResourceInner fromJson(JsonReader jsonReader)

Reads an instance of GraphQueryResourceInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

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)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

GraphQueryResourceInner withDescription(String description)

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

GraphQueryResourceInner withEtag(String etag)

Set the etag property: This will be used to handle Optimistic Concurrency.

GraphQueryResourceInner withLocation(String location)
GraphQueryResourceInner withQuery(String query)

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

GraphQueryResourceInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

GraphQueryResourceInner

public GraphQueryResourceInner()

Creates an instance of GraphQueryResourceInner class.

Method Details

description

public String description()

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

Returns:

the description value.

etag

public String etag()

Get the etag property: This will be used to handle Optimistic Concurrency. If not present, it will always overwrite the existing resource without checking conflict.

Returns:

the etag value.

fromJson

public static GraphQueryResourceInner fromJson(JsonReader jsonReader)

Reads an instance of GraphQueryResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

GraphQueryResourceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

GraphQueryResourceInner.name()

Returns:

the name value.

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)

Overrides:

GraphQueryResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

GraphQueryResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDescription

public GraphQueryResourceInner withDescription(String description)

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

Parameters:

description - the description value to set.

Returns:

the GraphQueryResourceInner object itself.

withEtag

public GraphQueryResourceInner withEtag(String etag)

Set the etag property: This will be used to handle Optimistic Concurrency. If not present, it will always overwrite the existing resource without checking conflict.

Parameters:

etag - the etag value to set.

Returns:

the GraphQueryResourceInner object itself.

withLocation

public GraphQueryResourceInner withLocation(String location)

Overrides:

GraphQueryResourceInner.withLocation(String location)

Parameters:

location

withQuery

public GraphQueryResourceInner withQuery(String query)

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

Parameters:

query - the query value to set.

Returns:

the GraphQueryResourceInner object itself.

withTags

public GraphQueryResourceInner withTags(Map tags)

Overrides:

GraphQueryResourceInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to