Class Availability

java.lang.Object
com.azure.resourcemanager.network.models.Availability
All Implemented Interfaces:
com.azure.json.JsonSerializable<Availability>

public final class Availability extends Object implements com.azure.json.JsonSerializable<Availability>
Availability of the metric.
  • Constructor Details

    • Availability

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

    • timeGrain

      public String timeGrain()
      Get the timeGrain property: The time grain of the availability.
      Returns:
      the timeGrain value.
    • withTimeGrain

      public Availability withTimeGrain(String timeGrain)
      Set the timeGrain property: The time grain of the availability.
      Parameters:
      timeGrain - the timeGrain value to set.
      Returns:
      the Availability object itself.
    • retention

      public String retention()
      Get the retention property: The retention of the availability.
      Returns:
      the retention value.
    • withRetention

      public Availability withRetention(String retention)
      Set the retention property: The retention of the availability.
      Parameters:
      retention - the retention value to set.
      Returns:
      the Availability object itself.
    • blobDuration

      public String blobDuration()
      Get the blobDuration property: Duration of the availability blob.
      Returns:
      the blobDuration value.
    • withBlobDuration

      public Availability withBlobDuration(String blobDuration)
      Set the blobDuration property: Duration of the availability blob.
      Parameters:
      blobDuration - the blobDuration value to set.
      Returns:
      the Availability object itself.
    • validate

      public void validate()
      Validates the instance.
      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<Availability>
      Throws:
      IOException
    • fromJson

      public static Availability fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Availability from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Availability 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 Availability.