Package org.cdk8s.plus25.k8s
Class TopologySelectorTerm.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.TopologySelectorTerm.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<TopologySelectorTerm>
- Enclosing interface:
- TopologySelectorTerm
@Stability(Stable) public static final class TopologySelectorTerm.Builder extends Object implements software.amazon.jsii.Builder<TopologySelectorTerm>
A builder forTopologySelectorTerm
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopologySelectorTermbuild()Builds the configured instance.TopologySelectorTerm.BuildermatchLabelExpressions(List<? extends TopologySelectorLabelRequirement> matchLabelExpressions)Sets the value ofTopologySelectorTerm.getMatchLabelExpressions()
-
-
-
Method Detail
-
matchLabelExpressions
@Stability(Stable) public TopologySelectorTerm.Builder matchLabelExpressions(List<? extends TopologySelectorLabelRequirement> matchLabelExpressions)
Sets the value ofTopologySelectorTerm.getMatchLabelExpressions()- Parameters:
matchLabelExpressions- A list of topology selector requirements by labels.- Returns:
this
-
build
@Stability(Stable) public TopologySelectorTerm build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TopologySelectorTerm>- Returns:
- a new instance of
TopologySelectorTerm - Throws:
NullPointerException- if any required attribute was not provided
-
-