InferenceContainerProperties Class

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

Implements

public final class InferenceContainerProperties
implements JsonSerializable<InferenceContainerProperties>

The InferenceContainerProperties model.

Constructor Summary

Constructor Description
InferenceContainerProperties()

Creates an instance of InferenceContainerProperties class.

Method Summary

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

Reads an instance of InferenceContainerProperties from the JsonReader.

Route livenessRoute()

Get the livenessRoute property: The route to check the liveness of the inference server container.

Route readinessRoute()

Get the readinessRoute property: The route to check the readiness of the inference server container.

Route scoringRoute()

Get the scoringRoute property: The port to send the scoring requests to, within the inference server container.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

InferenceContainerProperties withLivenessRoute(Route livenessRoute)

Set the livenessRoute property: The route to check the liveness of the inference server container.

InferenceContainerProperties withReadinessRoute(Route readinessRoute)

Set the readinessRoute property: The route to check the readiness of the inference server container.

InferenceContainerProperties withScoringRoute(Route scoringRoute)

Set the scoringRoute property: The port to send the scoring requests to, within the inference server container.

Methods inherited from java.lang.Object

Constructor Details

InferenceContainerProperties

public InferenceContainerProperties()

Creates an instance of InferenceContainerProperties class.

Method Details

fromJson

public static InferenceContainerProperties fromJson(JsonReader jsonReader)

Reads an instance of InferenceContainerProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of InferenceContainerProperties 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 InferenceContainerProperties.

livenessRoute

public Route livenessRoute()

Get the livenessRoute property: The route to check the liveness of the inference server container.

Returns:

the livenessRoute value.

readinessRoute

public Route readinessRoute()

Get the readinessRoute property: The route to check the readiness of the inference server container.

Returns:

the readinessRoute value.

scoringRoute

public Route scoringRoute()

Get the scoringRoute property: The port to send the scoring requests to, within the inference server container.

Returns:

the scoringRoute value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLivenessRoute

public InferenceContainerProperties withLivenessRoute(Route livenessRoute)

Set the livenessRoute property: The route to check the liveness of the inference server container.

Parameters:

livenessRoute - the livenessRoute value to set.

Returns:

the InferenceContainerProperties object itself.

withReadinessRoute

public InferenceContainerProperties withReadinessRoute(Route readinessRoute)

Set the readinessRoute property: The route to check the readiness of the inference server container.

Parameters:

readinessRoute - the readinessRoute value to set.

Returns:

the InferenceContainerProperties object itself.

withScoringRoute

public InferenceContainerProperties withScoringRoute(Route scoringRoute)

Set the scoringRoute property: The port to send the scoring requests to, within the inference server container.

Parameters:

scoringRoute - the scoringRoute value to set.

Returns:

the InferenceContainerProperties object itself.

Applies to