Class ServerEditionCapability

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

public final class ServerEditionCapability extends CapabilityBase
Capabilities in terms of compute tier.
  • Constructor Details

    • ServerEditionCapability

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

    • name

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

      public String defaultSkuName()
      Get the defaultSkuName property: Default compute name (SKU) for this computer tier.
      Returns:
      the defaultSkuName value.
    • supportedStorageEditions

      public List<StorageEditionCapability> supportedStorageEditions()
      Get the supportedStorageEditions property: List of storage editions supported by this compute tier and compute name.
      Returns:
      the supportedStorageEditions value.
    • supportedServerSkus

      public List<ServerSkuCapability> supportedServerSkus()
      Get the supportedServerSkus property: List of supported compute names (SKUs).
      Returns:
      the supportedServerSkus 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 ServerEditionCapability fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ServerEditionCapability from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ServerEditionCapability 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 ServerEditionCapability.