Package org.cdk8s.plus24
Class ClusterRoleBindingProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.ClusterRoleBindingProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterRoleBindingProps>
- Enclosing interface:
- ClusterRoleBindingProps
@Stability(Stable) public static final class ClusterRoleBindingProps.Builder extends Object implements software.amazon.jsii.Builder<ClusterRoleBindingProps>
A builder forClusterRoleBindingProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterRoleBindingProps
build()
Builds the configured instance.ClusterRoleBindingProps.Builder
metadata(org.cdk8s.ApiObjectMetadata metadata)
Sets the value ofResourceProps.getMetadata()
ClusterRoleBindingProps.Builder
role(IClusterRole role)
Sets the value ofClusterRoleBindingProps.getRole()
-
-
-
Method Detail
-
role
@Stability(Stable) public ClusterRoleBindingProps.Builder role(IClusterRole role)
Sets the value ofClusterRoleBindingProps.getRole()
- Parameters:
role
- The role to bind to. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public ClusterRoleBindingProps.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 ClusterRoleBindingProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ClusterRoleBindingProps>
- Returns:
- a new instance of
ClusterRoleBindingProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-