Class NodeSelectorRequirement
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.NodeSelectorRequirement
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class NodeSelectorRequirement extends java.lang.Object implements com.marcnuri.yakc.model.Model
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeSelectorRequirement.Builder
-
Constructor Summary
Constructors Constructor Description NodeSelectorRequirement()
NodeSelectorRequirement(@NonNull java.lang.String key, @NonNull java.lang.String operator, java.util.List<java.lang.String> values)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NodeSelectorRequirement.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.String
getKey()
The label key that the selector applies to.@NonNull java.lang.String
getOperator()
Represents a key's relationship to a set of values.java.util.List<java.lang.String>
getValues()
An array of string values.int
hashCode()
void
setKey(@NonNull java.lang.String key)
The label key that the selector applies to.void
setOperator(@NonNull java.lang.String operator)
Represents a key's relationship to a set of values.void
setValues(java.util.List<java.lang.String> values)
An array of string values.NodeSelectorRequirement.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static NodeSelectorRequirement.Builder builder()
-
toBuilder
public NodeSelectorRequirement.Builder toBuilder()
-
getKey
@NonNull public @NonNull java.lang.String getKey()
The label key that the selector applies to.
-
getOperator
@NonNull public @NonNull java.lang.String getOperator()
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
-
getValues
public java.util.List<java.lang.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.
-
setKey
public void setKey(@NonNull @NonNull java.lang.String key)
The label key that the selector applies to.
-
setOperator
public void setOperator(@NonNull @NonNull java.lang.String operator)
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
-
setValues
public void setValues(java.util.List<java.lang.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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-