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>
The JobResourceConfiguration model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of JobResourceConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dockerArgs property: Extra arguments to pass to the Docker run command.static JobResourceConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of JobResourceConfiguration from the JsonReader.shmSize()Get the shmSize property: Size of the docker container's shared memory block.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDockerArgs(String dockerArgs) Set the dockerArgs property: Extra arguments to pass to the Docker run command.withInstanceCount(Integer instanceCount) Set the instanceCount property: Optional number of instances or nodes used by the compute target.withInstanceType(String instanceType) Set the instanceType property: Optional type of VM used as supported by the compute target.withProperties(Map<String, Object> properties) Set the properties property: Additional properties bag.withShmSize(String shmSize) Set the shmSize property: Size of the docker container's shared memory block.Methods inherited from class com.azure.resourcemanager.machinelearning.models.ResourceConfiguration
instanceCount, instanceType, propertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
JobResourceConfiguration
public JobResourceConfiguration()Creates an instance of JobResourceConfiguration class.
-
-
Method Details
-
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
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
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
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
Set the instanceCount property: Optional number of instances or nodes used by the compute target.- Overrides:
withInstanceCountin classResourceConfiguration- Parameters:
instanceCount- the instanceCount value to set.- Returns:
- the ResourceConfiguration object itself.
-
withInstanceType
Set the instanceType property: Optional type of VM used as supported by the compute target.- Overrides:
withInstanceTypein classResourceConfiguration- Parameters:
instanceType- the instanceType value to set.- Returns:
- the ResourceConfiguration object itself.
-
withProperties
Set the properties property: Additional properties bag.- Overrides:
withPropertiesin classResourceConfiguration- Parameters:
properties- the properties value to set.- Returns:
- the ResourceConfiguration object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classResourceConfiguration- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceConfiguration>- Overrides:
toJsonin classResourceConfiguration- 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.
-