ConnectionMonitorSuccessThreshold Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ConnectionMonitorSuccessThreshold

Implements

public final class ConnectionMonitorSuccessThreshold
implements JsonSerializable<ConnectionMonitorSuccessThreshold>

Describes the threshold for declaring a test successful.

Constructor Summary

Constructor Description
ConnectionMonitorSuccessThreshold()

Creates an instance of ConnectionMonitorSuccessThreshold class.

Method Summary

Modifier and Type Method and Description
Integer checksFailedPercent()

Get the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as successful.

static ConnectionMonitorSuccessThreshold fromJson(JsonReader jsonReader)

Reads an instance of ConnectionMonitorSuccessThreshold from the JsonReader.

Float roundTripTimeMs()

Get the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConnectionMonitorSuccessThreshold withChecksFailedPercent(Integer checksFailedPercent)

Set the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as successful.

ConnectionMonitorSuccessThreshold withRoundTripTimeMs(Float roundTripTimeMs)

Set the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.

Methods inherited from java.lang.Object

Constructor Details

ConnectionMonitorSuccessThreshold

public ConnectionMonitorSuccessThreshold()

Creates an instance of ConnectionMonitorSuccessThreshold class.

Method Details

checksFailedPercent

public Integer checksFailedPercent()

Get the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as successful.

Returns:

the checksFailedPercent value.

fromJson

public static ConnectionMonitorSuccessThreshold fromJson(JsonReader jsonReader)

Reads an instance of ConnectionMonitorSuccessThreshold from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

roundTripTimeMs

public Float roundTripTimeMs()

Get the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.

Returns:

the roundTripTimeMs value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withChecksFailedPercent

public ConnectionMonitorSuccessThreshold withChecksFailedPercent(Integer checksFailedPercent)

Set the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as successful.

Parameters:

checksFailedPercent - the checksFailedPercent value to set.

Returns:

the ConnectionMonitorSuccessThreshold object itself.

withRoundTripTimeMs

public ConnectionMonitorSuccessThreshold withRoundTripTimeMs(Float roundTripTimeMs)

Set the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.

Parameters:

roundTripTimeMs - the roundTripTimeMs value to set.

Returns:

the ConnectionMonitorSuccessThreshold object itself.

Applies to