Class V1HostAlias
java.lang.Object
io.kubernetes.client.openapi.models.V1HostAlias
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHostnamesItem(String hostnamesItem) booleanstatic V1HostAliasCreate an instance of V1HostAlias given an JSON stringHostnames for the above IP address.getIp()IP address of the host file entry.inthashCode()voidsetHostnames(List<String> hostnames) voidtoJson()Convert an instance of V1HostAlias to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_HOSTNAMES
- See Also:
-
SERIALIZED_NAME_IP
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
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
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to V1HostAlias
-
fromJson
Create an instance of V1HostAlias given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1HostAlias
- Throws:
IOException- if the JSON string is invalid with respect to V1HostAlias
-
toJson
Convert an instance of V1HostAlias to an JSON string- Returns:
- JSON string
-