Class HttpErrorRangeParameters

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

public final class HttpErrorRangeParameters extends Object implements com.azure.json.JsonSerializable<HttpErrorRangeParameters>
The JSON object that represents the range for http status codes.
  • Constructor Details

    • HttpErrorRangeParameters

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

    • begin

      public Integer begin()
      Get the begin property: The inclusive start of the http status code range.
      Returns:
      the begin value.
    • withBegin

      public HttpErrorRangeParameters withBegin(Integer begin)
      Set the begin property: The inclusive start of the http status code range.
      Parameters:
      begin - the begin value to set.
      Returns:
      the HttpErrorRangeParameters object itself.
    • end

      public Integer end()
      Get the end property: The inclusive end of the http status code range.
      Returns:
      the end value.
    • withEnd

      public HttpErrorRangeParameters withEnd(Integer end)
      Set the end property: The inclusive end of the http status code range.
      Parameters:
      end - the end value to set.
      Returns:
      the HttpErrorRangeParameters 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<HttpErrorRangeParameters>
      Throws:
      IOException
    • fromJson

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