Class V1ScopeSelector
java.lang.Object
io.kubernetes.client.openapi.models.V1ScopeSelector
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[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) boolean
static V1ScopeSelector
Create an instance of V1ScopeSelector given an JSON stringA list of scope selector requirements by scope of the resources.int
hashCode()
matchExpressions
(List<V1ScopedResourceSelectorRequirement> matchExpressions) void
setMatchExpressions
(List<V1ScopedResourceSelectorRequirement> matchExpressions) toJson()
Convert an instance of V1ScopeSelector to an JSON stringtoString()
static void
validateJsonElement
(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
-