Package org.cdk8s.plus24
Class ClusterRolePolicyRule.Builder
- java.lang.Object
-
- org.cdk8s.plus24.ClusterRolePolicyRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterRolePolicyRule>
- Enclosing interface:
- ClusterRolePolicyRule
@Stability(Stable) public static final class ClusterRolePolicyRule.Builder extends Object implements software.amazon.jsii.Builder<ClusterRolePolicyRule>
A builder forClusterRolePolicyRule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterRolePolicyRule
build()
Builds the configured instance.ClusterRolePolicyRule.Builder
endpoints(List<? extends IApiEndpoint> endpoints)
Sets the value ofClusterRolePolicyRule.getEndpoints()
ClusterRolePolicyRule.Builder
verbs(List<String> verbs)
Sets the value ofClusterRolePolicyRule.getVerbs()
-
-
-
Method Detail
-
endpoints
@Stability(Stable) public ClusterRolePolicyRule.Builder endpoints(List<? extends IApiEndpoint> endpoints)
Sets the value ofClusterRolePolicyRule.getEndpoints()
- Parameters:
endpoints
- Endpoints this rule applies to. This parameter is required. Can be either api resources or non api resources.- Returns:
this
-
verbs
@Stability(Stable) public ClusterRolePolicyRule.Builder verbs(List<String> verbs)
Sets the value ofClusterRolePolicyRule.getVerbs()
- Parameters:
verbs
- Verbs to allow. This parameter is required. (e.g ['get', 'watch'])- Returns:
this
-
build
@Stability(Stable) public ClusterRolePolicyRule build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ClusterRolePolicyRule>
- Returns:
- a new instance of
ClusterRolePolicyRule
- Throws:
NullPointerException
- if any required attribute was not provided
-
-