Package org.cdk8s.plus20
Class RoleBindingProps.Builder
- java.lang.Object
-
- org.cdk8s.plus20.RoleBindingProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<RoleBindingProps>
- Enclosing interface:
- RoleBindingProps
@Stability(Stable) public static final class RoleBindingProps.Builder extends Object implements software.amazon.jsii.Builder<RoleBindingProps>
A builder forRoleBindingProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoleBindingPropsbuild()Builds the configured instance.RoleBindingProps.Buildermetadata(org.cdk8s.ApiObjectMetadata metadata)Sets the value ofResourceProps.getMetadata()RoleBindingProps.Builderrole(IRole role)Sets the value ofRoleBindingProps.getRole()
-
-
-
Method Detail
-
role
@Stability(Stable) public RoleBindingProps.Builder role(IRole role)
Sets the value ofRoleBindingProps.getRole()- Parameters:
role- The role to bind to. This parameter is required. A RoleBinding can reference a Role or a ClusterRole.- Returns:
this
-
metadata
@Stability(Stable) public RoleBindingProps.Builder metadata(org.cdk8s.ApiObjectMetadata metadata)
Sets the value ofResourceProps.getMetadata()- Parameters:
metadata- Metadata that all persisted resources must have, which includes all objects users must create.- Returns:
this
-
build
@Stability(Stable) public RoleBindingProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RoleBindingProps>- Returns:
- a new instance of
RoleBindingProps - Throws:
NullPointerException- if any required attribute was not provided
-
-