Package io.fabric8.kubernetes.api.model
Class NodeSelectorRequirement
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.NodeSelectorRequirement
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NodeSelectorRequirementBuilder>
,KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NodeSelectorRequirement extends Object implements io.fabric8.kubernetes.api.builder.Editable<NodeSelectorRequirementBuilder>, KubernetesResource
A node 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 NodeSelectorRequirement()
No args constructor for use in serializationNodeSelectorRequirement(String key, String operator, List<String> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeSelectorRequirementBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getKey()
The label key that the selector applies to.String
getOperator()
Represents a key's relationship to a set of values.List<String>
getValues()
An array of string values.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setKey(String key)
The label key that the selector applies to.void
setOperator(String operator)
Represents a key's relationship to a set of values.void
setValues(List<String> values)
An array of string values.NodeSelectorRequirementBuilder
toBuilder()
-
-
-
Method Detail
-
getKey
public String getKey()
The label key that the selector applies to.
-
setKey
public void setKey(String key)
The label key that the selector applies to.
-
getOperator
public String getOperator()
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
-
setOperator
public void setOperator(String operator)
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
-
getValues
public List<String> getValues()
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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
-
setValues
public void setValues(List<String> values)
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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
-
edit
public NodeSelectorRequirementBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<NodeSelectorRequirementBuilder>
-
toBuilder
public NodeSelectorRequirementBuilder toBuilder()
-
-