Class StorageTierCapability

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

public final class StorageTierCapability extends CapabilityBase
Capability of a storage tier.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of StorageTierCapability class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of StorageTierCapability from the JsonReader.
    Get the iops property: Supported IOPS for the storage tier.
    Get the name property: Name of the storage tier.
    Get the reason property: The reason for the capability not being available.
    Get the status property: The status of the capability.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • StorageTierCapability

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

    • name

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

      public Integer iops()
      Get the iops property: Supported IOPS for the storage tier.
      Returns:
      the iops 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 StorageTierCapability fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of StorageTierCapability from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of StorageTierCapability 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 StorageTierCapability.