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 java.lang.ObjectA 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.
-
-
Constructor Summary
Constructors Constructor Description V1LabelSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V1LabelSelectoraddMatchExpressionsItem(V1LabelSelectorRequirement matchExpressionsItem)booleanequals(java.lang.Object o)java.util.List<V1LabelSelectorRequirement>getMatchExpressions()matchExpressions is a list of label selector requirements.java.lang.ObjectgetMatchLabels()matchLabels is a map of {key,value} pairs.inthashCode()V1LabelSelectormatchExpressions(java.util.List<V1LabelSelectorRequirement> matchExpressions)V1LabelSelectormatchLabels(java.lang.Object matchLabels)voidsetMatchExpressions(java.util.List<V1LabelSelectorRequirement> matchExpressions)voidsetMatchLabels(java.lang.Object matchLabels)java.lang.StringtoString()
-
-
-
Method Detail
-
matchExpressions
public V1LabelSelector matchExpressions(java.util.List<V1LabelSelectorRequirement> matchExpressions)
-
addMatchExpressionsItem
public V1LabelSelector addMatchExpressionsItem(V1LabelSelectorRequirement matchExpressionsItem)
-
getMatchExpressions
public java.util.List<V1LabelSelectorRequirement> getMatchExpressions()
matchExpressions is a list of label selector requirements. The requirements are ANDed.- Returns:
- matchExpressions
-
setMatchExpressions
public void setMatchExpressions(java.util.List<V1LabelSelectorRequirement> matchExpressions)
-
matchLabels
public V1LabelSelector matchLabels(java.lang.Object matchLabels)
-
getMatchLabels
public java.lang.Object 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
public void setMatchLabels(java.lang.Object matchLabels)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-