GremlinGraphCreateUpdateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.GremlinGraphCreateUpdateProperties

Implements

public final class GremlinGraphCreateUpdateProperties
implements JsonSerializable<GremlinGraphCreateUpdateProperties>

Properties to create and update Azure Cosmos DB Gremlin graph.

Constructor Summary

Constructor Description
GremlinGraphCreateUpdateProperties()

Creates an instance of GremlinGraphCreateUpdateProperties class.

Method Summary

Modifier and Type Method and Description
static GremlinGraphCreateUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of GremlinGraphCreateUpdateProperties from the JsonReader.

CreateUpdateOptions options()

Get the options property: A key-value pair of options to be applied for the request.

GremlinGraphResource resource()

Get the resource property: The standard JSON format of a Gremlin graph.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GremlinGraphCreateUpdateProperties withOptions(CreateUpdateOptions options)

Set the options property: A key-value pair of options to be applied for the request.

GremlinGraphCreateUpdateProperties withResource(GremlinGraphResource resource)

Set the resource property: The standard JSON format of a Gremlin graph.

Methods inherited from java.lang.Object

Constructor Details

GremlinGraphCreateUpdateProperties

public GremlinGraphCreateUpdateProperties()

Creates an instance of GremlinGraphCreateUpdateProperties class.

Method Details

fromJson

public static GremlinGraphCreateUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of GremlinGraphCreateUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GremlinGraphCreateUpdateProperties 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 CreateUpdateOptions options()

Get the options property: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

Returns:

the options value.

resource

public GremlinGraphResource resource()

Get the resource property: The standard JSON format of a Gremlin graph.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withOptions

public GremlinGraphCreateUpdateProperties withOptions(CreateUpdateOptions options)

Set the options property: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

Parameters:

options - the options value to set.

Returns:

the GremlinGraphCreateUpdateProperties object itself.

withResource

public GremlinGraphCreateUpdateProperties withResource(GremlinGraphResource resource)

Set the resource property: The standard JSON format of a Gremlin graph.

Parameters:

resource - the resource value to set.

Returns:

the GremlinGraphCreateUpdateProperties object itself.

Applies to