Class HostAlias
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.HostAlias
-
- All Implemented Interfaces:
Editable<HostAliasBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class HostAlias extends Object implements Editable<HostAliasBuilder>, 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostAliasBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getHostnames()hostnames defines hostnames for the above IP address.StringgetIp()ip defines the IP address of the host file entry.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetHostnames(List<String> hostnames)hostnames defines hostnames for the above IP address.voidsetIp(String ip)ip defines the IP address of the host file entry.HostAliasBuildertoBuilder()
-
-
-
Method Detail
-
getHostnames
public List<String> getHostnames()
hostnames defines hostnames for the above IP address.
-
setHostnames
public void setHostnames(List<String> hostnames)
hostnames defines hostnames for the above IP address.
-
getIp
public String getIp()
ip defines the IP address of the host file entry.
-
setIp
public void setIp(String ip)
ip defines the IP address of the host file entry.
-
edit
public HostAliasBuilder edit()
- Specified by:
editin interfaceEditable<HostAliasBuilder>
-
toBuilder
public HostAliasBuilder toBuilder()
-
-