Class StorageProfile


  • public final class StorageProfile
    extends Object
    Storage Profile properties of a server.
    • Constructor Detail

      • StorageProfile

        public StorageProfile()
    • 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.