Class V1ScopeSelector
java.lang.Object
io.kubernetes.client.openapi.models.V1ScopeSelector
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
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
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
validateJsonObject
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 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
-