Class StorageEditionCapability

java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.CapabilityBase
com.azure.resourcemanager.postgresqlflexibleserver.models.StorageEditionCapability
All Implemented Interfaces:
com.azure.json.JsonSerializable<CapabilityBase>

public final class StorageEditionCapability extends CapabilityBase
Capabilities in terms of storage tier.
  • Constructor Details

    • StorageEditionCapability

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

    • name

      public String name()
      Get the name property: Name of storage tier.
      Returns:
      the name value.
    • defaultStorageSizeMb

      public Long defaultStorageSizeMb()
      Get the defaultStorageSizeMb property: Default storage size (in MB) for this storage tier.
      Returns:
      the defaultStorageSizeMb value.
    • supportedStorageMb

      public List<StorageMbCapability> supportedStorageMb()
      Get the supportedStorageMb property: Configurations of storage supported for this storage tier.
      Returns:
      the supportedStorageMb value.
    • reason

      public String reason()
      Get the reason property: The reason for the capability not being available.
      Overrides:
      reason in class CapabilityBase
      Returns:
      the reason value.
    • status

      public CapabilityStatus status()
      Get the status property: The status of the capability.
      Overrides:
      status in class CapabilityBase
      Returns:
      the status value.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class CapabilityBase
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<CapabilityBase>
      Overrides:
      toJson in class CapabilityBase
      Throws:
      IOException
    • fromJson

      public static StorageEditionCapability fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of StorageEditionCapability from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of StorageEditionCapability if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the StorageEditionCapability.