Package org.cdk8s.plus23
Class RoleProps.Builder
- java.lang.Object
-
- org.cdk8s.plus23.RoleProps.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RolePropsbuild()Builds the configured instance.RoleProps.Buildermetadata(org.cdk8s.ApiObjectMetadata metadata)Sets the value ofResourceProps.getMetadata()RoleProps.Builderrules(List<? extends RolePolicyRule> rules)Sets the value ofRoleProps.getRules()
-
-
-
Method Detail
-
rules
@Stability(Stable) public RoleProps.Builder rules(List<? extends RolePolicyRule> rules)
Sets the value ofRoleProps.getRules()- Parameters:
rules- A list of rules the role should allow.- Returns:
this
-
metadata
@Stability(Stable) public RoleProps.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 RoleProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RoleProps>- Returns:
- a new instance of
RoleProps - Throws:
NullPointerException- if any required attribute was not provided
-
-