Class V1ScopeSelector
java.lang.Object
io.kubernetes.client.openapi.models.V1ScopeSelector
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1ScopeSelector
extends Object
A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMatchExpressionsItem(V1ScopedResourceSelectorRequirement matchExpressionsItem) booleanstatic V1ScopeSelectorCreate an instance of V1ScopeSelector given an JSON stringA list of scope selector requirements by scope of the resources.inthashCode()matchExpressions(List<V1ScopedResourceSelectorRequirement> matchExpressions) voidsetMatchExpressions(List<V1ScopedResourceSelectorRequirement> matchExpressions) toJson()Convert an instance of V1ScopeSelector to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_MATCH_EXPRESSIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ScopeSelector
public V1ScopeSelector()
-
-
Method Details
-
matchExpressions
-
addMatchExpressionsItem
public V1ScopeSelector addMatchExpressionsItem(V1ScopedResourceSelectorRequirement matchExpressionsItem) -
getMatchExpressions
A list of scope selector requirements by scope of the resources.- Returns:
- matchExpressions
-
setMatchExpressions
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of V1ScopeSelector to an JSON string- Returns:
- JSON string
-