GremlinDatabaseRestoreResource Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.GremlinDatabaseRestoreResource

Implements

public final class GremlinDatabaseRestoreResource
implements JsonSerializable<GremlinDatabaseRestoreResource>

Specific Gremlin Databases to restore.

Constructor Summary

Constructor Description
GremlinDatabaseRestoreResource()

Creates an instance of GremlinDatabaseRestoreResource class.

Method Summary

Modifier and Type Method and Description
String databaseName()

Get the databaseName property: The name of the gremlin database available for restore.

static GremlinDatabaseRestoreResource fromJson(JsonReader jsonReader)

Reads an instance of GremlinDatabaseRestoreResource from the JsonReader.

List<String> graphNames()

Get the graphNames property: The names of the graphs available for restore.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GremlinDatabaseRestoreResource withDatabaseName(String databaseName)

Set the databaseName property: The name of the gremlin database available for restore.

GremlinDatabaseRestoreResource withGraphNames(List<String> graphNames)

Set the graphNames property: The names of the graphs available for restore.

Methods inherited from java.lang.Object

Constructor Details

GremlinDatabaseRestoreResource

public GremlinDatabaseRestoreResource()

Creates an instance of GremlinDatabaseRestoreResource class.

Method Details

databaseName

public String databaseName()

Get the databaseName property: The name of the gremlin database available for restore.

Returns:

the databaseName value.

fromJson

public static GremlinDatabaseRestoreResource fromJson(JsonReader jsonReader)

Reads an instance of GremlinDatabaseRestoreResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

graphNames

public List graphNames()

Get the graphNames property: The names of the graphs available for restore.

Returns:

the graphNames value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDatabaseName

public GremlinDatabaseRestoreResource withDatabaseName(String databaseName)

Set the databaseName property: The name of the gremlin database available for restore.

Parameters:

databaseName - the databaseName value to set.

Returns:

the GremlinDatabaseRestoreResource object itself.

withGraphNames

public GremlinDatabaseRestoreResource withGraphNames(List graphNames)

Set the graphNames property: The names of the graphs available for restore.

Parameters:

graphNames - the graphNames value to set.

Returns:

the GremlinDatabaseRestoreResource object itself.

Applies to