StorageProfile Class
- java.
lang. Object - com.
azure. resourcemanager. postgresql. models. StorageProfile
- com.
Implements
public final class StorageProfile
implements JsonSerializable<StorageProfile>
Storage Profile properties of a server.
Constructor Summary
| Constructor | Description |
|---|---|
| StorageProfile() |
Creates an instance of Storage |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
backupRetentionDays()
Get the backup |
|
static
Storage |
fromJson(JsonReader jsonReader)
Reads an instance of Storage |
|
Geo |
geoRedundantBackup()
Get the geo |
|
Storage |
storageAutogrow()
Get the storage |
| Integer |
storageMB()
Get the storageMB property: Max storage allowed for a server. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Storage |
withBackupRetentionDays(Integer backupRetentionDays)
Set the backup |
|
Storage |
withGeoRedundantBackup(GeoRedundantBackup geoRedundantBackup)
Set the geo |
|
Storage |
withStorageAutogrow(StorageAutogrow storageAutogrow)
Set the storage |
|
Storage |
withStorageMB(Integer storageMB)
Set the storageMB property: Max storage allowed for a server. |
Methods inherited from java.lang.Object
Constructor Details
StorageProfile
public StorageProfile()
Creates an instance of StorageProfile class.
Method Details
backupRetentionDays
public Integer backupRetentionDays()
Get the backupRetentionDays property: Backup retention days for the server.
Returns:
fromJson
public static StorageProfile fromJson(JsonReader jsonReader)
Reads an instance of StorageProfile from the JsonReader.
Parameters:
Returns:
Throws:
geoRedundantBackup
public GeoRedundantBackup geoRedundantBackup()
Get the geoRedundantBackup property: Enable Geo-redundant or not for server backup.
Returns:
storageAutogrow
public StorageAutogrow storageAutogrow()
Get the storageAutogrow property: Enable Storage Auto Grow.
Returns:
storageMB
public Integer storageMB()
Get the storageMB property: Max storage allowed for a server.
Returns:
toJson
validate
public void validate()
Validates the instance.
withBackupRetentionDays
public StorageProfile withBackupRetentionDays(Integer backupRetentionDays)
Set the backupRetentionDays property: Backup retention days for the server.
Parameters:
Returns:
withGeoRedundantBackup
public StorageProfile withGeoRedundantBackup(GeoRedundantBackup geoRedundantBackup)
Set the geoRedundantBackup property: Enable Geo-redundant or not for server backup.
Parameters:
Returns:
withStorageAutogrow
public StorageProfile withStorageAutogrow(StorageAutogrow storageAutogrow)
Set the storageAutogrow property: Enable Storage Auto Grow.
Parameters:
Returns:
withStorageMB
public StorageProfile withStorageMB(Integer storageMB)
Set the storageMB property: Max storage allowed for a server.
Parameters:
Returns: