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 Details

    • InferenceContainerProperties

      public InferenceContainerProperties()
      Creates an instance of InferenceContainerProperties class.
  • Method Details

    • livenessRoute

      public Route livenessRoute()
      Get the livenessRoute property: The route to check the liveness of the inference server container.
      Returns:
      the livenessRoute value.
    • 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.
    • readinessRoute

      public Route readinessRoute()
      Get the readinessRoute property: The route to check the readiness of the inference server container.
      Returns:
      the readinessRoute value.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.