Package net.stickycode.kuuty.model.v18
Class IoK8sApiCoreV1NodeSelectorRequirement
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiCoreV1NodeSelectorRequirement
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiCoreV1NodeSelectorRequirement extends Object
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_KEYstatic StringJSON_PROPERTY_OPERATORstatic StringJSON_PROPERTY_VALUES
-
Constructor Summary
Constructors Constructor Description IoK8sApiCoreV1NodeSelectorRequirement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IoK8sApiCoreV1NodeSelectorRequirementaddValuesItem(String valuesItem)booleanequals(Object o)StringgetKey()The label key that the selector applies to.StringgetOperator()Represents a key's relationship to a set of values.List<String>getValues()An array of string values.inthashCode()IoK8sApiCoreV1NodeSelectorRequirementkey(String key)IoK8sApiCoreV1NodeSelectorRequirementoperator(String operator)voidsetKey(String key)voidsetOperator(String operator)voidsetValues(List<String> values)StringtoString()IoK8sApiCoreV1NodeSelectorRequirementvalues(List<String> values)
-
-
-
Field Detail
-
JSON_PROPERTY_KEY
public static final String JSON_PROPERTY_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OPERATOR
public static final String JSON_PROPERTY_OPERATOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUES
public static final String JSON_PROPERTY_VALUES
- See Also:
- Constant Field Values
-
-
Method Detail
-
key
public IoK8sApiCoreV1NodeSelectorRequirement key(String key)
-
getKey
public String getKey()
The label key that the selector applies to.- Returns:
- key
-
setKey
public void setKey(String key)
-
operator
public IoK8sApiCoreV1NodeSelectorRequirement operator(String operator)
-
getOperator
public String getOperator()
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.- Returns:
- operator
-
setOperator
public void setOperator(String operator)
-
values
public IoK8sApiCoreV1NodeSelectorRequirement values(List<String> values)
-
addValuesItem
public IoK8sApiCoreV1NodeSelectorRequirement addValuesItem(String valuesItem)
-
getValues
@Nullable 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.- Returns:
- values
-
-