Class V1HostAlias
java.lang.Object
io.kubernetes.client.openapi.models.V1HostAlias
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T23:08:31.638427Z[Etc/UTC]")
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHostnamesItem
(String hostnamesItem) boolean
Hostnames for the above IP address.getIp()
IP address of the host file entry.int
hashCode()
void
setHostnames
(List<String> hostnames) void
toString()
-
Field Details
-
SERIALIZED_NAME_HOSTNAMES
- See Also:
-
SERIALIZED_NAME_IP
- See Also:
-
-
Constructor Details
-
V1HostAlias
public V1HostAlias()
-
-
Method Details
-
hostnames
-
addHostnamesItem
-
getHostnames
Hostnames for the above IP address.- Returns:
- hostnames
-
setHostnames
-
ip
-
getIp
IP address of the host file entry.- Returns:
- ip
-
setIp
-
equals
-
hashCode
public int hashCode() -
toString
-