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 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.
    • 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.