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 Summary
ConstructorsConstructorDescriptionCreates an instance of HttpErrorRangeParameters class. -
Method Summary
Modifier and TypeMethodDescriptionbegin()Get the begin property: The inclusive start of the http status code range.end()Get the end property: The inclusive end of the http status code range.static HttpErrorRangeParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of HttpErrorRangeParameters from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the begin property: The inclusive start of the http status code range.Set the end property: The inclusive end of the http status code range.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
HttpErrorRangeParameters
public HttpErrorRangeParameters()Creates an instance of HttpErrorRangeParameters class.
-
-
Method Details
-
begin
Get the begin property: The inclusive start of the http status code range.- Returns:
- the begin value.
-
withBegin
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
Get the end property: The inclusive end of the http status code range.- Returns:
- the end value.
-
withEnd
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
- Specified by:
toJsonin interfacecom.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.
-