Class Endpoint.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.discovery.v1.Endpoint.Builder
-
- Enclosing class:
- Endpoint
public static class Endpoint.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Endpoint.Builder
addresses(java.util.Collection<? extends java.lang.String> addresses)
Endpoint.Builder
addToAddresses(java.lang.String addToAddresses)
Endpoint
build()
Endpoint.Builder
clearAddresses()
Endpoint.Builder
clearDeprecatedTopology()
Endpoint.Builder
conditions(EndpointConditions conditions)
Endpoint.Builder
deprecatedTopology(java.util.Map<? extends java.lang.String,? extends java.lang.String> deprecatedTopology)
Endpoint.Builder
hints(EndpointHints hints)
Endpoint.Builder
hostname(java.lang.String hostname)
hostname of this endpoint.Endpoint.Builder
nodeName(java.lang.String nodeName)
nodeName represents the name of the Node hosting this endpoint.Endpoint.Builder
putInDeprecatedTopology(java.lang.String putInDeprecatedTopologyKey, java.lang.String putInDeprecatedTopologyValue)
Endpoint.Builder
targetRef(ObjectReference targetRef)
java.lang.String
toString()
Endpoint.Builder
zone(java.lang.String zone)
zone is the name of the Zone this endpoint exists in.
-
-
-
Method Detail
-
addToAddresses
public Endpoint.Builder addToAddresses(java.lang.String addToAddresses)
-
addresses
public Endpoint.Builder addresses(java.util.Collection<? extends java.lang.String> addresses)
-
clearAddresses
public Endpoint.Builder clearAddresses()
-
conditions
public Endpoint.Builder conditions(EndpointConditions conditions)
- Returns:
this
.
-
putInDeprecatedTopology
public Endpoint.Builder putInDeprecatedTopology(java.lang.String putInDeprecatedTopologyKey, java.lang.String putInDeprecatedTopologyValue)
-
deprecatedTopology
public Endpoint.Builder deprecatedTopology(java.util.Map<? extends java.lang.String,? extends java.lang.String> deprecatedTopology)
-
clearDeprecatedTopology
public Endpoint.Builder clearDeprecatedTopology()
-
hints
public Endpoint.Builder hints(EndpointHints hints)
- Returns:
this
.
-
hostname
public Endpoint.Builder hostname(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.- Returns:
this
.
-
nodeName
public Endpoint.Builder nodeName(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.- Returns:
this
.
-
targetRef
public Endpoint.Builder targetRef(ObjectReference targetRef)
- Returns:
this
.
-
zone
public Endpoint.Builder zone(java.lang.String zone)
zone is the name of the Zone this endpoint exists in.- Returns:
this
.
-
build
public Endpoint build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-