Package org.cdk8s.plus25
Class PodSelectorConfig.Builder
- java.lang.Object
-
- org.cdk8s.plus25.PodSelectorConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PodSelectorConfig>
- Enclosing interface:
- PodSelectorConfig
@Stability(Stable) public static final class PodSelectorConfig.Builder extends Object implements software.amazon.jsii.Builder<PodSelectorConfig>
A builder forPodSelectorConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodSelectorConfigbuild()Builds the configured instance.PodSelectorConfig.BuilderlabelSelector(LabelSelector labelSelector)Sets the value ofPodSelectorConfig.getLabelSelector()PodSelectorConfig.Buildernamespaces(NamespaceSelectorConfig namespaces)Sets the value ofPodSelectorConfig.getNamespaces()
-
-
-
Method Detail
-
labelSelector
@Stability(Stable) public PodSelectorConfig.Builder labelSelector(LabelSelector labelSelector)
Sets the value ofPodSelectorConfig.getLabelSelector()- Parameters:
labelSelector- A selector to select pods by labels. This parameter is required.- Returns:
this
-
namespaces
@Stability(Stable) public PodSelectorConfig.Builder namespaces(NamespaceSelectorConfig namespaces)
Sets the value ofPodSelectorConfig.getNamespaces()- Parameters:
namespaces- Configuration for selecting which namepsaces are the pods allowed to be in.- Returns:
this
-
build
@Stability(Stable) public PodSelectorConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PodSelectorConfig>- Returns:
- a new instance of
PodSelectorConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-