Class V1SelfSubjectAccessReviewSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1SelfSubjectAccessReviewSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1SelfSubjectAccessReviewSpec
extends Object
SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Create an instance of V1SelfSubjectAccessReviewSpec given an JSON stringGet nonResourceAttributesGet resourceAttributesint
hashCode()
nonResourceAttributes
(V1NonResourceAttributes nonResourceAttributes) resourceAttributes
(V1ResourceAttributes resourceAttributes) void
setNonResourceAttributes
(V1NonResourceAttributes nonResourceAttributes) void
setResourceAttributes
(V1ResourceAttributes resourceAttributes) toJson()
Convert an instance of V1SelfSubjectAccessReviewSpec 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_NON_RESOURCE_ATTRIBUTES
- See Also:
-
SERIALIZED_NAME_RESOURCE_ATTRIBUTES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1SelfSubjectAccessReviewSpec
public V1SelfSubjectAccessReviewSpec()
-
-
Method Details
-
nonResourceAttributes
public V1SelfSubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) -
getNonResourceAttributes
Get nonResourceAttributes- Returns:
- nonResourceAttributes
-
setNonResourceAttributes
-
resourceAttributes
-
getResourceAttributes
Get resourceAttributes- Returns:
- resourceAttributes
-
setResourceAttributes
-
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 V1SelfSubjectAccessReviewSpec
-
fromJson
Create an instance of V1SelfSubjectAccessReviewSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1SelfSubjectAccessReviewSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1SelfSubjectAccessReviewSpec
-
toJson
Convert an instance of V1SelfSubjectAccessReviewSpec to an JSON string- Returns:
- JSON string
-