Class StorageProfile
- java.lang.Object
-
- com.azure.resourcemanager.mysql.models.StorageProfile
-
public final class StorageProfile extends Object
Storage Profile properties of a server.
-
-
Constructor Summary
Constructors Constructor Description StorageProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerbackupRetentionDays()Get the backupRetentionDays property: Backup retention days for the server.GeoRedundantBackupgeoRedundantBackup()Get the geoRedundantBackup property: Enable Geo-redundant or not for server backup.StorageAutogrowstorageAutogrow()Get the storageAutogrow property: Enable Storage Auto Grow.IntegerstorageMB()Get the storageMB property: Max storage allowed for a server.voidvalidate()Validates the instance.StorageProfilewithBackupRetentionDays(Integer backupRetentionDays)Set the backupRetentionDays property: Backup retention days for the server.StorageProfilewithGeoRedundantBackup(GeoRedundantBackup geoRedundantBackup)Set the geoRedundantBackup property: Enable Geo-redundant or not for server backup.StorageProfilewithStorageAutogrow(StorageAutogrow storageAutogrow)Set the storageAutogrow property: Enable Storage Auto Grow.StorageProfilewithStorageMB(Integer storageMB)Set the storageMB property: Max storage allowed for a server.
-
-
-
Method Detail
-
backupRetentionDays
public Integer backupRetentionDays()
Get the backupRetentionDays property: Backup retention days for the server.- Returns:
- the backupRetentionDays value.
-
withBackupRetentionDays
public StorageProfile withBackupRetentionDays(Integer backupRetentionDays)
Set the backupRetentionDays property: Backup retention days for the server.- Parameters:
backupRetentionDays- the backupRetentionDays value to set.- Returns:
- the StorageProfile object itself.
-
geoRedundantBackup
public GeoRedundantBackup geoRedundantBackup()
Get the geoRedundantBackup property: Enable Geo-redundant or not for server backup.- Returns:
- the geoRedundantBackup value.
-
withGeoRedundantBackup
public StorageProfile withGeoRedundantBackup(GeoRedundantBackup geoRedundantBackup)
Set the geoRedundantBackup property: Enable Geo-redundant or not for server backup.- Parameters:
geoRedundantBackup- the geoRedundantBackup value to set.- Returns:
- the StorageProfile object itself.
-
storageMB
public Integer storageMB()
Get the storageMB property: Max storage allowed for a server.- Returns:
- the storageMB value.
-
withStorageMB
public StorageProfile withStorageMB(Integer storageMB)
Set the storageMB property: Max storage allowed for a server.- Parameters:
storageMB- the storageMB value to set.- Returns:
- the StorageProfile object itself.
-
storageAutogrow
public StorageAutogrow storageAutogrow()
Get the storageAutogrow property: Enable Storage Auto Grow.- Returns:
- the storageAutogrow value.
-
withStorageAutogrow
public StorageProfile withStorageAutogrow(StorageAutogrow storageAutogrow)
Set the storageAutogrow property: Enable Storage Auto Grow.- Parameters:
storageAutogrow- the storageAutogrow value to set.- Returns:
- the StorageProfile object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-