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
  • Field Details

    • SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES

      public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES
      See Also:
    • SERIALIZED_NAME_RESOURCE_ATTRIBUTES

      public static final String SERIALIZED_NAME_RESOURCE_ATTRIBUTES
      See Also:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

      public static HashSet<String> openapiRequiredFields
  • Constructor Details

    • V1SelfSubjectAccessReviewSpec

      public V1SelfSubjectAccessReviewSpec()
  • Method Details

    • nonResourceAttributes

      public V1SelfSubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttributes nonResourceAttributes)
    • getNonResourceAttributes

      @Nullable public V1NonResourceAttributes getNonResourceAttributes()
      Get nonResourceAttributes
      Returns:
      nonResourceAttributes
    • setNonResourceAttributes

      public void setNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes)
    • resourceAttributes

      public V1SelfSubjectAccessReviewSpec resourceAttributes(V1ResourceAttributes resourceAttributes)
    • getResourceAttributes

      @Nullable public V1ResourceAttributes getResourceAttributes()
      Get resourceAttributes
      Returns:
      resourceAttributes
    • setResourceAttributes

      public void setResourceAttributes(V1ResourceAttributes resourceAttributes)
    • 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 V1SelfSubjectAccessReviewSpec
    • fromJson

      public static V1SelfSubjectAccessReviewSpec fromJson(String jsonString) throws IOException
      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

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