Package org.cdk8s.plus20
Class LabelSelector
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus20.LabelSelector
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.59.0 (build eb02c92)", date="2022-05-18T23:19:48.630Z") @Stability(Stable) public class LabelSelector extends software.amazon.jsii.JsiiObject
A label selector is a label query over a set of resources.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLabelSelector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedLabelSelector(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LabelSelectordoesNotExist(String key)Creates a `matchExpressions` "DoesNotExist" entry.static LabelSelectorexists(String key)Creates a `matchExpressions` "Exists" entry.BooleangetApplyToTemplate()StringgetKey()LabelSelectorRequirementOperatorgetOperator()List<String>getValues()static LabelSelectorin(String key, List<String> values)Creates a `matchExpressions` "In" entry.static LabelSelectoris(String key, String value)Creates a `matchLabels` entry from the key and value.static LabelSelectoris(String key, String value, Boolean applyToTemplate)Creates a `matchLabels` entry from the key and value.static LabelSelectornotIn(String key, List<String> values)Creates a `matchExpressions` "NotIn" entry.-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Method Detail
-
doesNotExist
@Stability(Stable) @NotNull public static LabelSelector doesNotExist(@NotNull String key)
Creates a `matchExpressions` "DoesNotExist" entry.- Parameters:
key- This parameter is required.
-
exists
@Stability(Stable) @NotNull public static LabelSelector exists(@NotNull String key)
Creates a `matchExpressions` "Exists" entry.- Parameters:
key- This parameter is required.
-
in
@Stability(Stable) @NotNull public static LabelSelector in(@NotNull String key, @NotNull List<String> values)
Creates a `matchExpressions` "In" entry.- Parameters:
key- This parameter is required.values- This parameter is required.
-
is
@Stability(Stable) @NotNull public static LabelSelector is(@NotNull String key, @NotNull String value, @Nullable Boolean applyToTemplate)
Creates a `matchLabels` entry from the key and value.Use
applyToTemplateto also add this label to the pod metadata of the workload.- Parameters:
key- This parameter is required.value- This parameter is required.applyToTemplate-
-
is
@Stability(Stable) @NotNull public static LabelSelector is(@NotNull String key, @NotNull String value)
Creates a `matchLabels` entry from the key and value.Use
applyToTemplateto also add this label to the pod metadata of the workload.- Parameters:
key- This parameter is required.value- This parameter is required.
-
notIn
@Stability(Stable) @NotNull public static LabelSelector notIn(@NotNull String key, @NotNull List<String> values)
Creates a `matchExpressions` "NotIn" entry.- Parameters:
key- This parameter is required.values- This parameter is required.
-
getApplyToTemplate
@Stability(Stable) @NotNull public Boolean getApplyToTemplate()
-
getKey
@Stability(Stable) @NotNull public String getKey()
-
getOperator
@Stability(Stable) @Nullable public LabelSelectorRequirementOperator getOperator()
-
-