Class HostAlias

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<HostAliasBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class HostAlias
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<HostAliasBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.
    See Also:
    Serialized Form
    • Constructor Detail

      • HostAlias

        public HostAlias()
        No args constructor for use in serialization
    • Method Detail

      • getHostnames

        public List<String> getHostnames()
        Hostnames for the above IP address.
      • setHostnames

        public void setHostnames​(List<String> hostnames)
        Hostnames for the above IP address.
      • getIp

        public String getIp()
        IP address of the host file entry.
      • setIp

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

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)