Package org.cdk8s.plus25.k8s
Class KubeRole.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.KubeRole.Builder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeRolebuild()static KubeRole.Buildercreate(software.constructs.Construct scope, String id)KubeRole.Buildermetadata(ObjectMeta metadata)Standard object's metadata.KubeRole.Builderrules(List<? extends PolicyRule> rules)Rules holds all the PolicyRules for this Role.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeRole.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
KubeRole.Builder.
-
metadata
@Stability(Stable) public KubeRole.Builder metadata(ObjectMeta metadata)
Standard object's metadata.- Parameters:
metadata- Standard object's metadata. This parameter is required.- Returns:
this
-
rules
@Stability(Stable) public KubeRole.Builder rules(List<? extends PolicyRule> rules)
Rules holds all the PolicyRules for this Role.- Parameters:
rules- Rules holds all the PolicyRules for this Role. This parameter is required.- Returns:
this
-
-