DatabaseBackupSetting Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. DatabaseBackupSetting
- com.
Implements
public final class DatabaseBackupSetting
implements JsonSerializable<DatabaseBackupSetting>
Database backup settings.
Constructor Summary
Constructor | Description |
---|---|
DatabaseBackupSetting() |
Creates an instance of Database |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
connectionString()
Get the connection |
String |
connectionStringName()
Get the connection |
Database |
databaseType()
Get the database |
static
Database |
fromJson(JsonReader jsonReader)
Reads an instance of Database |
String |
name()
Get the name property: The name property. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Database |
withConnectionString(String connectionString)
Set the connection |
Database |
withConnectionStringName(String connectionStringName)
Set the connection |
Database |
withDatabaseType(DatabaseType databaseType)
Set the database |
Database |
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:
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:
databaseType
public DatabaseType databaseType()
Get the databaseType property: Database type (e.g. SqlAzure / MySql).
Returns:
fromJson
public static DatabaseBackupSetting fromJson(JsonReader jsonReader)
Reads an instance of DatabaseBackupSetting from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name property.
Returns:
toJson
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:
Returns:
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:
Returns:
withDatabaseType
public DatabaseBackupSetting withDatabaseType(DatabaseType databaseType)
Set the databaseType property: Database type (e.g. SqlAzure / MySql).
Parameters:
Returns:
withName
public DatabaseBackupSetting withName(String name)
Set the name property: The name property.
Parameters:
Returns:
Applies to
Azure SDK for Java