Class V1NodeSelector

java.lang.Object
io.kubernetes.client.openapi.models.V1NodeSelector

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1NodeSelector extends Object
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.
  • Field Details

    • SERIALIZED_NAME_NODE_SELECTOR_TERMS

      public static final String SERIALIZED_NAME_NODE_SELECTOR_TERMS
      See Also:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

      public static HashSet<String> openapiRequiredFields
  • Constructor Details

    • V1NodeSelector

      public V1NodeSelector()
  • Method Details

    • nodeSelectorTerms

      public V1NodeSelector nodeSelectorTerms(List<V1NodeSelectorTerm> nodeSelectorTerms)
    • addNodeSelectorTermsItem

      public V1NodeSelector addNodeSelectorTermsItem(V1NodeSelectorTerm nodeSelectorTermsItem)
    • getNodeSelectorTerms

      @Nonnull public List<V1NodeSelectorTerm> getNodeSelectorTerms()
      Required. A list of node selector terms. The terms are ORed.
      Returns:
      nodeSelectorTerms
    • setNodeSelectorTerms

      public void setNodeSelectorTerms(List<V1NodeSelectorTerm> nodeSelectorTerms)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1NodeSelector
    • fromJson

      public static V1NodeSelector fromJson(String jsonString) throws IOException
      Create an instance of V1NodeSelector given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1NodeSelector
      Throws:
      IOException - if the JSON string is invalid with respect to V1NodeSelector
    • toJson

      public String toJson()
      Convert an instance of V1NodeSelector to an JSON string
      Returns:
      JSON string