Package org.cdk8s.plus24
Class PodsSelectOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.PodsSelectOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PodsSelectOptions>
- Enclosing interface:
- PodsSelectOptions
@Stability(Stable) public static final class PodsSelectOptions.Builder extends Object implements software.amazon.jsii.Builder<PodsSelectOptions>
A builder forPodsSelectOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodsSelectOptions
build()
Builds the configured instance.PodsSelectOptions.Builder
expressions(List<? extends LabelExpression> expressions)
Sets the value ofPodsSelectOptions.getExpressions()
PodsSelectOptions.Builder
labels(Map<String,String> labels)
Sets the value ofPodsSelectOptions.getLabels()
PodsSelectOptions.Builder
namespaces(Namespaces namespaces)
Sets the value ofPodsSelectOptions.getNamespaces()
-
-
-
Method Detail
-
expressions
@Stability(Stable) public PodsSelectOptions.Builder expressions(List<? extends LabelExpression> expressions)
Sets the value ofPodsSelectOptions.getExpressions()
- Parameters:
expressions
- Expressions the pods must satisify.- Returns:
this
-
labels
@Stability(Stable) public PodsSelectOptions.Builder labels(Map<String,String> labels)
Sets the value ofPodsSelectOptions.getLabels()
- Parameters:
labels
- Labels the pods must have.- Returns:
this
-
namespaces
@Stability(Stable) public PodsSelectOptions.Builder namespaces(Namespaces namespaces)
Sets the value ofPodsSelectOptions.getNamespaces()
- Parameters:
namespaces
- Namespaces the pods are allowed to be in. UseNamespaces.all()
to allow all namespaces.- Returns:
this
-
build
@Stability(Stable) public PodsSelectOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PodsSelectOptions>
- Returns:
- a new instance of
PodsSelectOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-