Class V1Endpoint
java.lang.Object
io.kubernetes.client.openapi.models.V1Endpoint
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1Endpoint
extends Object
Endpoint represents a single logical \"backend\" implementing a service.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAddressesItem
(String addressesItem) conditions
(V1EndpointConditions conditions) deprecatedTopology
(Map<String, String> deprecatedTopology) boolean
static V1Endpoint
Create an instance of V1Endpoint given an JSON stringaddresses of this endpoint.Get conditionsdeprecatedTopology contains topology information part of the v1beta1 API.getHints()
Get hintshostname of this endpoint.nodeName represents the name of the Node hosting this endpoint.Get targetRefgetZone()
zone is the name of the Zone this endpoint exists in.int
hashCode()
hints
(V1EndpointHints hints) putDeprecatedTopologyItem
(String key, String deprecatedTopologyItem) void
setAddresses
(List<String> addresses) void
setConditions
(V1EndpointConditions conditions) void
setDeprecatedTopology
(Map<String, String> deprecatedTopology) void
setHints
(V1EndpointHints hints) void
setHostname
(String hostname) void
setNodeName
(String nodeName) void
setTargetRef
(V1ObjectReference targetRef) void
targetRef
(V1ObjectReference targetRef) toJson()
Convert an instance of V1Endpoint to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ADDRESSES
- See Also:
-
SERIALIZED_NAME_CONDITIONS
- See Also:
-
SERIALIZED_NAME_DEPRECATED_TOPOLOGY
- See Also:
-
SERIALIZED_NAME_HINTS
- See Also:
-
SERIALIZED_NAME_HOSTNAME
- See Also:
-
SERIALIZED_NAME_NODE_NAME
- See Also:
-
SERIALIZED_NAME_TARGET_REF
- See Also:
-
SERIALIZED_NAME_ZONE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1Endpoint
public V1Endpoint()
-
-
Method Details
-
addresses
-
addAddressesItem
-
getAddresses
addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267- Returns:
- addresses
-
setAddresses
-
conditions
-
getConditions
Get conditions- Returns:
- conditions
-
setConditions
-
deprecatedTopology
-
putDeprecatedTopologyItem
-
getDeprecatedTopology
deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.- Returns:
- deprecatedTopology
-
setDeprecatedTopology
-
hints
-
getHints
Get hints- Returns:
- hints
-
setHints
-
hostname
-
getHostname
hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.- Returns:
- hostname
-
setHostname
-
nodeName
-
getNodeName
nodeName represents the name of the 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
-
zone
-
getZone
zone is the name of the Zone this endpoint exists in.- Returns:
- zone
-
setZone
-
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 V1Endpoint
-
fromJson
Create an instance of V1Endpoint given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1Endpoint
- Throws:
IOException
- if the JSON string is invalid with respect to V1Endpoint
-
toJson
Convert an instance of V1Endpoint to an JSON string- Returns:
- JSON string
-