SqlDatabaseResource Class

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

public class SqlDatabaseResource

Cosmos DB SQL database resource object.

Constructor Summary

Constructor Description
SqlDatabaseResource()

Creates an instance of SqlDatabaseResource class.

Method Summary

Modifier and Type Method and Description
CreateMode createMode()

Get the createMode property: Enum to indicate the mode of resource creation.

String id()

Get the id property: Name of the Cosmos DB SQL database.

ResourceRestoreParameters restoreParameters()

Get the restoreParameters property: Parameters to indicate the information about the restore.

void validate()

Validates the instance.

SqlDatabaseResource withCreateMode(CreateMode createMode)

Set the createMode property: Enum to indicate the mode of resource creation.

SqlDatabaseResource withId(String id)

Set the id property: Name of the Cosmos DB SQL database.

SqlDatabaseResource withRestoreParameters(ResourceRestoreParameters restoreParameters)

Set the restoreParameters property: Parameters to indicate the information about 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:

the createMode value.

id

public String id()

Get the id property: Name of the Cosmos DB SQL database.

Returns:

the id value.

restoreParameters

public ResourceRestoreParameters restoreParameters()

Get the restoreParameters property: Parameters to indicate the information about the restore.

Returns:

the restoreParameters value.

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:

createMode - the createMode value to set.

Returns:

the SqlDatabaseResource object itself.

withId

public SqlDatabaseResource withId(String id)

Set the id property: Name of the Cosmos DB SQL database.

Parameters:

id - the id value to set.

Returns:

the SqlDatabaseResource object itself.

withRestoreParameters

public SqlDatabaseResource withRestoreParameters(ResourceRestoreParameters restoreParameters)

Set the restoreParameters property: Parameters to indicate the information about the restore.

Parameters:

restoreParameters - the restoreParameters value to set.

Returns:

the SqlDatabaseResource object itself.

Applies to