Class BatchEndpointDefaults

java.lang.Object
com.azure.resourcemanager.machinelearning.models.BatchEndpointDefaults
All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchEndpointDefaults>

public final class BatchEndpointDefaults extends Object implements com.azure.json.JsonSerializable<BatchEndpointDefaults>
Batch endpoint default values.
  • Constructor Details

    • BatchEndpointDefaults

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

    • deploymentName

      public String deploymentName()
      Get the deploymentName property: Name of the deployment that will be default for the endpoint. This deployment will end up getting 100% traffic when the endpoint scoring URL is invoked.
      Returns:
      the deploymentName value.
    • withDeploymentName

      public BatchEndpointDefaults withDeploymentName(String deploymentName)
      Set the deploymentName property: Name of the deployment that will be default for the endpoint. This deployment will end up getting 100% traffic when the endpoint scoring URL is invoked.
      Parameters:
      deploymentName - the deploymentName value to set.
      Returns:
      the BatchEndpointDefaults 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<BatchEndpointDefaults>
      Throws:
      IOException
    • fromJson

      public static BatchEndpointDefaults fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BatchEndpointDefaults from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BatchEndpointDefaults 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 BatchEndpointDefaults.