Endpoint Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.Endpoint

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 JsonReader.

String hostIp()

Get the hostIp property: Host IP over which the application is exposed from the container.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Endpoint withHostIp(String hostIp)

Set the hostIp property: Host IP over which the application is exposed from the container.

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:

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.

hostIp

public String hostIp()

Get the hostIp property: Host IP over which the application is exposed from the container.

Returns:

the hostIp value.

name

public String name()

Get the name property: Name of the Endpoint.

Returns:

the name value.

protocol

public Protocol protocol()

Get the protocol property: Protocol over which communication will happen over this endpoint.

Returns:

the protocol value.

published

public Integer published()

Get the published property: Port over which the application is exposed from container.

Returns:

the published value.

target

public Integer target()

Get the target property: Application port inside the container.

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

hostIp - the hostIp value to set.

Returns:

the Endpoint object itself.

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.

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.

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.

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.

Applies to