Class BatchRetrySettings
java.lang.Object
com.azure.resourcemanager.machinelearning.models.BatchRetrySettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchRetrySettings>
public final class BatchRetrySettings
extends Object
implements com.azure.json.JsonSerializable<BatchRetrySettings>
Retry settings for a batch inference operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchRetrySettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BatchRetrySettings from the JsonReader.Get the maxRetries property: Maximum retry count for a mini-batch.timeout()Get the timeout property: Invocation timeout for a mini-batch, in ISO 8601 format.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMaxRetries(Integer maxRetries) Set the maxRetries property: Maximum retry count for a mini-batch.withTimeout(Duration timeout) Set the timeout property: Invocation timeout for a mini-batch, in ISO 8601 format.Methods 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
-
BatchRetrySettings
public BatchRetrySettings()Creates an instance of BatchRetrySettings class.
-
-
Method Details
-
maxRetries
Get the maxRetries property: Maximum retry count for a mini-batch.- Returns:
- the maxRetries value.
-
withMaxRetries
Set the maxRetries property: Maximum retry count for a mini-batch.- Parameters:
maxRetries- the maxRetries value to set.- Returns:
- the BatchRetrySettings object itself.
-
timeout
Get the timeout property: Invocation timeout for a mini-batch, in ISO 8601 format.- Returns:
- the timeout value.
-
withTimeout
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BatchRetrySettings>- Throws:
IOException
-
fromJson
Reads an instance of BatchRetrySettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BatchRetrySettings 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 BatchRetrySettings.
-