Endpoint Class
- java.
lang. Object - com.
azure. resourcemanager. machinelearning. models. Endpoint
- com.
Implements
public final class Endpoint
implements JsonSerializable<Endpoint>
Describes the endpoint configuration for the container.
Constructor Summary
| Constructor | Description |
|---|---|
| Endpoint() |
Creates an instance of Endpoint class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Endpoint |
fromJson(JsonReader jsonReader)
Reads an instance of Endpoint from the Json |
| String |
hostIp()
Get the host |
| String |
name()
Get the name property: Name of the Endpoint. |
| Protocol |
protocol()
Get the protocol property: Protocol over which communication will happen over this endpoint. |
| Integer |
published()
Get the published property: Port over which the application is exposed from container. |
| Integer |
target()
Get the target property: Application port inside the container. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Endpoint |
withHostIp(String hostIp)
Set the host |
| Endpoint |
withName(String name)
Set the name property: Name of the Endpoint. |
| Endpoint |
withProtocol(Protocol protocol)
Set the protocol property: Protocol over which communication will happen over this endpoint. |
| Endpoint |
withPublished(Integer published)
Set the published property: Port over which the application is exposed from container. |
| Endpoint |
withTarget(Integer target)
Set the target property: Application port inside the container. |
Methods inherited from java.lang.Object
Constructor Details
Endpoint
public Endpoint()
Creates an instance of Endpoint class.
Method Details
fromJson
public static Endpoint fromJson(JsonReader jsonReader)
Reads an instance of Endpoint from the JsonReader.
Parameters:
Returns:
Throws:
hostIp
public String hostIp()
Get the hostIp property: Host IP over which the application is exposed from the container.
Returns:
name
public String name()
Get the name property: Name of the Endpoint.
Returns:
protocol
public Protocol protocol()
Get the protocol property: Protocol over which communication will happen over this endpoint.
Returns:
published
public Integer published()
Get the published property: Port over which the application is exposed from container.
Returns:
target
public Integer target()
Get the target property: Application port inside the container.
Returns:
toJson
validate
public void validate()
Validates the instance.
withHostIp
public Endpoint withHostIp(String hostIp)
Set the hostIp property: Host IP over which the application is exposed from the container.
Parameters:
Returns:
withName
public Endpoint withName(String name)
Set the name property: Name of the Endpoint.
Parameters:
Returns:
withProtocol
public Endpoint withProtocol(Protocol protocol)
Set the protocol property: Protocol over which communication will happen over this endpoint.
Parameters:
Returns:
withPublished
public Endpoint withPublished(Integer published)
Set the published property: Port over which the application is exposed from container.
Parameters:
Returns:
withTarget
public Endpoint withTarget(Integer target)
Set the target property: Application port inside the container.
Parameters:
Returns: