Package io.fabric8.kubernetes.api.model
Class FieldSelectorRequirement
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.FieldSelectorRequirement
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<FieldSelectorRequirementBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class FieldSelectorRequirement extends Object implements io.fabric8.kubernetes.api.builder.Editable<FieldSelectorRequirementBuilder>, KubernetesResource
FieldSelectorRequirement 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 FieldSelectorRequirement()No args constructor for use in serializationFieldSelectorRequirement(String key, String operator, List<String> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldSelectorRequirementBuilderedit()Map<String,Object>getAdditionalProperties()StringgetKey()key is the field selector key that the requirement 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 field selector key that the requirement 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.FieldSelectorRequirementBuildertoBuilder()
-
-
-
Method Detail
-
getKey
public String getKey()
key is the field selector key that the requirement applies to.
-
setKey
public void setKey(String key)
key is the field selector key that the requirement applies to.
-
getOperator
public String getOperator()
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.
-
setOperator
public void setOperator(String operator)
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.
-
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.
-
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.
-
edit
public FieldSelectorRequirementBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<FieldSelectorRequirementBuilder>
-
toBuilder
public FieldSelectorRequirementBuilder toBuilder()
-
-