Class HostEntry

    • Constructor Detail

      • HostEntry

        public HostEntry()
    • Method Detail

      • setHostname

        public void setHostname​(String hostname)

        The hostname to use in the /etc/hosts entry.

        Parameters:
        hostname - The hostname to use in the /etc/hosts entry.
      • getHostname

        public String getHostname()

        The hostname to use in the /etc/hosts entry.

        Returns:
        The hostname to use in the /etc/hosts entry.
      • withHostname

        public HostEntry withHostname​(String hostname)

        The hostname to use in the /etc/hosts entry.

        Parameters:
        hostname - The hostname to use in the /etc/hosts entry.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setIpAddress

        public void setIpAddress​(String ipAddress)

        The IP address to use in the /etc/hosts entry.

        Parameters:
        ipAddress - The IP address to use in the /etc/hosts entry.
      • getIpAddress

        public String getIpAddress()

        The IP address to use in the /etc/hosts entry.

        Returns:
        The IP address to use in the /etc/hosts entry.
      • withIpAddress

        public HostEntry withIpAddress​(String ipAddress)

        The IP address to use in the /etc/hosts entry.

        Parameters:
        ipAddress - The IP address to use in the /etc/hosts entry.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object