Class DatabaseBackupSetting
- java.lang.Object
-
- com.microsoft.azure.management.appservice.DatabaseBackupSetting
-
public class DatabaseBackupSetting extends Object
Database backup settings.
-
-
Constructor Summary
Constructors Constructor Description DatabaseBackupSetting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringconnectionString()Get contains a connection string to a database which is being backed up or restored.StringconnectionStringName()Get contains a connection string name that is linked to the SiteConfig.ConnectionStrings.DatabaseTypedatabaseType()Get database type (e.g.Stringname()Get the name value.DatabaseBackupSettingwithConnectionString(String connectionString)Set contains a connection string to a database which is being backed up or restored.DatabaseBackupSettingwithConnectionStringName(String connectionStringName)Set contains a connection string name that is linked to the SiteConfig.ConnectionStrings.DatabaseBackupSettingwithDatabaseType(DatabaseType databaseType)Set database type (e.g.DatabaseBackupSettingwithName(String name)Set the name value.
-
-
-
Method Detail
-
databaseType
public DatabaseType databaseType()
Get database type (e.g. SqlAzure / MySql). Possible values include: 'SqlAzure', 'MySql', 'LocalMySql', 'PostgreSql'.- Returns:
- the databaseType value
-
withDatabaseType
public DatabaseBackupSetting withDatabaseType(DatabaseType databaseType)
Set database type (e.g. SqlAzure / MySql). Possible values include: 'SqlAzure', 'MySql', 'LocalMySql', 'PostgreSql'.- Parameters:
databaseType- the databaseType value to set- Returns:
- the DatabaseBackupSetting object itself.
-
name
public String name()
Get the name value.- Returns:
- the name value
-
withName
public DatabaseBackupSetting withName(String name)
Set the name value.- Parameters:
name- the name value to set- Returns:
- the DatabaseBackupSetting object itself.
-
connectionStringName
public String connectionStringName()
Get 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
-
withConnectionStringName
public DatabaseBackupSetting withConnectionStringName(String connectionStringName)
Set 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.
-
connectionString
public String connectionString()
Get 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
-
withConnectionString
public DatabaseBackupSetting withConnectionString(String connectionString)
Set 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.
-
-