Class SubjectAccessReviewStatus.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.authorization.v1beta1.SubjectAccessReviewStatus.Builder
-
- Enclosing class:
- SubjectAccessReviewStatus
public static class SubjectAccessReviewStatus.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubjectAccessReviewStatus.Builder
allowed(@NonNull java.lang.Boolean allowed)
Allowed is required.SubjectAccessReviewStatus
build()
SubjectAccessReviewStatus.Builder
denied(java.lang.Boolean denied)
Denied is optional.SubjectAccessReviewStatus.Builder
evaluationError(java.lang.String evaluationError)
EvaluationError is an indication that some error occurred during the authorization check.SubjectAccessReviewStatus.Builder
reason(java.lang.String reason)
Reason is optional.java.lang.String
toString()
-
-
-
Method Detail
-
allowed
public SubjectAccessReviewStatus.Builder allowed(@NonNull @NonNull java.lang.Boolean allowed)
Allowed is required. True if the action would be allowed, false otherwise.- Returns:
this
.
-
denied
public SubjectAccessReviewStatus.Builder denied(java.lang.Boolean denied)
Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.- Returns:
this
.
-
evaluationError
public SubjectAccessReviewStatus.Builder evaluationError(java.lang.String evaluationError)
EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.- Returns:
this
.
-
reason
public SubjectAccessReviewStatus.Builder reason(java.lang.String reason)
Reason is optional. It indicates why a request was allowed or denied.- Returns:
this
.
-
build
public SubjectAccessReviewStatus build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-