java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1HostAlias

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1HostAlias extends Object
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.
  • Field Details

  • Constructor Details

    • V1HostAlias

      public V1HostAlias()
  • Method Details

    • getHostnames

      public List<@NotNull String> getHostnames()
      Hostnames for the above IP address.
      Returns:
      the hostnames property value
    • setHostnames

      public void setHostnames(List<@NotNull String> hostnames)
      Set the hostnames property value
      Parameters:
      hostnames - property value to set
    • hostnames

      public V1HostAlias hostnames(List<@NotNull String> hostnames)
      Set hostnames in a chainable fashion.
      Returns:
      The same instance of V1HostAlias for chaining.
    • addhostnamesItem

      public V1HostAlias addhostnamesItem(String hostnamesItem)
      Add an item to the hostnames property in a chainable fashion.
      Returns:
      The same instance of V1HostAlias for chaining.
    • getIp

      public String getIp()
      IP address of the host file entry.
      Returns:
      the ip property value
    • setIp

      public void setIp(String ip)
      Set the ip property value
      Parameters:
      ip - property value to set
    • ip

      public V1HostAlias ip(String ip)
      Set ip in a chainable fashion.
      Returns:
      The same instance of V1HostAlias for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object