All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec Maven / Gradle / Ivy

package io.k8s.api.authorization.v1;

/**
 * SelfSubjectAccessReviewSpec is a description of the access request.  Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set
 */
public class SelfSubjectAccessReviewSpec {
  public NonResourceAttributes nonResourceAttributes;

  public ResourceAttributes resourceAttributes;

  public SelfSubjectAccessReviewSpec nonResourceAttributes(
      NonResourceAttributes nonResourceAttributes) {
    this.nonResourceAttributes = nonResourceAttributes;
    return this;
  }

  public SelfSubjectAccessReviewSpec resourceAttributes(ResourceAttributes resourceAttributes) {
    this.resourceAttributes = resourceAttributes;
    return this;
  }

  public static SelfSubjectAccessReviewSpec selfSubjectAccessReviewSpec() {
    return new SelfSubjectAccessReviewSpec();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy