Class CommandJobLimits
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.JobLimits
-
- com.azure.resourcemanager.machinelearning.models.CommandJobLimits
-
public final class CommandJobLimits extends JobLimits
Command Job limit class.
-
-
Constructor Summary
Constructors Constructor Description CommandJobLimits()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate()
Validates the instance.CommandJobLimits
withTimeout(Duration timeout)
Set the timeout property: The max run duration in ISO 8601 format, after which the job will be cancelled.
-
-
-
Method Detail
-
withTimeout
public CommandJobLimits withTimeout(Duration timeout)
Set the timeout property: The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds.- Overrides:
withTimeout
in classJobLimits
- Parameters:
timeout
- the timeout value to set.- Returns:
- the JobLimits object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classJobLimits
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-