Package org.cdk8s.plus24.k8s
Class KubeSelfSubjectAccessReview.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeSelfSubjectAccessReview.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeSelfSubjectAccessReview>
- Enclosing class:
- KubeSelfSubjectAccessReview
@Stability(Stable) public static final class KubeSelfSubjectAccessReview.Builder extends Object implements software.amazon.jsii.Builder<KubeSelfSubjectAccessReview>
A fluent builder forKubeSelfSubjectAccessReview
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeSelfSubjectAccessReview
build()
static KubeSelfSubjectAccessReview.Builder
create(software.constructs.Construct scope, String id)
KubeSelfSubjectAccessReview.Builder
metadata(ObjectMeta metadata)
Standard list metadata.KubeSelfSubjectAccessReview.Builder
spec(SelfSubjectAccessReviewSpec spec)
Spec holds information about the request being evaluated.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeSelfSubjectAccessReview.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope
- the scope in which to define this object. This parameter is required.id
- a scope-local name for the object. This parameter is required.- Returns:
- a new instance of
KubeSelfSubjectAccessReview.Builder
.
-
spec
@Stability(Stable) public KubeSelfSubjectAccessReview.Builder spec(SelfSubjectAccessReviewSpec spec)
Spec holds information about the request being evaluated.user and groups must be empty
- Parameters:
spec
- Spec holds information about the request being evaluated. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public KubeSelfSubjectAccessReview.Builder metadata(ObjectMeta metadata)
Standard list metadata.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- Parameters:
metadata
- Standard list metadata. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeSelfSubjectAccessReview build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeSelfSubjectAccessReview>
-
-