MonitorConfigExpectedStatusCodeRangesItem Class

  • java.lang.Object
    • com.azure.resourcemanager.trafficmanager.models.MonitorConfigExpectedStatusCodeRangesItem

Implements

public final class MonitorConfigExpectedStatusCodeRangesItem
implements JsonSerializable<MonitorConfigExpectedStatusCodeRangesItem>

Min and max value of a status code range.

Constructor Summary

Constructor Description
MonitorConfigExpectedStatusCodeRangesItem()

Creates an instance of MonitorConfigExpectedStatusCodeRangesItem class.

Method Summary

Modifier and Type Method and Description
static MonitorConfigExpectedStatusCodeRangesItem fromJson(JsonReader jsonReader)

Reads an instance of MonitorConfigExpectedStatusCodeRangesItem from the JsonReader.

Integer max()

Get the max property: Max status code.

Integer min()

Get the min property: Min status code.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MonitorConfigExpectedStatusCodeRangesItem withMax(Integer max)

Set the max property: Max status code.

MonitorConfigExpectedStatusCodeRangesItem withMin(Integer min)

Set the min property: Min status code.

Methods inherited from java.lang.Object

Constructor Details

MonitorConfigExpectedStatusCodeRangesItem

public MonitorConfigExpectedStatusCodeRangesItem()

Creates an instance of MonitorConfigExpectedStatusCodeRangesItem class.

Method Details

fromJson

public static MonitorConfigExpectedStatusCodeRangesItem fromJson(JsonReader jsonReader)

Reads an instance of MonitorConfigExpectedStatusCodeRangesItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MonitorConfigExpectedStatusCodeRangesItem 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 MonitorConfigExpectedStatusCodeRangesItem.

max

public Integer max()

Get the max property: Max status code.

Returns:

the max value.

min

public Integer min()

Get the min property: Min status code.

Returns:

the min value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMax

public MonitorConfigExpectedStatusCodeRangesItem withMax(Integer max)

Set the max property: Max status code.

Parameters:

max - the max value to set.

Returns:

the MonitorConfigExpectedStatusCodeRangesItem object itself.

withMin

public MonitorConfigExpectedStatusCodeRangesItem withMin(Integer min)

Set the min property: Min status code.

Parameters:

min - the min value to set.

Returns:

the MonitorConfigExpectedStatusCodeRangesItem object itself.

Applies to