Package org.cdk8s.plus24.k8s
Class NodeSelectorTerm.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.NodeSelectorTerm.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NodeSelectorTerm>
- Enclosing interface:
- NodeSelectorTerm
@Stability(Stable) public static final class NodeSelectorTerm.Builder extends Object implements software.amazon.jsii.Builder<NodeSelectorTerm>
A builder forNodeSelectorTerm
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeSelectorTerm
build()
Builds the configured instance.NodeSelectorTerm.Builder
matchExpressions(List<? extends NodeSelectorRequirement> matchExpressions)
Sets the value ofNodeSelectorTerm.getMatchExpressions()
NodeSelectorTerm.Builder
matchFields(List<? extends NodeSelectorRequirement> matchFields)
Sets the value ofNodeSelectorTerm.getMatchFields()
-
-
-
Method Detail
-
matchExpressions
@Stability(Stable) public NodeSelectorTerm.Builder matchExpressions(List<? extends NodeSelectorRequirement> matchExpressions)
Sets the value ofNodeSelectorTerm.getMatchExpressions()
- Parameters:
matchExpressions
- A list of node selector requirements by node's labels.- Returns:
this
-
matchFields
@Stability(Stable) public NodeSelectorTerm.Builder matchFields(List<? extends NodeSelectorRequirement> matchFields)
Sets the value ofNodeSelectorTerm.getMatchFields()
- Parameters:
matchFields
- A list of node selector requirements by node's fields.- Returns:
this
-
build
@Stability(Stable) public NodeSelectorTerm build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NodeSelectorTerm>
- Returns:
- a new instance of
NodeSelectorTerm
- Throws:
NullPointerException
- if any required attribute was not provided
-
-