Package org.cdk8s.plus23
Class RolePolicyRule.Builder
- java.lang.Object
-
- org.cdk8s.plus23.RolePolicyRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<RolePolicyRule>
- Enclosing interface:
- RolePolicyRule
@Stability(Stable) public static final class RolePolicyRule.Builder extends Object implements software.amazon.jsii.Builder<RolePolicyRule>
A builder forRolePolicyRule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RolePolicyRulebuild()Builds the configured instance.RolePolicyRule.Builderresources(List<? extends IApiResource> resources)Sets the value ofRolePolicyRule.getResources()RolePolicyRule.Builderverbs(List<String> verbs)Sets the value ofRolePolicyRule.getVerbs()
-
-
-
Method Detail
-
resources
@Stability(Stable) public RolePolicyRule.Builder resources(List<? extends IApiResource> resources)
Sets the value ofRolePolicyRule.getResources()- Parameters:
resources- Resources this rule applies to. This parameter is required.- Returns:
this
-
verbs
@Stability(Stable) public RolePolicyRule.Builder verbs(List<String> verbs)
Sets the value ofRolePolicyRule.getVerbs()- Parameters:
verbs- Verbs to allow. This parameter is required. (e.g ['get', 'watch'])- Returns:
this
-
build
@Stability(Stable) public RolePolicyRule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RolePolicyRule>- Returns:
- a new instance of
RolePolicyRule - Throws:
NullPointerException- if any required attribute was not provided
-
-