Class InferenceContainerProperties
java.lang.Object
com.azure.resourcemanager.machinelearning.models.InferenceContainerProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<InferenceContainerProperties>
public final class InferenceContainerProperties
extends Object
implements com.azure.json.JsonSerializable<InferenceContainerProperties>
The InferenceContainerProperties model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of InferenceContainerProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic InferenceContainerPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of InferenceContainerProperties from the JsonReader.Get the livenessRoute property: The route to check the liveness of the inference server container.Get the readinessRoute property: The route to check the readiness of the inference server container.Get the scoringRoute property: The port to send the scoring requests to, within the inference server container.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLivenessRoute(Route livenessRoute) Set the livenessRoute property: The route to check the liveness of the inference server container.withReadinessRoute(Route readinessRoute) Set the readinessRoute property: The route to check the readiness of the inference server container.withScoringRoute(Route scoringRoute) Set the scoringRoute property: The port to send the scoring requests to, within the inference server container.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
-
InferenceContainerProperties
public InferenceContainerProperties()Creates an instance of InferenceContainerProperties class.
-
-
Method Details
-
livenessRoute
Get the livenessRoute property: The route to check the liveness of the inference server container.- Returns:
- the livenessRoute value.
-
withLivenessRoute
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.
-
readinessRoute
Get the readinessRoute property: The route to check the readiness of the inference server container.- Returns:
- the readinessRoute value.
-
withReadinessRoute
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.
-
scoringRoute
Get the scoringRoute property: The port to send the scoring requests to, within the inference server container.- Returns:
- the scoringRoute value.
-
withScoringRoute
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<InferenceContainerProperties>- Throws:
IOException
-
fromJson
public static InferenceContainerProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-