RestorableGremlinGraphProperties Class

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

Implements

public final class RestorableGremlinGraphProperties
implements JsonSerializable<RestorableGremlinGraphProperties>

The properties of an Azure Cosmos DB Gremlin graph event.

Constructor Summary

Constructor Description
RestorableGremlinGraphProperties()

Creates an instance of RestorableGremlinGraphProperties class.

Method Summary

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

Reads an instance of RestorableGremlinGraphProperties from the JsonReader.

RestorableGremlinGraphPropertiesResource resource()

Get the resource property: The resource of an Azure Cosmos DB Gremlin graph event.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RestorableGremlinGraphProperties withResource(RestorableGremlinGraphPropertiesResource resource)

Set the resource property: The resource of an Azure Cosmos DB Gremlin graph event.

Methods inherited from java.lang.Object

Constructor Details

RestorableGremlinGraphProperties

public RestorableGremlinGraphProperties()

Creates an instance of RestorableGremlinGraphProperties class.

Method Details

fromJson

public static RestorableGremlinGraphProperties fromJson(JsonReader jsonReader)

Reads an instance of RestorableGremlinGraphProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resource

public RestorableGremlinGraphPropertiesResource resource()

Get the resource property: The resource of an Azure Cosmos DB Gremlin graph event.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResource

public RestorableGremlinGraphProperties withResource(RestorableGremlinGraphPropertiesResource resource)

Set the resource property: The resource of an Azure Cosmos DB Gremlin graph event.

Parameters:

resource - the resource value to set.

Returns:

the RestorableGremlinGraphProperties object itself.

Applies to