DatabaseBackupSetting Class

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

Implements

public final class DatabaseBackupSetting
implements JsonSerializable<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.

static DatabaseBackupSetting fromJson(JsonReader jsonReader)

Reads an instance of DatabaseBackupSetting from the JsonReader.

String name()

Get the name property: The name property.

JsonWriter toJson(JsonWriter jsonWriter)
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.

fromJson

public static DatabaseBackupSetting fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The name property.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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