Class SqlDatabaseResource
java.lang.Object
com.azure.resourcemanager.cosmos.models.SqlDatabaseResource
- Direct Known Subclasses:
RestorableSqlDatabasePropertiesResourceDatabase,SqlDatabaseGetPropertiesResource
Cosmos DB SQL database resource object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the createMode property: Enum to indicate the mode of resource creation.id()Get the id property: Name of the Cosmos DB SQL database.Get the restoreParameters property: Parameters to indicate the information about the restore.voidvalidate()Validates the instance.withCreateMode(CreateMode createMode) Set the createMode property: Enum to indicate the mode of resource creation.Set the id property: Name of the Cosmos DB SQL database.withRestoreParameters(ResourceRestoreParameters restoreParameters) Set the restoreParameters property: Parameters to indicate the information about the restore.
-
Constructor Details
-
SqlDatabaseResource
public SqlDatabaseResource()Creates an instance of SqlDatabaseResource class.
-
-
Method Details
-
id
Get the id property: Name of the Cosmos DB SQL database.- Returns:
- the id value.
-
withId
Set the id property: Name of the Cosmos DB SQL database.- Parameters:
id- the id value to set.- Returns:
- the SqlDatabaseResource object itself.
-
restoreParameters
Get the restoreParameters property: Parameters to indicate the information about the restore.- Returns:
- the restoreParameters value.
-
withRestoreParameters
Set the restoreParameters property: Parameters to indicate the information about the restore.- Parameters:
restoreParameters- the restoreParameters value to set.- Returns:
- the SqlDatabaseResource object itself.
-
createMode
Get the createMode property: Enum to indicate the mode of resource creation.- Returns:
- the createMode value.
-
withCreateMode
Set the createMode property: Enum to indicate the mode of resource creation.- Parameters:
createMode- the createMode value to set.- Returns:
- the SqlDatabaseResource object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-