Package io.fabric8.kubernetes.api.model
Class LabelSelectorRequirement
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.LabelSelectorRequirement
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<LabelSelectorRequirementBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class LabelSelectorRequirement extends Object implements io.fabric8.kubernetes.api.builder.Editable<LabelSelectorRequirementBuilder>, KubernetesResource
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LabelSelectorRequirement()No args constructor for use in serializationLabelSelectorRequirement(String key, String operator, List<String> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LabelSelectorRequirementBuilderedit()Map<String,Object>getAdditionalProperties()StringgetKey()key is the label key that the selector applies to.StringgetOperator()operator represents a key's relationship to a set of values.List<String>getValues()values is an array of string values.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetKey(String key)key is the label key that the selector applies to.voidsetOperator(String operator)operator represents a key's relationship to a set of values.voidsetValues(List<String> values)values is an array of string values.LabelSelectorRequirementBuildertoBuilder()
-
-
-
Method Detail
-
getKey
public String getKey()
key is the label key that the selector applies to.
-
setKey
public void setKey(String key)
key is the label key that the selector applies to.
-
getOperator
public String getOperator()
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
-
setOperator
public void setOperator(String operator)
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
-
getValues
public 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.
-
setValues
public void setValues(List<String> values)
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.
-
edit
public LabelSelectorRequirementBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<LabelSelectorRequirementBuilder>
-
toBuilder
public LabelSelectorRequirementBuilder toBuilder()
-
-