Class ServerlessInferenceEndpoint

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

public final class ServerlessInferenceEndpoint extends Object implements com.azure.json.JsonSerializable<ServerlessInferenceEndpoint>
The ServerlessInferenceEndpoint model.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ServerlessInferenceEndpoint class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ServerlessInferenceEndpoint from the JsonReader.
    Get the headers property: Specifies any required headers to target this serverless endpoint.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    uri()
    Get the uri property: [Required] The inference uri to target when making requests against the Serverless Endpoint.
    void
    Validates the instance.
    Set the uri property: [Required] The inference uri to target when making requests against the Serverless Endpoint.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • ServerlessInferenceEndpoint

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

    • uri

      public String uri()
      Get the uri property: [Required] The inference uri to target when making requests against the Serverless Endpoint.
      Returns:
      the uri value.
    • withUri

      public ServerlessInferenceEndpoint withUri(String uri)
      Set the uri property: [Required] The inference uri to target when making requests against the Serverless Endpoint.
      Parameters:
      uri - the uri value to set.
      Returns:
      the ServerlessInferenceEndpoint object itself.
    • headers

      public Map<String,String> headers()
      Get the headers property: Specifies any required headers to target this serverless endpoint.
      Returns:
      the headers value.
    • 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<ServerlessInferenceEndpoint>
      Throws:
      IOException
    • fromJson

      public static ServerlessInferenceEndpoint fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ServerlessInferenceEndpoint from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ServerlessInferenceEndpoint if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ServerlessInferenceEndpoint.