Class Endpoint
java.lang.Object
com.azure.resourcemanager.machinelearning.models.Endpoint
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Endpoint>
Describes the endpoint configuration for the container.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Endpoint from the JsonReader.hostIp()Get the hostIp property: Host IP over which the application is exposed from the container.name()Get the name property: Name of the Endpoint.protocol()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.target()Get the target property: Application port inside the container.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withHostIp(String hostIp) Set the hostIp property: Host IP over which the application is exposed from the container.Set the name property: Name of the Endpoint.withProtocol(Protocol protocol) Set the protocol property: Protocol over which communication will happen over this endpoint.withPublished(Integer published) Set the published property: Port over which the application is exposed from container.withTarget(Integer target) 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, waitMethods 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
Get the protocol property: Protocol over which communication will happen over this endpoint.- Returns:
- the protocol value.
-
withProtocol
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
Get the name property: Name of the Endpoint.- Returns:
- the name value.
-
withName
Set the name property: Name of the Endpoint.- Parameters:
name- the name value to set.- Returns:
- the Endpoint object itself.
-
target
Get the target property: Application port inside the container.- Returns:
- the target value.
-
withTarget
Set the target property: Application port inside the container.- Parameters:
target- the target value to set.- Returns:
- the Endpoint object itself.
-
published
Get the published property: Port over which the application is exposed from container.- Returns:
- the published value.
-
withPublished
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
Get the hostIp property: Host IP over which the application is exposed from the container.- Returns:
- the hostIp value.
-
withHostIp
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Endpoint>- Throws:
IOException
-
fromJson
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.
-