Class JobResourceConfiguration

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

public final class JobResourceConfiguration extends ResourceConfiguration
The JobResourceConfiguration model.
  • Constructor Details

    • JobResourceConfiguration

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

    • shmSize

      public String shmSize()
      Get the shmSize property: Size of the docker container's shared memory block. This should be in the format of (number)(unit) where number as to be greater than 0 and the unit can be one of b(bytes), k(kilobytes), m(megabytes), or g(gigabytes).
      Returns:
      the shmSize value.
    • withShmSize

      public JobResourceConfiguration withShmSize(String shmSize)
      Set the shmSize property: Size of the docker container's shared memory block. This should be in the format of (number)(unit) where number as to be greater than 0 and the unit can be one of b(bytes), k(kilobytes), m(megabytes), or g(gigabytes).
      Parameters:
      shmSize - the shmSize value to set.
      Returns:
      the JobResourceConfiguration object itself.
    • dockerArgs

      public String dockerArgs()
      Get the dockerArgs property: Extra arguments to pass to the Docker run command. This would override any parameters that have already been set by the system, or in this section. This parameter is only supported for Azure ML compute types.
      Returns:
      the dockerArgs value.
    • withDockerArgs

      public JobResourceConfiguration withDockerArgs(String dockerArgs)
      Set the dockerArgs property: Extra arguments to pass to the Docker run command. This would override any parameters that have already been set by the system, or in this section. This parameter is only supported for Azure ML compute types.
      Parameters:
      dockerArgs - the dockerArgs value to set.
      Returns:
      the JobResourceConfiguration object itself.
    • withInstanceCount

      public JobResourceConfiguration withInstanceCount(Integer instanceCount)
      Set the instanceCount property: Optional number of instances or nodes used by the compute target.
      Overrides:
      withInstanceCount in class ResourceConfiguration
      Parameters:
      instanceCount - the instanceCount value to set.
      Returns:
      the ResourceConfiguration object itself.
    • withInstanceType

      public JobResourceConfiguration withInstanceType(String instanceType)
      Set the instanceType property: Optional type of VM used as supported by the compute target.
      Overrides:
      withInstanceType in class ResourceConfiguration
      Parameters:
      instanceType - the instanceType value to set.
      Returns:
      the ResourceConfiguration object itself.
    • withProperties

      public JobResourceConfiguration withProperties(Map<String,Object> properties)
      Set the properties property: Additional properties bag.
      Overrides:
      withProperties in class ResourceConfiguration
      Parameters:
      properties - the properties value to set.
      Returns:
      the ResourceConfiguration object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ResourceConfiguration
      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<ResourceConfiguration>
      Overrides:
      toJson in class ResourceConfiguration
      Throws:
      IOException
    • fromJson

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