Package org.cdk8s.plus24.k8s
Class KubeClusterRoleProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeClusterRoleProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeClusterRoleProps>
- Enclosing interface:
- KubeClusterRoleProps
@Stability(Stable) public static final class KubeClusterRoleProps.Builder extends Object implements software.amazon.jsii.Builder<KubeClusterRoleProps>
A builder forKubeClusterRoleProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeClusterRoleProps.Builder
aggregationRule(AggregationRule aggregationRule)
Sets the value ofKubeClusterRoleProps.getAggregationRule()
KubeClusterRoleProps
build()
Builds the configured instance.KubeClusterRoleProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeClusterRoleProps.getMetadata()
KubeClusterRoleProps.Builder
rules(List<? extends PolicyRule> rules)
Sets the value ofKubeClusterRoleProps.getRules()
-
-
-
Method Detail
-
aggregationRule
@Stability(Stable) public KubeClusterRoleProps.Builder aggregationRule(AggregationRule aggregationRule)
Sets the value ofKubeClusterRoleProps.getAggregationRule()
- Parameters:
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.- Returns:
this
-
metadata
@Stability(Stable) public KubeClusterRoleProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeClusterRoleProps.getMetadata()
- Parameters:
metadata
- Standard object's metadata.- Returns:
this
-
rules
@Stability(Stable) public KubeClusterRoleProps.Builder rules(List<? extends PolicyRule> rules)
Sets the value ofKubeClusterRoleProps.getRules()
- Parameters:
rules
- Rules holds all the PolicyRules for this ClusterRole.- Returns:
this
-
build
@Stability(Stable) public KubeClusterRoleProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeClusterRoleProps>
- Returns:
- a new instance of
KubeClusterRoleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-