Package org.cdk8s.plus24.k8s
Interface LabelSelectorRequirement
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LabelSelectorRequirement.Jsii$Proxy
@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-10T02:31:41.776Z") @Stability(Stable) public interface LabelSelectorRequirement extends software.amazon.jsii.JsiiSerializable
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
LabelSelectorRequirement.Builder
A builder forLabelSelectorRequirement
static class
LabelSelectorRequirement.Jsii$Proxy
An implementation forLabelSelectorRequirement
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static LabelSelectorRequirement.Builder
builder()
String
getKey()
key is the label key that the selector applies to.String
getOperator()
operator represents a key's relationship to a set of values.default List<String>
getValues()
values is an array of string values.
-
-
-
Method Detail
-
getKey
@Stability(Stable) @NotNull String getKey()
key is the label key that the selector applies to.
-
getOperator
@Stability(Stable) @NotNull String getOperator()
operator represents a key's relationship to a set of values.Valid operators are In, NotIn, Exists and DoesNotExist.
-
getValues
@Stability(Stable) @Nullable default List<String> getValues()
values is an array of string values.If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
-
builder
@Stability(Stable) static LabelSelectorRequirement.Builder builder()
- Returns:
- a
LabelSelectorRequirement.Builder
ofLabelSelectorRequirement
-
-