Class ServerSkuCapability

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

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

    • ServerSkuCapability

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

    • name

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

      public Integer vCores()
      Get the vCores property: vCores available for this compute.
      Returns:
      the vCores value.
    • supportedIops

      public Integer supportedIops()
      Get the supportedIops property: Maximum IOPS supported by this compute.
      Returns:
      the supportedIops value.
    • supportedMemoryPerVcoreMb

      public Long supportedMemoryPerVcoreMb()
      Get the supportedMemoryPerVcoreMb property: Supported memory (in MB) per virtual core assigned to this compute.
      Returns:
      the supportedMemoryPerVcoreMb value.
    • supportedZones

      public List<String> supportedZones()
      Get the supportedZones property: List of supported availability zones. E.g. '1', '2', '3'.
      Returns:
      the supportedZones value.
    • supportedHaMode

      public List<HighAvailabilityMode> supportedHaMode()
      Get the supportedHaMode property: Modes of high availability supported for this compute.
      Returns:
      the supportedHaMode value.
    • supportedFeatures

      public List<SupportedFeature> supportedFeatures()
      Get the supportedFeatures property: Features supported.
      Returns:
      the supportedFeatures value.
    • securityProfile

      public String securityProfile()
      Get the securityProfile property: Security profile of the compute. Indicates if it's a Confidential Compute virtual machine.
      Returns:
      the securityProfile 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 ServerSkuCapability fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ServerSkuCapability from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ServerSkuCapability 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 ServerSkuCapability.