Class V1EndpointAddress
java.lang.Object
io.kubernetes.client.openapi.models.V1EndpointAddress
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1EndpointAddress
extends Object
EndpointAddress is a tuple that describes single IP address.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1EndpointAddress
Create an instance of V1EndpointAddress given an JSON stringThe Hostname of this endpointgetIp()
The IP of this endpoint.Optional: Node hosting this endpoint.Get targetRefint
hashCode()
void
setHostname
(String hostname) void
void
setNodeName
(String nodeName) void
setTargetRef
(V1ObjectReference targetRef) targetRef
(V1ObjectReference targetRef) toJson()
Convert an instance of V1EndpointAddress to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_HOSTNAME
- See Also:
-
SERIALIZED_NAME_IP
- See Also:
-
SERIALIZED_NAME_NODE_NAME
- See Also:
-
SERIALIZED_NAME_TARGET_REF
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1EndpointAddress
public V1EndpointAddress()
-
-
Method Details
-
hostname
-
getHostname
The Hostname of this endpoint- Returns:
- hostname
-
setHostname
-
ip
-
getIp
The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).- Returns:
- ip
-
setIp
-
nodeName
-
getNodeName
Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.- Returns:
- nodeName
-
setNodeName
-
targetRef
-
getTargetRef
Get targetRef- Returns:
- targetRef
-
setTargetRef
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1EndpointAddress
-
fromJson
Create an instance of V1EndpointAddress given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1EndpointAddress
- Throws:
IOException
- if the JSON string is invalid with respect to V1EndpointAddress
-
toJson
Convert an instance of V1EndpointAddress to an JSON string- Returns:
- JSON string
-