Class Route


  • public final class Route
    extends Object
    The Route model.
    • Constructor Detail

      • Route

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