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

public final class Endpoint extends Object implements com.azure.json.JsonSerializable<Endpoint>
Describes the endpoint configuration for the container.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    static Endpoint
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Endpoint from the JsonReader.
    Get the hostIp property: Host IP over which the application is exposed from the container.
    Get the name property: Name of the Endpoint.
    Get the protocol property: Protocol over which communication will happen over this endpoint.
    Get the published property: Port over which the application is exposed from container.
    Get the target property: Application port inside the container.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the hostIp property: Host IP over which the application is exposed from the container.
    Set the name property: Name of the Endpoint.
    Set the protocol property: Protocol over which communication will happen over this endpoint.
    Set the published property: Port over which the application is exposed from container.
    Set the target property: Application port inside the container.

    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

    • Endpoint

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

    • protocol

      public Protocol protocol()
      Get the protocol property: Protocol over which communication will happen over this endpoint.
      Returns:
      the protocol value.
    • withProtocol

      public Endpoint withProtocol(Protocol protocol)
      Set the protocol property: Protocol over which communication will happen over this endpoint.
      Parameters:
      protocol - the protocol value to set.
      Returns:
      the Endpoint object itself.
    • name

      public String name()
      Get the name property: Name of the Endpoint.
      Returns:
      the name value.
    • withName

      public Endpoint withName(String name)
      Set the name property: Name of the Endpoint.
      Parameters:
      name - the name value to set.
      Returns:
      the Endpoint object itself.
    • target

      public Integer target()
      Get the target property: Application port inside the container.
      Returns:
      the target value.
    • withTarget

      public Endpoint withTarget(Integer target)
      Set the target property: Application port inside the container.
      Parameters:
      target - the target value to set.
      Returns:
      the Endpoint object itself.
    • published

      public Integer published()
      Get the published property: Port over which the application is exposed from container.
      Returns:
      the published value.
    • withPublished

      public Endpoint withPublished(Integer published)
      Set the published property: Port over which the application is exposed from container.
      Parameters:
      published - the published value to set.
      Returns:
      the Endpoint object itself.
    • hostIp

      public String hostIp()
      Get the hostIp property: Host IP over which the application is exposed from the container.
      Returns:
      the hostIp value.
    • withHostIp

      public Endpoint withHostIp(String hostIp)
      Set the hostIp property: Host IP over which the application is exposed from the container.
      Parameters:
      hostIp - the hostIp value to set.
      Returns:
      the Endpoint 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<Endpoint>
      Throws:
      IOException
    • fromJson

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