java.lang.Object
com.azure.resourcemanager.machinelearning.models.ProbeSettings
All Implemented Interfaces:
com.azure.json.JsonSerializable<ProbeSettings>

public final class ProbeSettings extends Object implements com.azure.json.JsonSerializable<ProbeSettings>
Deployment container liveness/readiness probe configuration.
  • Constructor Details

    • ProbeSettings

      public ProbeSettings()
      Creates an instance of ProbeSettings class.
  • Method Details

    • failureThreshold

      public Integer failureThreshold()
      Get the failureThreshold property: The number of failures to allow before returning an unhealthy status.
      Returns:
      the failureThreshold value.
    • withFailureThreshold

      public ProbeSettings withFailureThreshold(Integer failureThreshold)
      Set the failureThreshold property: The number of failures to allow before returning an unhealthy status.
      Parameters:
      failureThreshold - the failureThreshold value to set.
      Returns:
      the ProbeSettings object itself.
    • successThreshold

      public Integer successThreshold()
      Get the successThreshold property: The number of successful probes before returning a healthy status.
      Returns:
      the successThreshold value.
    • withSuccessThreshold

      public ProbeSettings withSuccessThreshold(Integer successThreshold)
      Set the successThreshold property: The number of successful probes before returning a healthy status.
      Parameters:
      successThreshold - the successThreshold value to set.
      Returns:
      the ProbeSettings object itself.
    • timeout

      public Duration timeout()
      Get the timeout property: The probe timeout in ISO 8601 format.
      Returns:
      the timeout value.
    • withTimeout

      public ProbeSettings withTimeout(Duration timeout)
      Set the timeout property: The probe timeout in ISO 8601 format.
      Parameters:
      timeout - the timeout value to set.
      Returns:
      the ProbeSettings object itself.
    • period

      public Duration period()
      Get the period property: The length of time between probes in ISO 8601 format.
      Returns:
      the period value.
    • withPeriod

      public ProbeSettings withPeriod(Duration period)
      Set the period property: The length of time between probes in ISO 8601 format.
      Parameters:
      period - the period value to set.
      Returns:
      the ProbeSettings object itself.
    • initialDelay

      public Duration initialDelay()
      Get the initialDelay property: The delay before the first probe in ISO 8601 format.
      Returns:
      the initialDelay value.
    • withInitialDelay

      public ProbeSettings withInitialDelay(Duration initialDelay)
      Set the initialDelay property: The delay before the first probe in ISO 8601 format.
      Parameters:
      initialDelay - the initialDelay value to set.
      Returns:
      the ProbeSettings 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<ProbeSettings>
      Throws:
      IOException
    • fromJson

      public static ProbeSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ProbeSettings from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ProbeSettings 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 ProbeSettings.