Class BatchRetrySettings

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

public final class BatchRetrySettings extends Object implements com.azure.json.JsonSerializable<BatchRetrySettings>
Retry settings for a batch inference operation.
  • Constructor Details

    • BatchRetrySettings

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

    • maxRetries

      public Integer maxRetries()
      Get the maxRetries property: Maximum retry count for a mini-batch.
      Returns:
      the maxRetries value.
    • withMaxRetries

      public BatchRetrySettings withMaxRetries(Integer maxRetries)
      Set the maxRetries property: Maximum retry count for a mini-batch.
      Parameters:
      maxRetries - the maxRetries value to set.
      Returns:
      the BatchRetrySettings object itself.
    • timeout

      public Duration timeout()
      Get the timeout property: Invocation timeout for a mini-batch, in ISO 8601 format.
      Returns:
      the timeout value.
    • withTimeout

      public BatchRetrySettings withTimeout(Duration timeout)
      Set the timeout property: Invocation timeout for a mini-batch, in ISO 8601 format.
      Parameters:
      timeout - the timeout value to set.
      Returns:
      the BatchRetrySettings 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<BatchRetrySettings>
      Throws:
      IOException
    • fromJson

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