SqlDatabaseResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. SqlDatabaseResource
- com.
public class SqlDatabaseResource
Cosmos DB SQL database resource object.
Constructor Summary
Constructor | Description |
---|---|
SqlDatabaseResource() |
Creates an instance of Sql |
Method Summary
Modifier and Type | Method and Description |
---|---|
Create |
createMode()
Get the create |
String |
id()
Get the id property: Name of the Cosmos DB SQL database. |
Resource |
restoreParameters()
Get the restore |
void |
validate()
Validates the instance. |
Sql |
withCreateMode(CreateMode createMode)
Set the create |
Sql |
withId(String id)
Set the id property: Name of the Cosmos DB SQL database. |
Sql |
withRestoreParameters(ResourceRestoreParameters restoreParameters)
Set the restore |
Methods inherited from java.lang.Object
Constructor Details
SqlDatabaseResource
public SqlDatabaseResource()
Creates an instance of SqlDatabaseResource class.
Method Details
createMode
public CreateMode createMode()
Get the createMode property: Enum to indicate the mode of resource creation.
Returns:
id
public String id()
Get the id property: Name of the Cosmos DB SQL database.
Returns:
restoreParameters
public ResourceRestoreParameters restoreParameters()
Get the restoreParameters property: Parameters to indicate the information about the restore.
Returns:
validate
public void validate()
Validates the instance.
withCreateMode
public SqlDatabaseResource withCreateMode(CreateMode createMode)
Set the createMode property: Enum to indicate the mode of resource creation.
Parameters:
Returns:
withId
public SqlDatabaseResource withId(String id)
Set the id property: Name of the Cosmos DB SQL database.
Parameters:
Returns:
withRestoreParameters
public SqlDatabaseResource withRestoreParameters(ResourceRestoreParameters restoreParameters)
Set the restoreParameters property: Parameters to indicate the information about the restore.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for