Class Route
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.Route
-
public final class Route extends Object
The Route model.
-
-
Constructor Summary
Constructors Constructor Description Route()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
path()
Get the path property: [Required] The path for the route.int
port()
Get the port property: [Required] The port for the route.void
validate()
Validates the instance.Route
withPath(String path)
Set the path property: [Required] The path for the route.Route
withPort(int port)
Set the port property: [Required] The port for the route.
-
-
-
Method Detail
-
path
public String path()
Get the path property: [Required] The path for the route.- Returns:
- the path value.
-
withPath
public Route withPath(String path)
Set the path property: [Required] The path for the route.- Parameters:
path
- the path value to set.- Returns:
- the Route object itself.
-
port
public int port()
Get the port property: [Required] The port for the route.- Returns:
- the port value.
-
withPort
public Route withPort(int port)
Set the port property: [Required] The port for the route.- Parameters:
port
- the port value to set.- Returns:
- the Route object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-