Class HostAlias

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class HostAlias
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.
    • Constructor Summary

      Constructors 
      Constructor Description
      HostAlias()  
      HostAlias​(java.util.List<java.lang.String> hostnames, java.lang.String ip)  
    • Method Summary

      Modifier and Type Method Description
      static HostAlias.HostAliasBuilder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.util.List<java.lang.String> getHostnames()
      Hostnames for the above IP address.
      java.lang.String getIp()
      IP address of the host file entry.
      int hashCode()  
      void setHostnames​(java.util.List<java.lang.String> hostnames)
      Hostnames for the above IP address.
      void setIp​(java.lang.String ip)
      IP address of the host file entry.
      HostAlias.HostAliasBuilder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HostAlias

        public HostAlias​(java.util.List<java.lang.String> hostnames,
                         java.lang.String ip)
      • HostAlias

        public HostAlias()
    • Method Detail

      • getHostnames

        public java.util.List<java.lang.String> getHostnames()
        Hostnames for the above IP address.
      • getIp

        public java.lang.String getIp()
        IP address of the host file entry.
      • setHostnames

        public void setHostnames​(java.util.List<java.lang.String> hostnames)
        Hostnames for the above IP address.
      • setIp

        public void setIp​(java.lang.String ip)
        IP address of the host file entry.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object