Class EndpointAddress
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.EndpointAddress
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class EndpointAddress extends java.lang.Object implements com.marcnuri.yakc.model.Model
EndpointAddress is a tuple that describes single IP address.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EndpointAddress.Builder
-
Constructor Summary
Constructors Constructor Description EndpointAddress()
EndpointAddress(java.lang.String hostname, @NonNull java.lang.String ip, java.lang.String nodeName, ObjectReference targetRef)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EndpointAddress.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getHostname()
The Hostname of this endpoint@NonNull java.lang.String
getIp()
The IP of this endpoint.java.lang.String
getNodeName()
Optional: Node hosting this endpoint.ObjectReference
getTargetRef()
int
hashCode()
void
setHostname(java.lang.String hostname)
The Hostname of this endpointvoid
setIp(@NonNull java.lang.String ip)
The IP of this endpoint.void
setNodeName(java.lang.String nodeName)
Optional: Node hosting this endpoint.void
setTargetRef(ObjectReference targetRef)
EndpointAddress.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
EndpointAddress
public EndpointAddress(java.lang.String hostname, @NonNull @NonNull java.lang.String ip, java.lang.String nodeName, ObjectReference targetRef)
-
EndpointAddress
public EndpointAddress()
-
-
Method Detail
-
builder
public static EndpointAddress.Builder builder()
-
toBuilder
public EndpointAddress.Builder toBuilder()
-
getHostname
public java.lang.String getHostname()
The Hostname of this endpoint
-
getIp
@NonNull public @NonNull java.lang.String 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).
-
getNodeName
public java.lang.String getNodeName()
Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
-
getTargetRef
public ObjectReference getTargetRef()
-
setHostname
public void setHostname(java.lang.String hostname)
The Hostname of this endpoint
-
setIp
public void setIp(@NonNull @NonNull java.lang.String ip)
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).
-
setNodeName
public void setNodeName(java.lang.String nodeName)
Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
-
setTargetRef
public void setTargetRef(ObjectReference targetRef)
-
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
-
-