Class Endpoint
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.discovery.v1.Endpoint
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class Endpoint extends java.lang.Object implements com.marcnuri.yakc.model.Model
Endpoint represents a single logical "backend" implementing a service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Endpoint.Builder
-
Constructor Summary
Constructors Constructor Description Endpoint()
Endpoint(@NonNull java.util.List<java.lang.String> addresses, EndpointConditions conditions, java.util.Map<java.lang.String,java.lang.String> deprecatedTopology, EndpointHints hints, java.lang.String hostname, java.lang.String nodeName, ObjectReference targetRef, java.lang.String zone)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Endpoint.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.util.List<java.lang.String>
getAddresses()
addresses of this endpoint.EndpointConditions
getConditions()
java.util.Map<java.lang.String,java.lang.String>
getDeprecatedTopology()
deprecatedTopology contains topology information part of the v1beta1 API.EndpointHints
getHints()
java.lang.String
getHostname()
hostname of this endpoint.java.lang.String
getNodeName()
nodeName represents the name of the Node hosting this endpoint.ObjectReference
getTargetRef()
java.lang.String
getZone()
zone is the name of the Zone this endpoint exists in.int
hashCode()
void
setAddresses(@NonNull java.util.List<java.lang.String> addresses)
addresses of this endpoint.void
setConditions(EndpointConditions conditions)
void
setDeprecatedTopology(java.util.Map<java.lang.String,java.lang.String> deprecatedTopology)
deprecatedTopology contains topology information part of the v1beta1 API.void
setHints(EndpointHints hints)
void
setHostname(java.lang.String hostname)
hostname of this endpoint.void
setNodeName(java.lang.String nodeName)
nodeName represents the name of the Node hosting this endpoint.void
setTargetRef(ObjectReference targetRef)
void
setZone(java.lang.String zone)
zone is the name of the Zone this endpoint exists in.Endpoint.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Endpoint
public Endpoint(@NonNull @NonNull java.util.List<java.lang.String> addresses, EndpointConditions conditions, java.util.Map<java.lang.String,java.lang.String> deprecatedTopology, EndpointHints hints, java.lang.String hostname, java.lang.String nodeName, ObjectReference targetRef, java.lang.String zone)
-
Endpoint
public Endpoint()
-
-
Method Detail
-
builder
public static Endpoint.Builder builder()
-
toBuilder
public Endpoint.Builder toBuilder()
-
getAddresses
@NonNull public @NonNull java.util.List<java.lang.String> 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
-
getConditions
public EndpointConditions getConditions()
-
getDeprecatedTopology
public java.util.Map<java.lang.String,java.lang.String> 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.
-
getHints
public EndpointHints getHints()
-
getHostname
public java.lang.String 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.
-
getNodeName
public java.lang.String getNodeName()
nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.
-
getTargetRef
public ObjectReference getTargetRef()
-
getZone
public java.lang.String getZone()
zone is the name of the Zone this endpoint exists in.
-
setAddresses
public void setAddresses(@NonNull @NonNull java.util.List<java.lang.String> addresses)
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
-
setConditions
public void setConditions(EndpointConditions conditions)
-
setDeprecatedTopology
public void setDeprecatedTopology(java.util.Map<java.lang.String,java.lang.String> deprecatedTopology)
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.
-
setHints
public void setHints(EndpointHints hints)
-
setHostname
public void setHostname(java.lang.String hostname)
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.
-
setNodeName
public void setNodeName(java.lang.String nodeName)
nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.
-
setTargetRef
public void setTargetRef(ObjectReference targetRef)
-
setZone
public void setZone(java.lang.String zone)
zone is the name of the Zone this endpoint exists in.
-
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
-
-