Package org.cdk8s.plus23.k8s
Class KubeSelfSubjectAccessReviewProps.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.KubeSelfSubjectAccessReviewProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeSelfSubjectAccessReviewProps>
- Enclosing interface:
- KubeSelfSubjectAccessReviewProps
@Stability(Stable) public static final class KubeSelfSubjectAccessReviewProps.Builder extends Object implements software.amazon.jsii.Builder<KubeSelfSubjectAccessReviewProps>
A builder forKubeSelfSubjectAccessReviewProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeSelfSubjectAccessReviewProps
build()
Builds the configured instance.KubeSelfSubjectAccessReviewProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeSelfSubjectAccessReviewProps.getMetadata()
KubeSelfSubjectAccessReviewProps.Builder
spec(SelfSubjectAccessReviewSpec spec)
Sets the value ofKubeSelfSubjectAccessReviewProps.getSpec()
-
-
-
Method Detail
-
spec
@Stability(Stable) public KubeSelfSubjectAccessReviewProps.Builder spec(SelfSubjectAccessReviewSpec spec)
Sets the value ofKubeSelfSubjectAccessReviewProps.getSpec()
- Parameters:
spec
- Spec holds information about the request being evaluated. This parameter is required. user and groups must be empty- Returns:
this
-
metadata
@Stability(Stable) public KubeSelfSubjectAccessReviewProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeSelfSubjectAccessReviewProps.getMetadata()
- Parameters:
metadata
- Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
this
-
build
@Stability(Stable) public KubeSelfSubjectAccessReviewProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeSelfSubjectAccessReviewProps>
- Returns:
- a new instance of
KubeSelfSubjectAccessReviewProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-