Package org.cdk8s.plus24.k8s
Class EndpointV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.EndpointV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EndpointV1Beta1>
- Enclosing interface:
- EndpointV1Beta1
@Stability(Stable) public static final class EndpointV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<EndpointV1Beta1>
A builder forEndpointV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointV1Beta1.Builder
addresses(List<String> addresses)
Sets the value ofEndpointV1Beta1.getAddresses()
EndpointV1Beta1
build()
Builds the configured instance.EndpointV1Beta1.Builder
conditions(EndpointConditionsV1Beta1 conditions)
Sets the value ofEndpointV1Beta1.getConditions()
EndpointV1Beta1.Builder
hints(EndpointHintsV1Beta1 hints)
Sets the value ofEndpointV1Beta1.getHints()
EndpointV1Beta1.Builder
hostname(String hostname)
Sets the value ofEndpointV1Beta1.getHostname()
EndpointV1Beta1.Builder
nodeName(String nodeName)
Sets the value ofEndpointV1Beta1.getNodeName()
EndpointV1Beta1.Builder
targetRef(ObjectReference targetRef)
Sets the value ofEndpointV1Beta1.getTargetRef()
EndpointV1Beta1.Builder
topology(Map<String,String> topology)
Sets the value ofEndpointV1Beta1.getTopology()
-
-
-
Method Detail
-
addresses
@Stability(Stable) public EndpointV1Beta1.Builder addresses(List<String> addresses)
Sets the value ofEndpointV1Beta1.getAddresses()
- Parameters:
addresses
- addresses of this endpoint. This parameter is required. 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:
this
-
conditions
@Stability(Stable) public EndpointV1Beta1.Builder conditions(EndpointConditionsV1Beta1 conditions)
Sets the value ofEndpointV1Beta1.getConditions()
- Parameters:
conditions
- conditions contains information about the current status of the endpoint.- Returns:
this
-
hints
@Stability(Stable) public EndpointV1Beta1.Builder hints(EndpointHintsV1Beta1 hints)
Sets the value ofEndpointV1Beta1.getHints()
- Parameters:
hints
- hints contains information associated with how an endpoint should be consumed.- Returns:
this
-
hostname
@Stability(Stable) public EndpointV1Beta1.Builder hostname(String hostname)
Sets the value ofEndpointV1Beta1.getHostname()
- Parameters:
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
@Stability(Stable) public EndpointV1Beta1.Builder nodeName(String nodeName)
Sets the value ofEndpointV1Beta1.getNodeName()
- Parameters:
nodeName
- nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node. This field can be enabled with the EndpointSliceNodeName feature gate.- Returns:
this
-
targetRef
@Stability(Stable) public EndpointV1Beta1.Builder targetRef(ObjectReference targetRef)
Sets the value ofEndpointV1Beta1.getTargetRef()
- Parameters:
targetRef
- targetRef is a reference to a Kubernetes object that represents this endpoint.- Returns:
this
-
topology
@Stability(Stable) public EndpointV1Beta1.Builder topology(Map<String,String> topology)
Sets the value ofEndpointV1Beta1.getTopology()
- Parameters:
topology
- topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node where the endpoint is located. This should match the corresponding node label.- topology.kubernetes.io/zone: the value indicates the zone where the endpoint is located. This should match the corresponding node label.
- topology.kubernetes.io/region: the value indicates the region where the endpoint is located. This should match the corresponding node label. This field is deprecated and will be removed in future api versions.
- Returns:
this
-
build
@Stability(Stable) public EndpointV1Beta1 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EndpointV1Beta1>
- Returns:
- a new instance of
EndpointV1Beta1
- Throws:
NullPointerException
- if any required attribute was not provided
-
-