java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.Storage

public final class Storage extends Object
Storage properties of a server.
  • Constructor Details

    • Storage

      public Storage()
      Creates an instance of Storage class.
  • Method Details

    • storageSizeGB

      public Integer storageSizeGB()
      Get the storageSizeGB property: Max storage allowed for a server.
      Returns:
      the storageSizeGB value.
    • withStorageSizeGB

      public Storage withStorageSizeGB(Integer storageSizeGB)
      Set the storageSizeGB property: Max storage allowed for a server.
      Parameters:
      storageSizeGB - the storageSizeGB value to set.
      Returns:
      the Storage object itself.
    • autoGrow

      public StorageAutoGrow autoGrow()
      Get the autoGrow property: Flag to enable / disable Storage Auto grow for flexible server.
      Returns:
      the autoGrow value.
    • withAutoGrow

      public Storage withAutoGrow(StorageAutoGrow autoGrow)
      Set the autoGrow property: Flag to enable / disable Storage Auto grow for flexible server.
      Parameters:
      autoGrow - the autoGrow value to set.
      Returns:
      the Storage object itself.
    • tier

      Get the tier property: Name of storage tier for IOPS.
      Returns:
      the tier value.
    • withTier

      public Storage withTier(AzureManagedDiskPerformanceTiers tier)
      Set the tier property: Name of storage tier for IOPS.
      Parameters:
      tier - the tier value to set.
      Returns:
      the Storage object itself.
    • iops

      public Integer iops()
      Get the iops property: Storage tier IOPS quantity.
      Returns:
      the iops value.
    • validate

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