Class V1TopologySelectorTerm

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-10-04T19:37:38.574271Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1TopologySelectorTerm extends Object
A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.
  • Field Details

    • SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS

      public static final String SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS
      See Also:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

      public static HashSet<String> openapiRequiredFields
  • Constructor Details

    • V1TopologySelectorTerm

      public V1TopologySelectorTerm()
  • Method Details

    • matchLabelExpressions

      public V1TopologySelectorTerm matchLabelExpressions(List<V1TopologySelectorLabelRequirement> matchLabelExpressions)
    • addMatchLabelExpressionsItem

      public V1TopologySelectorTerm addMatchLabelExpressionsItem(V1TopologySelectorLabelRequirement matchLabelExpressionsItem)
    • getMatchLabelExpressions

      @Nullable public List<V1TopologySelectorLabelRequirement> getMatchLabelExpressions()
      A list of topology selector requirements by labels.
      Returns:
      matchLabelExpressions
    • setMatchLabelExpressions

      public void setMatchLabelExpressions(List<V1TopologySelectorLabelRequirement> matchLabelExpressions)
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to V1TopologySelectorTerm
    • fromJson

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

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