CommandJobLimits Class
- java.
lang. Object - com.
azure. resourcemanager. machinelearning. models. JobLimits - com.
azure. resourcemanager. machinelearning. models. CommandJobLimits
- com.
- com.
public final class CommandJobLimits
extends JobLimits
Command Job limit class.
Constructor Summary
| Constructor | Description |
|---|---|
| CommandJobLimits() |
Creates an instance of Command |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Command |
fromJson(JsonReader jsonReader)
Reads an instance of Command |
|
Job |
jobLimitsType()
Get the job |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Command |
withTimeout(Duration timeout)
Set the timeout property: The max run duration in ISO 8601 format, after which the job will be cancelled. |
Methods inherited from JobLimits
Methods inherited from java.lang.Object
Constructor Details
CommandJobLimits
public CommandJobLimits()
Creates an instance of CommandJobLimits class.
Method Details
fromJson
public static CommandJobLimits fromJson(JsonReader jsonReader)
Reads an instance of CommandJobLimits from the JsonReader.
Parameters:
Returns:
Throws:
jobLimitsType
public JobLimitsType jobLimitsType()
Get the jobLimitsType property: [Required] JobLimit type.
Overrides:
CommandJobLimits.jobLimitsType()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
CommandJobLimits.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
CommandJobLimits.validate()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:
CommandJobLimits.withTimeout(Duration timeout)Parameters: