Class NodeSelector
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.NodeSelector
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class NodeSelector extends java.lang.Object implements com.marcnuri.yakc.model.Model
A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeSelector.Builder
-
Constructor Summary
Constructors Constructor Description NodeSelector()
NodeSelector(@NonNull java.util.List<NodeSelectorTerm> nodeSelectorTerms)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NodeSelector.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.util.List<NodeSelectorTerm>
getNodeSelectorTerms()
Required.int
hashCode()
void
setNodeSelectorTerms(@NonNull java.util.List<NodeSelectorTerm> nodeSelectorTerms)
Required.NodeSelector.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
NodeSelector
public NodeSelector(@NonNull @NonNull java.util.List<NodeSelectorTerm> nodeSelectorTerms)
-
NodeSelector
public NodeSelector()
-
-
Method Detail
-
builder
public static NodeSelector.Builder builder()
-
toBuilder
public NodeSelector.Builder toBuilder()
-
getNodeSelectorTerms
@NonNull public @NonNull java.util.List<NodeSelectorTerm> getNodeSelectorTerms()
Required. A list of node selector terms. The terms are ORed.
-
setNodeSelectorTerms
public void setNodeSelectorTerms(@NonNull @NonNull java.util.List<NodeSelectorTerm> nodeSelectorTerms)
Required. A list of node selector terms. The terms are ORed.
-
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
-
-