Package org.cdk8s.plus25.k8s
Class TopologySelectorLabelRequirement.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.TopologySelectorLabelRequirement.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<TopologySelectorLabelRequirement>
- Enclosing interface:
- TopologySelectorLabelRequirement
@Stability(Stable) public static final class TopologySelectorLabelRequirement.Builder extends Object implements software.amazon.jsii.Builder<TopologySelectorLabelRequirement>
A builder forTopologySelectorLabelRequirement
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopologySelectorLabelRequirementbuild()Builds the configured instance.TopologySelectorLabelRequirement.Builderkey(String key)Sets the value ofTopologySelectorLabelRequirement.getKey()TopologySelectorLabelRequirement.Buildervalues(List<String> values)Sets the value ofTopologySelectorLabelRequirement.getValues()
-
-
-
Method Detail
-
key
@Stability(Stable) public TopologySelectorLabelRequirement.Builder key(String key)
Sets the value ofTopologySelectorLabelRequirement.getKey()- Parameters:
key- The label key that the selector applies to. This parameter is required.- Returns:
this
-
values
@Stability(Stable) public TopologySelectorLabelRequirement.Builder values(List<String> values)
Sets the value ofTopologySelectorLabelRequirement.getValues()- Parameters:
values- An array of string values. This parameter is required. One value must match the label to be selected. Each entry in Values is ORed.- Returns:
this
-
build
@Stability(Stable) public TopologySelectorLabelRequirement build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TopologySelectorLabelRequirement>- Returns:
- a new instance of
TopologySelectorLabelRequirement - Throws:
NullPointerException- if any required attribute was not provided
-
-