LabelSelectorOperator Class

public final class LabelSelectorOperator
extends ExpandableStringEnum<LabelSelectorOperator>

operator represents a Kubernetes label selector requirement's relationship to a set of values.

Field Summary

Modifier and Type Field and Description
static final LabelSelectorOperator DOES_NOT_EXIST

The label key must not exist.

static final LabelSelectorOperator EXISTS

The label key must exist, regardless of its value.

static final LabelSelectorOperator IN

The label value must be in the supplied set of values.

static final LabelSelectorOperator NOT_IN

The label value must not be in the supplied set of values.

Constructor Summary

Constructor Description
LabelSelectorOperator()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LabelSelectorOperator value.

Method Summary

Modifier and Type Method and Description
static LabelSelectorOperator fromString(String name)

Creates or finds a LabelSelectorOperator from its string representation.

static Collection<LabelSelectorOperator> values()

Gets known LabelSelectorOperator values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

DOES_NOT_EXIST

public static final LabelSelectorOperator DOES_NOT_EXIST

The label key must not exist.

EXISTS

public static final LabelSelectorOperator EXISTS

The label key must exist, regardless of its value.

IN

public static final LabelSelectorOperator IN

The label value must be in the supplied set of values.

NOT_IN

public static final LabelSelectorOperator NOT_IN

The label value must not be in the supplied set of values.

Constructor Details

LabelSelectorOperator

@Deprecated
public LabelSelectorOperator()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of LabelSelectorOperator value.

Method Details

fromString

public static LabelSelectorOperator fromString(String name)

Creates or finds a LabelSelectorOperator from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding LabelSelectorOperator.

values

public static Collection<LabelSelectorOperator> values()

Gets known LabelSelectorOperator values.

Returns:

known LabelSelectorOperator values.

Applies to