MonitorConfigExpectedStatusCodeRangesItem Class
- java.
lang. Object - com.
azure. resourcemanager. trafficmanager. models. MonitorConfigExpectedStatusCodeRangesItem
- com.
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 Monitor |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Monitor |
fromJson(JsonReader jsonReader)
Reads an instance of Monitor |
Integer |
max()
Get the max property: Max status code. |
Integer |
min()
Get the min property: Min status code. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Monitor |
withMax(Integer max)
Set the max property: Max status code. |
Monitor |
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:
Returns:
Throws:
max
public Integer max()
Get the max property: Max status code.
Returns:
min
public Integer min()
Get the min property: Min status code.
Returns:
toJson
validate
public void validate()
Validates the instance.
withMax
public MonitorConfigExpectedStatusCodeRangesItem withMax(Integer max)
Set the max property: Max status code.
Parameters:
Returns:
withMin
public MonitorConfigExpectedStatusCodeRangesItem withMin(Integer min)
Set the min property: Min status code.
Parameters:
Returns:
Applies to
Azure SDK for Java