Class BatchRetrySettings
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.BatchRetrySettings
-
public final class BatchRetrySettings extends Object
Retry settings for a batch inference operation.
-
-
Constructor Summary
Constructors Constructor Description BatchRetrySettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
maxRetries()
Get the maxRetries property: Maximum retry count for a mini-batch.Duration
timeout()
Get the timeout property: Invocation timeout for a mini-batch, in ISO 8601 format.void
validate()
Validates the instance.BatchRetrySettings
withMaxRetries(Integer maxRetries)
Set the maxRetries property: Maximum retry count for a mini-batch.BatchRetrySettings
withTimeout(Duration timeout)
Set the timeout property: Invocation timeout for a mini-batch, in ISO 8601 format.
-
-
-
Method Detail
-
maxRetries
public Integer maxRetries()
Get the maxRetries property: Maximum retry count for a mini-batch.- Returns:
- the maxRetries value.
-
withMaxRetries
public BatchRetrySettings withMaxRetries(Integer maxRetries)
Set the maxRetries property: Maximum retry count for a mini-batch.- Parameters:
maxRetries
- the maxRetries value to set.- Returns:
- the BatchRetrySettings object itself.
-
timeout
public Duration timeout()
Get the timeout property: Invocation timeout for a mini-batch, in ISO 8601 format.- Returns:
- the timeout value.
-
withTimeout
public BatchRetrySettings withTimeout(Duration timeout)
Set the timeout property: Invocation timeout for a mini-batch, in ISO 8601 format.- Parameters:
timeout
- the timeout value to set.- Returns:
- the BatchRetrySettings object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-