BatchRetrySettings Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.BatchRetrySettings

Implements

public final class BatchRetrySettings
implements JsonSerializable<BatchRetrySettings>

Retry settings for a batch inference operation.

Constructor Summary

Constructor Description
BatchRetrySettings()

Creates an instance of BatchRetrySettings class.

Method Summary

Modifier and Type Method and Description
static BatchRetrySettings fromJson(JsonReader jsonReader)

Reads an instance of BatchRetrySettings from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

Methods inherited from java.lang.Object

Constructor Details

BatchRetrySettings

public BatchRetrySettings()

Creates an instance of BatchRetrySettings class.

Method Details

fromJson

public static BatchRetrySettings fromJson(JsonReader jsonReader)

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.

maxRetries

public Integer maxRetries()

Get the maxRetries property: Maximum retry count for a mini-batch.

Returns:

the maxRetries value.

timeout

public Duration timeout()

Get the timeout property: Invocation timeout for a mini-batch, in ISO 8601 format.

Returns:

the timeout value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to