Class DatabaseProfile

java.lang.Object
com.azure.resourcemanager.workloads.models.DatabaseProfile

public final class DatabaseProfile extends Object
Workload database profile.
  • Constructor Details

    • DatabaseProfile

      public DatabaseProfile()
  • Method Details

    • type

      public DatabaseType type()
      Get the type property: Database type.
      Returns:
      the type value.
    • withType

      public DatabaseProfile withType(DatabaseType type)
      Set the type property: Database type.
      Parameters:
      type - the type value to set.
      Returns:
      the DatabaseProfile object itself.
    • serverName

      public String serverName()
      Get the serverName property: Database server name.
      Returns:
      the serverName value.
    • withServerName

      public DatabaseProfile withServerName(String serverName)
      Set the serverName property: Database server name.
      Parameters:
      serverName - the serverName value to set.
      Returns:
      the DatabaseProfile object itself.
    • version

      public String version()
      Get the version property: Database version.
      Returns:
      the version value.
    • withVersion

      public DatabaseProfile withVersion(String version)
      Set the version property: Database version.
      Parameters:
      version - the version value to set.
      Returns:
      the DatabaseProfile object itself.
    • sku

      public String sku()
      Get the sku property: The name of the server SKU, e.g. Standard_D32s_v4.
      Returns:
      the sku value.
    • withSku

      public DatabaseProfile withSku(String sku)
      Set the sku property: The name of the server SKU, e.g. Standard_D32s_v4.
      Parameters:
      sku - the sku value to set.
      Returns:
      the DatabaseProfile object itself.
    • tier

      public DatabaseTier tier()
      Get the tier property: Tier of the server SKU.
      Returns:
      the tier value.
    • withTier

      public DatabaseProfile withTier(DatabaseTier tier)
      Set the tier property: Tier of the server SKU.
      Parameters:
      tier - the tier value to set.
      Returns:
      the DatabaseProfile object itself.
    • haEnabled

      public HAEnabled haEnabled()
      Get the haEnabled property: Whether to enable HA for the server.
      Returns:
      the haEnabled value.
    • withHaEnabled

      public DatabaseProfile withHaEnabled(HAEnabled haEnabled)
      Set the haEnabled property: Whether to enable HA for the server.
      Parameters:
      haEnabled - the haEnabled value to set.
      Returns:
      the DatabaseProfile object itself.
    • storageSku

      public String storageSku()
      Get the storageSku property: SKU name for database storage.
      Returns:
      the storageSku value.
    • withStorageSku

      public DatabaseProfile withStorageSku(String storageSku)
      Set the storageSku property: SKU name for database storage.
      Parameters:
      storageSku - the storageSku value to set.
      Returns:
      the DatabaseProfile object itself.
    • storageInGB

      public Long storageInGB()
      Get the storageInGB property: Database storage size in GB.
      Returns:
      the storageInGB value.
    • withStorageInGB

      public DatabaseProfile withStorageInGB(Long storageInGB)
      Set the storageInGB property: Database storage size in GB.
      Parameters:
      storageInGB - the storageInGB value to set.
      Returns:
      the DatabaseProfile object itself.
    • storageIops

      public Long storageIops()
      Get the storageIops property: Storage IOPS for the server.
      Returns:
      the storageIops value.
    • withStorageIops

      public DatabaseProfile withStorageIops(Long storageIops)
      Set the storageIops property: Storage IOPS for the server.
      Parameters:
      storageIops - the storageIops value to set.
      Returns:
      the DatabaseProfile object itself.
    • backupRetentionDays

      public Integer backupRetentionDays()
      Get the backupRetentionDays property: Backup retention days for the server.
      Returns:
      the backupRetentionDays value.
    • withBackupRetentionDays

      public DatabaseProfile withBackupRetentionDays(Integer backupRetentionDays)
      Set the backupRetentionDays property: Backup retention days for the server.
      Parameters:
      backupRetentionDays - the backupRetentionDays value to set.
      Returns:
      the DatabaseProfile object itself.
    • sslEnforcementEnabled

      public EnableSslEnforcement sslEnforcementEnabled()
      Get the sslEnforcementEnabled property: Whether to enable SSL enforcement on the database.
      Returns:
      the sslEnforcementEnabled value.
    • withSslEnforcementEnabled

      public DatabaseProfile withSslEnforcementEnabled(EnableSslEnforcement sslEnforcementEnabled)
      Set the sslEnforcementEnabled property: Whether to enable SSL enforcement on the database.
      Parameters:
      sslEnforcementEnabled - the sslEnforcementEnabled value to set.
      Returns:
      the DatabaseProfile object itself.
    • serverResourceId

      public String serverResourceId()
      Get the serverResourceId property: Azure Database Server resource Id.
      Returns:
      the serverResourceId value.
    • validate

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