Class ConnectionMonitorSuccessThreshold
java.lang.Object
com.azure.resourcemanager.network.models.ConnectionMonitorSuccessThreshold
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionMonitorSuccessThreshold>
public final class ConnectionMonitorSuccessThreshold
extends Object
implements com.azure.json.JsonSerializable<ConnectionMonitorSuccessThreshold>
Describes the threshold for declaring a test successful.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectionMonitorSuccessThreshold class. -
Method Summary
Modifier and TypeMethodDescriptionGet the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as successful.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionMonitorSuccessThreshold from the JsonReader.Get the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withChecksFailedPercent(Integer checksFailedPercent) Set the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as successful.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ConnectionMonitorSuccessThreshold
public ConnectionMonitorSuccessThreshold()Creates an instance of ConnectionMonitorSuccessThreshold class.
-
-
Method Details
-
checksFailedPercent
Get the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as successful.- Returns:
- the checksFailedPercent value.
-
withChecksFailedPercent
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
Get the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate as successful.- Returns:
- the roundTripTimeMs value.
-
withRoundTripTimeMs
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ConnectionMonitorSuccessThreshold>- Throws:
IOException
-
fromJson
public static ConnectionMonitorSuccessThreshold fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-