Class V1ScopeSelector

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1ScopeSelector extends Object
A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.
  • Field Details

    • SERIALIZED_NAME_MATCH_EXPRESSIONS

      public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS
      See Also:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

      public static HashSet<String> openapiRequiredFields
  • Constructor Details

    • V1ScopeSelector

      public V1ScopeSelector()
  • Method Details

    • matchExpressions

      public V1ScopeSelector matchExpressions(@Nullable List<V1ScopedResourceSelectorRequirement> matchExpressions)
    • addMatchExpressionsItem

      public V1ScopeSelector addMatchExpressionsItem(V1ScopedResourceSelectorRequirement matchExpressionsItem)
    • getMatchExpressions

      @Nullable public List<V1ScopedResourceSelectorRequirement> getMatchExpressions()
      A list of scope selector requirements by scope of the resources.
      Returns:
      matchExpressions
    • setMatchExpressions

      public void setMatchExpressions(@Nullable List<V1ScopedResourceSelectorRequirement> matchExpressions)
    • 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 V1ScopeSelector
    • fromJson

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

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