Class DatabaseBackupSetting
java.lang.Object
com.azure.resourcemanager.appservice.models.DatabaseBackupSetting
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DatabaseBackupSetting>
public final class DatabaseBackupSetting
extends Object
implements com.azure.json.JsonSerializable<DatabaseBackupSetting>
Database backup settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionString property: Contains a connection string to a database which is being backed up or restored.Get the connectionStringName property: Contains a connection string name that is linked to the SiteConfig.ConnectionStrings.Get the databaseType property: Database type (e.g.static DatabaseBackupSetting
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DatabaseBackupSetting from the JsonReader.name()
Get the name property: The name property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withConnectionString
(String connectionString) Set the connectionString property: Contains a connection string to a database which is being backed up or restored.withConnectionStringName
(String connectionStringName) Set the connectionStringName property: Contains a connection string name that is linked to the SiteConfig.ConnectionStrings.withDatabaseType
(DatabaseType databaseType) Set the databaseType property: Database type (e.g.Set the name property: The name property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DatabaseBackupSetting
public DatabaseBackupSetting()Creates an instance of DatabaseBackupSetting class.
-
-
Method Details
-
databaseType
Get the databaseType property: Database type (e.g. SqlAzure / MySql).- Returns:
- the databaseType value.
-
withDatabaseType
Set the databaseType property: Database type (e.g. SqlAzure / MySql).- Parameters:
databaseType
- the databaseType value to set.- Returns:
- the DatabaseBackupSetting object itself.
-
name
Get the name property: The name property.- Returns:
- the name value.
-
withName
Set the name property: The name property.- Parameters:
name
- the name value to set.- Returns:
- the DatabaseBackupSetting object itself.
-
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.
-
withConnectionStringName
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.
-
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.
-
withConnectionString
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DatabaseBackupSetting>
- Throws:
IOException
-
fromJson
public static DatabaseBackupSetting fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DatabaseBackupSetting from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DatabaseBackupSetting if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the DatabaseBackupSetting.
-