| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Selector |
build()
Builds the configured instance.
|
Selector.Builder |
labels(Map<String,String> labels)
Sets the value of
Selector.getLabels() |
Selector.Builder |
namespace(String namespace)
Sets the value of
Selector.getNamespace() |
@Stability(value=Experimental) public Selector.Builder namespace(String namespace)
Selector.getNamespace()namespace - The Kubernetes namespace that the selector should match. This parameter is required.
You must specify a namespace for a selector. The selector only matches pods
that are created in this namespace, but you can create multiple selectors
to target multiple namespaces.this@Stability(value=Experimental) public Selector.Builder labels(Map<String,String> labels)
Selector.getLabels()labels - The Kubernetes labels that the selector should match.
A pod must contain
all of the labels that are specified in the selector for it to be
considered a match.this@Stability(value=Experimental) public Selector build()
build in interface software.amazon.jsii.Builder<Selector>SelectorNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.