Package kubevirt.io
Class V1LabelSelectorRequirement
java.lang.Object
kubevirt.io.V1LabelSelectorRequirement
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
date="2019-11-10T14:44:51.030+02:00")
public class V1LabelSelectorRequirement
extends Object
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValuesItem(String valuesItem) booleangetKey()key is the label key that the selector applies to.operator represents a key's relationship to a set of values.values is an array of string values.inthashCode()voidvoidsetOperator(String operator) voidprivate StringConvert the given object to string with each line indented by 4 spaces (except the first line).toString()
-
Field Details
-
key
-
operator
-
values
-
-
Constructor Details
-
V1LabelSelectorRequirement
public V1LabelSelectorRequirement()
-
-
Method Details
-
key
-
getKey
key is the label key that the selector applies to.- Returns:
- key
-
setKey
-
operator
-
getOperator
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.- Returns:
- operator
-
setOperator
-
values
-
addValuesItem
-
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.- Returns:
- values
-
setValues
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line).
-