DatabaseBackupSetting Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.DatabaseBackupSetting

public final class DatabaseBackupSetting

Database backup settings.

Constructor Summary

Constructor Description
DatabaseBackupSetting()

Creates an instance of DatabaseBackupSetting class.

Method Summary

Modifier and Type Method and Description
String connectionString()

Get the connectionString property: Contains a connection string to a database which is being backed up or restored.

String connectionStringName()

Get the connectionStringName property: Contains a connection string name that is linked to the SiteConfig.ConnectionStrings.

DatabaseType databaseType()

Get the databaseType property: Database type (e.g.

String name()

Get the name property: The name property.

void validate()

Validates the instance.

DatabaseBackupSetting withConnectionString(String connectionString)

Set the connectionString property: Contains a connection string to a database which is being backed up or restored.

DatabaseBackupSetting withConnectionStringName(String connectionStringName)

Set the connectionStringName property: Contains a connection string name that is linked to the SiteConfig.ConnectionStrings.

DatabaseBackupSetting withDatabaseType(DatabaseType databaseType)

Set the databaseType property: Database type (e.g.

DatabaseBackupSetting withName(String name)

Set the name property: The name property.

Methods inherited from java.lang.Object

Constructor Details

DatabaseBackupSetting

public DatabaseBackupSetting()

Creates an instance of DatabaseBackupSetting class.

Method Details

connectionString

public String connectionString()

Get the connectionString property: Contains a connection string to a database which is being backed up or restored. If the restore should happen to a new database, the database name inside is the new one.

Returns:

the connectionString value.

connectionStringName

public String connectionStringName()

Get the connectionStringName property: Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options.

Returns:

the connectionStringName value.

databaseType

public DatabaseType databaseType()

Get the databaseType property: Database type (e.g. SqlAzure / MySql).

Returns:

the databaseType value.

name

public String name()

Get the name property: The name property.

Returns:

the name value.

validate

public void validate()

Validates the instance.

withConnectionString

public DatabaseBackupSetting withConnectionString(String connectionString)

Set the connectionString property: Contains a connection string to a database which is being backed up or restored. If the restore should happen to a new database, the database name inside is the new one.

Parameters:

connectionString - the connectionString value to set.

Returns:

the DatabaseBackupSetting object itself.

withConnectionStringName

public DatabaseBackupSetting withConnectionStringName(String connectionStringName)

Set the connectionStringName property: Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options.

Parameters:

connectionStringName - the connectionStringName value to set.

Returns:

the DatabaseBackupSetting object itself.

withDatabaseType

public DatabaseBackupSetting withDatabaseType(DatabaseType databaseType)

Set the databaseType property: Database type (e.g. SqlAzure / MySql).

Parameters:

databaseType - the databaseType value to set.

Returns:

the DatabaseBackupSetting object itself.

withName

public DatabaseBackupSetting withName(String name)

Set the name property: The name property.

Parameters:

name - the name value to set.

Returns:

the DatabaseBackupSetting object itself.

Applies to