Package kubevirt.io
Class V1LabelSelector
java.lang.Object
kubevirt.io.V1LabelSelector
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
date="2019-11-10T14:44:51.030+02:00")
public class V1LabelSelector
extends Object
A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMatchExpressionsItem(V1LabelSelectorRequirement matchExpressionsItem) booleanmatchExpressions is a list of label selector requirements.matchLabels is a map of {key,value} pairs.inthashCode()matchExpressions(List<V1LabelSelectorRequirement> matchExpressions) matchLabels(Object matchLabels) voidsetMatchExpressions(List<V1LabelSelectorRequirement> matchExpressions) voidsetMatchLabels(Object matchLabels) private StringConvert the given object to string with each line indented by 4 spaces (except the first line).toString()
-
Field Details
-
matchExpressions
-
matchLabels
-
-
Constructor Details
-
V1LabelSelector
public V1LabelSelector()
-
-
Method Details
-
matchExpressions
-
addMatchExpressionsItem
-
getMatchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.- Returns:
- matchExpressions
-
setMatchExpressions
-
matchLabels
-
getMatchLabels
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.- Returns:
- matchLabels
-
setMatchLabels
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line).
-