Class ServerVersionCapability

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

public final class ServerVersionCapability extends CapabilityBase
Capabilities in terms of major versions of PostgreSQL database engine.
  • Constructor Details

    • ServerVersionCapability

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

    • name

      public String name()
      Get the name property: Major version of PostgreSQL database engine.
      Returns:
      the name value.
    • supportedVersionsToUpgrade

      public List<String> supportedVersionsToUpgrade()
      Get the supportedVersionsToUpgrade property: Major versions of PostgreSQL database engine to which this version can be automatically upgraded.
      Returns:
      the supportedVersionsToUpgrade value.
    • supportedFeatures

      public List<SupportedFeature> supportedFeatures()
      Get the supportedFeatures property: Features supported.
      Returns:
      the supportedFeatures 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 ServerVersionCapability fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ServerVersionCapability from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ServerVersionCapability 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 ServerVersionCapability.