Package org.cdk8s.plus25
Class ClusterRoleProps.Builder
- java.lang.Object
-
- org.cdk8s.plus25.ClusterRoleProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterRoleProps>
- Enclosing interface:
- ClusterRoleProps
@Stability(Stable) public static final class ClusterRoleProps.Builder extends Object implements software.amazon.jsii.Builder<ClusterRoleProps>
A builder forClusterRoleProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterRoleProps.BuilderaggregationLabels(Map<String,String> aggregationLabels)Sets the value ofClusterRoleProps.getAggregationLabels()ClusterRolePropsbuild()Builds the configured instance.ClusterRoleProps.Buildermetadata(org.cdk8s.ApiObjectMetadata metadata)Sets the value ofResourceProps.getMetadata()ClusterRoleProps.Builderrules(List<? extends ClusterRolePolicyRule> rules)Sets the value ofClusterRoleProps.getRules()
-
-
-
Method Detail
-
aggregationLabels
@Stability(Stable) public ClusterRoleProps.Builder aggregationLabels(Map<String,String> aggregationLabels)
Sets the value ofClusterRoleProps.getAggregationLabels()- Parameters:
aggregationLabels- Specify labels that should be used to locate ClusterRoles, whose rules will be automatically filled into this ClusterRole's rules.- Returns:
this
-
rules
@Stability(Stable) public ClusterRoleProps.Builder rules(List<? extends ClusterRolePolicyRule> rules)
Sets the value ofClusterRoleProps.getRules()- Parameters:
rules- A list of rules the role should allow.- Returns:
this
-
metadata
@Stability(Stable) public ClusterRoleProps.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 ClusterRoleProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClusterRoleProps>- Returns:
- a new instance of
ClusterRoleProps - Throws:
NullPointerException- if any required attribute was not provided
-
-