Class QosPortRange

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

public final class QosPortRange extends Object implements com.azure.json.JsonSerializable<QosPortRange>
Qos Traffic Profiler Port range properties.
  • Constructor Details

    • QosPortRange

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

    • start

      public Integer start()
      Get the start property: Qos Port Range start.
      Returns:
      the start value.
    • withStart

      public QosPortRange withStart(Integer start)
      Set the start property: Qos Port Range start.
      Parameters:
      start - the start value to set.
      Returns:
      the QosPortRange object itself.
    • end

      public Integer end()
      Get the end property: Qos Port Range end.
      Returns:
      the end value.
    • withEnd

      public QosPortRange withEnd(Integer end)
      Set the end property: Qos Port Range end.
      Parameters:
      end - the end value to set.
      Returns:
      the QosPortRange 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<QosPortRange>
      Throws:
      IOException
    • fromJson

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