Package org.cdk8s.plus24.k8s
Class KubeClusterRole.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeClusterRole.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeClusterRole>
- Enclosing class:
- KubeClusterRole
@Stability(Stable) public static final class KubeClusterRole.Builder extends Object implements software.amazon.jsii.Builder<KubeClusterRole>
A fluent builder forKubeClusterRole
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeClusterRole.Builder
aggregationRule(AggregationRule aggregationRule)
AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.KubeClusterRole
build()
static KubeClusterRole.Builder
create(software.constructs.Construct scope, String id)
KubeClusterRole.Builder
metadata(ObjectMeta metadata)
Standard object's metadata.KubeClusterRole.Builder
rules(List<? extends PolicyRule> rules)
Rules holds all the PolicyRules for this ClusterRole.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeClusterRole.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope
- the scope in which to define this object. This parameter is required.id
- a scope-local name for the object. This parameter is required.- Returns:
- a new instance of
KubeClusterRole.Builder
.
-
aggregationRule
@Stability(Stable) public KubeClusterRole.Builder aggregationRule(AggregationRule aggregationRule)
AggregationRule is an optional field that describes how to build the Rules for this ClusterRole.If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.
- Parameters:
aggregationRule
- AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public KubeClusterRole.Builder metadata(ObjectMeta metadata)
Standard object's metadata.- Parameters:
metadata
- Standard object's metadata. This parameter is required.- Returns:
this
-
rules
@Stability(Stable) public KubeClusterRole.Builder rules(List<? extends PolicyRule> rules)
Rules holds all the PolicyRules for this ClusterRole.- Parameters:
rules
- Rules holds all the PolicyRules for this ClusterRole. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeClusterRole build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeClusterRole>
-
-