Package org.cdk8s.plus24
Class NamespacesSelectOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.NamespacesSelectOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NamespacesSelectOptions>
- Enclosing interface:
- NamespacesSelectOptions
@Stability(Stable) public static final class NamespacesSelectOptions.Builder extends Object implements software.amazon.jsii.Builder<NamespacesSelectOptions>
A builder forNamespacesSelectOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamespacesSelectOptionsbuild()Builds the configured instance.NamespacesSelectOptions.Builderexpressions(List<? extends LabelExpression> expressions)Sets the value ofNamespacesSelectOptions.getExpressions()NamespacesSelectOptions.Builderlabels(Map<String,String> labels)Sets the value ofNamespacesSelectOptions.getLabels()NamespacesSelectOptions.Buildernames(List<String> names)Sets the value ofNamespacesSelectOptions.getNames()
-
-
-
Method Detail
-
expressions
@Stability(Stable) public NamespacesSelectOptions.Builder expressions(List<? extends LabelExpression> expressions)
Sets the value ofNamespacesSelectOptions.getExpressions()- Parameters:
expressions- Namespaces must satisfy these selectors. The selectors query labels, just like thelabelsproperty, but they provide a more advanced matching mechanism.- Returns:
this
-
labels
@Stability(Stable) public NamespacesSelectOptions.Builder labels(Map<String,String> labels)
Sets the value ofNamespacesSelectOptions.getLabels()- Parameters:
labels- Labels the namespaces must have. This is equivalent to using an 'Is' selector.- Returns:
this
-
names
@Stability(Stable) public NamespacesSelectOptions.Builder names(List<String> names)
Sets the value ofNamespacesSelectOptions.getNames()- Parameters:
names- Namespaces names must be one of these.- Returns:
this
-
build
@Stability(Stable) public NamespacesSelectOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NamespacesSelectOptions>- Returns:
- a new instance of
NamespacesSelectOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-