Class JobLimits
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.JobLimits
-
- Direct Known Subclasses:
CommandJobLimits
,SweepJobLimits
public class JobLimits extends Object
The JobLimits model.
-
-
Constructor Summary
Constructors Constructor Description JobLimits()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Duration
timeout()
Get the timeout property: The max run duration in ISO 8601 format, after which the job will be cancelled.void
validate()
Validates the instance.JobLimits
withTimeout(Duration timeout)
Set the timeout property: The max run duration in ISO 8601 format, after which the job will be cancelled.
-
-
-
Method Detail
-
timeout
public Duration timeout()
Get 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.- Returns:
- the timeout value.
-
withTimeout
public JobLimits 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.- Parameters:
timeout
- the timeout value to set.- Returns:
- the JobLimits object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-