GraphQueryUpdateParameters Class

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

Implements

public final class GraphQueryUpdateParameters
implements JsonSerializable<GraphQueryUpdateParameters>

The parameters that can be provided when updating workbook properties properties.

Constructor Summary

Constructor Description
GraphQueryUpdateParameters()

Creates an instance of GraphQueryUpdateParameters 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 GraphQueryUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of GraphQueryUpdateParameters from the JsonReader.

String query()

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

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GraphQueryUpdateParameters withDescription(String description)

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

GraphQueryUpdateParameters withEtag(String etag)

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

GraphQueryUpdateParameters withQuery(String query)

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

GraphQueryUpdateParameters withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from java.lang.Object

Constructor Details

GraphQueryUpdateParameters

public GraphQueryUpdateParameters()

Creates an instance of GraphQueryUpdateParameters 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 GraphQueryUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of GraphQueryUpdateParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the GraphQueryUpdateParameters.

query

public String query()

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

Returns:

the query value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public GraphQueryUpdateParameters withDescription(String description)

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

Parameters:

description - the description value to set.

Returns:

the GraphQueryUpdateParameters object itself.

withEtag

public GraphQueryUpdateParameters 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 GraphQueryUpdateParameters object itself.

withQuery

public GraphQueryUpdateParameters withQuery(String query)

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

Parameters:

query - the query value to set.

Returns:

the GraphQueryUpdateParameters object itself.

withTags

public GraphQueryUpdateParameters withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the GraphQueryUpdateParameters object itself.

Applies to