Class DatabaseBackupSetting

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

public final class DatabaseBackupSetting extends Object
Database backup settings.
  • Constructor Details

    • DatabaseBackupSetting

      public DatabaseBackupSetting()
  • Method Details

    • databaseType

      public DatabaseType databaseType()
      Get the databaseType property: Database type (e.g. SqlAzure / MySql).
      Returns:
      the databaseType value.
    • 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.
    • name

      public String name()
      Get the name property: The name property.
      Returns:
      the name value.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.