Package org.cdk8s.plus25.k8s
Class EndpointAddress.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.EndpointAddress.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EndpointAddress>
- Enclosing interface:
- EndpointAddress
@Stability(Stable) public static final class EndpointAddress.Builder extends Object implements software.amazon.jsii.Builder<EndpointAddress>
A builder forEndpointAddress
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointAddressbuild()Builds the configured instance.EndpointAddress.Builderhostname(String hostname)Sets the value ofEndpointAddress.getHostname()EndpointAddress.Builderip(String ip)Sets the value ofEndpointAddress.getIp()EndpointAddress.BuildernodeName(String nodeName)Sets the value ofEndpointAddress.getNodeName()EndpointAddress.BuildertargetRef(ObjectReference targetRef)Sets the value ofEndpointAddress.getTargetRef()
-
-
-
Method Detail
-
ip
@Stability(Stable) public EndpointAddress.Builder ip(String ip)
Sets the value ofEndpointAddress.getIp()- Parameters:
ip- The IP of this endpoint. This parameter is required. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.- Returns:
this
-
hostname
@Stability(Stable) public EndpointAddress.Builder hostname(String hostname)
Sets the value ofEndpointAddress.getHostname()- Parameters:
hostname- The Hostname of this endpoint.- Returns:
this
-
nodeName
@Stability(Stable) public EndpointAddress.Builder nodeName(String nodeName)
Sets the value ofEndpointAddress.getNodeName()- Parameters:
nodeName- Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.- Returns:
this
-
targetRef
@Stability(Stable) public EndpointAddress.Builder targetRef(ObjectReference targetRef)
Sets the value ofEndpointAddress.getTargetRef()- Parameters:
targetRef- Reference to object providing the endpoint.- Returns:
this
-
build
@Stability(Stable) public EndpointAddress build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EndpointAddress>- Returns:
- a new instance of
EndpointAddress - Throws:
NullPointerException- if any required attribute was not provided
-
-