Class ConnectionMonitorSuccessThreshold
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ConnectionMonitorSuccessThreshold
-
public final class ConnectionMonitorSuccessThreshold extends Object
Describes the threshold for declaring a test successful.
-
-
Constructor Summary
Constructors Constructor Description ConnectionMonitorSuccessThreshold()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerchecksFailedPercent()Get the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as successful.FloatroundTripTimeMs()Get the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.voidvalidate()Validates the instance.ConnectionMonitorSuccessThresholdwithChecksFailedPercent(Integer checksFailedPercent)Set the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as successful.ConnectionMonitorSuccessThresholdwithRoundTripTimeMs(Float roundTripTimeMs)Set the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.
-
-
-
Method Detail
-
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.
-
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.
-
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.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-