RestorableGremlinDatabaseProperties Class

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

Implements

public final class RestorableGremlinDatabaseProperties
implements JsonSerializable<RestorableGremlinDatabaseProperties>

The properties of an Azure Cosmos DB Gremlin database event.

Constructor Summary

Constructor Description
RestorableGremlinDatabaseProperties()

Creates an instance of RestorableGremlinDatabaseProperties class.

Method Summary

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

Reads an instance of RestorableGremlinDatabaseProperties from the JsonReader.

RestorableGremlinDatabasePropertiesResource resource()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RestorableGremlinDatabaseProperties withResource(RestorableGremlinDatabasePropertiesResource resource)

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

Methods inherited from java.lang.Object

Constructor Details

RestorableGremlinDatabaseProperties

public RestorableGremlinDatabaseProperties()

Creates an instance of RestorableGremlinDatabaseProperties class.

Method Details

fromJson

public static RestorableGremlinDatabaseProperties fromJson(JsonReader jsonReader)

Reads an instance of RestorableGremlinDatabaseProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resource

public RestorableGremlinDatabasePropertiesResource resource()

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

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResource

public RestorableGremlinDatabaseProperties withResource(RestorableGremlinDatabasePropertiesResource resource)

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

Parameters:

resource - the resource value to set.

Returns:

the RestorableGremlinDatabaseProperties object itself.

Applies to