Class DatabaseProfile
java.lang.Object
com.azure.resourcemanager.workloads.models.DatabaseProfile
Workload database profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the backupRetentionDays property: Backup retention days for the server.Get the haEnabled property: Whether to enable HA for the server.Get the serverName property: Database server name.Get the serverResourceId property: Azure Database Server resource Id.sku()
Get the sku property: The name of the server SKU, e.g.Get the sslEnforcementEnabled property: Whether to enable SSL enforcement on the database.Get the storageInGB property: Database storage size in GB.Get the storageIops property: Storage IOPS for the server.Get the storageSku property: SKU name for database storage.tier()
Get the tier property: Tier of the server SKU.type()
Get the type property: Database type.void
validate()
Validates the instance.version()
Get the version property: Database version.withBackupRetentionDays
(Integer backupRetentionDays) Set the backupRetentionDays property: Backup retention days for the server.withHaEnabled
(HAEnabled haEnabled) Set the haEnabled property: Whether to enable HA for the server.withServerName
(String serverName) Set the serverName property: Database server name.Set the sku property: The name of the server SKU, e.g.withSslEnforcementEnabled
(EnableSslEnforcement sslEnforcementEnabled) Set the sslEnforcementEnabled property: Whether to enable SSL enforcement on the database.withStorageInGB
(Long storageInGB) Set the storageInGB property: Database storage size in GB.withStorageIops
(Long storageIops) Set the storageIops property: Storage IOPS for the server.withStorageSku
(String storageSku) Set the storageSku property: SKU name for database storage.withTier
(DatabaseTier tier) Set the tier property: Tier of the server SKU.withType
(DatabaseType type) Set the type property: Database type.withVersion
(String version) Set the version property: Database version.
-
Constructor Details
-
DatabaseProfile
public DatabaseProfile()
-
-
Method Details
-
type
Get the type property: Database type.- Returns:
- the type value.
-
withType
Set the type property: Database type.- Parameters:
type
- the type value to set.- Returns:
- the DatabaseProfile object itself.
-
serverName
Get the serverName property: Database server name.- Returns:
- the serverName value.
-
withServerName
Set the serverName property: Database server name.- Parameters:
serverName
- the serverName value to set.- Returns:
- the DatabaseProfile object itself.
-
version
Get the version property: Database version.- Returns:
- the version value.
-
withVersion
Set the version property: Database version.- Parameters:
version
- the version value to set.- Returns:
- the DatabaseProfile object itself.
-
sku
Get the sku property: The name of the server SKU, e.g. Standard_D32s_v4.- Returns:
- the sku value.
-
withSku
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
Get the tier property: Tier of the server SKU.- Returns:
- the tier value.
-
withTier
Set the tier property: Tier of the server SKU.- Parameters:
tier
- the tier value to set.- Returns:
- the DatabaseProfile object itself.
-
haEnabled
Get the haEnabled property: Whether to enable HA for the server.- Returns:
- the haEnabled value.
-
withHaEnabled
Set the haEnabled property: Whether to enable HA for the server.- Parameters:
haEnabled
- the haEnabled value to set.- Returns:
- the DatabaseProfile object itself.
-
storageSku
Get the storageSku property: SKU name for database storage.- Returns:
- the storageSku value.
-
withStorageSku
Set the storageSku property: SKU name for database storage.- Parameters:
storageSku
- the storageSku value to set.- Returns:
- the DatabaseProfile object itself.
-
storageInGB
Get the storageInGB property: Database storage size in GB.- Returns:
- the storageInGB value.
-
withStorageInGB
Set the storageInGB property: Database storage size in GB.- Parameters:
storageInGB
- the storageInGB value to set.- Returns:
- the DatabaseProfile object itself.
-
storageIops
Get the storageIops property: Storage IOPS for the server.- Returns:
- the storageIops value.
-
withStorageIops
Set the storageIops property: Storage IOPS for the server.- Parameters:
storageIops
- the storageIops value to set.- Returns:
- the DatabaseProfile object itself.
-
backupRetentionDays
Get the backupRetentionDays property: Backup retention days for the server.- Returns:
- the backupRetentionDays value.
-
withBackupRetentionDays
Set the backupRetentionDays property: Backup retention days for the server.- Parameters:
backupRetentionDays
- the backupRetentionDays value to set.- Returns:
- the DatabaseProfile object itself.
-
sslEnforcementEnabled
Get the sslEnforcementEnabled property: Whether to enable SSL enforcement on the database.- Returns:
- the sslEnforcementEnabled value.
-
withSslEnforcementEnabled
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
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.
-