Class ImageLimitSettings

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

public final class ImageLimitSettings extends Object implements com.azure.json.JsonSerializable<ImageLimitSettings>
Limit settings for the AutoML job.
  • Constructor Details

    • ImageLimitSettings

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

    • maxTrials

      public Integer maxTrials()
      Get the maxTrials property: Maximum number of AutoML iterations.
      Returns:
      the maxTrials value.
    • withMaxTrials

      public ImageLimitSettings withMaxTrials(Integer maxTrials)
      Set the maxTrials property: Maximum number of AutoML iterations.
      Parameters:
      maxTrials - the maxTrials value to set.
      Returns:
      the ImageLimitSettings object itself.
    • timeout

      public Duration timeout()
      Get the timeout property: AutoML job timeout.
      Returns:
      the timeout value.
    • withTimeout

      public ImageLimitSettings withTimeout(Duration timeout)
      Set the timeout property: AutoML job timeout.
      Parameters:
      timeout - the timeout value to set.
      Returns:
      the ImageLimitSettings object itself.
    • maxConcurrentTrials

      public Integer maxConcurrentTrials()
      Get the maxConcurrentTrials property: Maximum number of concurrent AutoML iterations.
      Returns:
      the maxConcurrentTrials value.
    • withMaxConcurrentTrials

      public ImageLimitSettings withMaxConcurrentTrials(Integer maxConcurrentTrials)
      Set the maxConcurrentTrials property: Maximum number of concurrent AutoML iterations.
      Parameters:
      maxConcurrentTrials - the maxConcurrentTrials value to set.
      Returns:
      the ImageLimitSettings 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<ImageLimitSettings>
      Throws:
      IOException
    • fromJson

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