HttpErrorRangeParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.HttpErrorRangeParameters

Implements

public final class HttpErrorRangeParameters
implements JsonSerializable<HttpErrorRangeParameters>

The JSON object that represents the range for http status codes.

Constructor Summary

Constructor Description
HttpErrorRangeParameters()

Creates an instance of HttpErrorRangeParameters class.

Method Summary

Modifier and Type Method and Description
Integer begin()

Get the begin property: The inclusive start of the http status code range.

Integer end()

Get the end property: The inclusive end of the http status code range.

static HttpErrorRangeParameters fromJson(JsonReader jsonReader)

Reads an instance of HttpErrorRangeParameters from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

HttpErrorRangeParameters withBegin(Integer begin)

Set the begin property: The inclusive start of the http status code range.

HttpErrorRangeParameters withEnd(Integer end)

Set the end property: The inclusive end of the http status code range.

Methods inherited from java.lang.Object

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.

end

public Integer end()

Get the end property: The inclusive end of the http status code range.

Returns:

the end value.

fromJson

public static HttpErrorRangeParameters fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to