Class HostAlias
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HostAlias.HostAliasBuilder
-
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()
-
-
-
Method Detail
-
builder
public static HostAlias.HostAliasBuilder builder()
-
toBuilder
public HostAlias.HostAliasBuilder toBuilder()
-
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 classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-