Partager via


DatabaseRestoreResource Class

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

Implements

public final class DatabaseRestoreResource
implements JsonSerializable<DatabaseRestoreResource>

Specific Databases to restore.

Constructor Summary

Constructor Description
DatabaseRestoreResource()

Creates an instance of DatabaseRestoreResource class.

Method Summary

Modifier and Type Method and Description
List<String> collectionNames()

Get the collectionNames property: The names of the collections available for restore.

String databaseName()

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

static DatabaseRestoreResource fromJson(JsonReader jsonReader)

Reads an instance of DatabaseRestoreResource from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DatabaseRestoreResource withCollectionNames(List<String> collectionNames)

Set the collectionNames property: The names of the collections available for restore.

DatabaseRestoreResource withDatabaseName(String databaseName)

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

Methods inherited from java.lang.Object

Constructor Details

DatabaseRestoreResource

public DatabaseRestoreResource()

Creates an instance of DatabaseRestoreResource class.

Method Details

collectionNames

public List collectionNames()

Get the collectionNames property: The names of the collections available for restore.

Returns:

the collectionNames value.

databaseName

public String databaseName()

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

Returns:

the databaseName value.

fromJson

public static DatabaseRestoreResource fromJson(JsonReader jsonReader)

Reads an instance of DatabaseRestoreResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCollectionNames

public DatabaseRestoreResource withCollectionNames(List collectionNames)

Set the collectionNames property: The names of the collections available for restore.

Parameters:

collectionNames - the collectionNames value to set.

Returns:

the DatabaseRestoreResource object itself.

withDatabaseName

public DatabaseRestoreResource withDatabaseName(String databaseName)

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

Parameters:

databaseName - the databaseName value to set.

Returns:

the DatabaseRestoreResource object itself.

Applies to