DatabaseRestoreResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. DatabaseRestoreResource
- com.
Implements
public final class DatabaseRestoreResource
implements JsonSerializable<DatabaseRestoreResource>
Specific Databases to restore.
Constructor Summary
Constructor | Description |
---|---|
DatabaseRestoreResource() |
Creates an instance of Database |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
collectionNames()
Get the collection |
String |
databaseName()
Get the database |
static
Database |
fromJson(JsonReader jsonReader)
Reads an instance of Database |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Database |
withCollectionNames(List<String> collectionNames)
Set the collection |
Database |
withDatabaseName(String databaseName)
Set the database |
Methods inherited from java.lang.Object
Constructor Details
DatabaseRestoreResource
public DatabaseRestoreResource()
Creates an instance of DatabaseRestoreResource class.
Method Details
collectionNames
public List
Get the collectionNames property: The names of the collections available for restore.
Returns:
databaseName
public String databaseName()
Get the databaseName property: The name of the database available for restore.
Returns:
fromJson
public static DatabaseRestoreResource fromJson(JsonReader jsonReader)
Reads an instance of DatabaseRestoreResource from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withCollectionNames
public DatabaseRestoreResource withCollectionNames(List
Set the collectionNames property: The names of the collections available for restore.
Parameters:
Returns:
withDatabaseName
public DatabaseRestoreResource withDatabaseName(String databaseName)
Set the databaseName property: The name of the database available for restore.
Parameters:
Returns:
Applies to
Azure SDK for Java