Package org.cdk8s.plus24.k8s
Class AggregationRule.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.AggregationRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AggregationRule>
- Enclosing interface:
- AggregationRule
@Stability(Stable) public static final class AggregationRule.Builder extends Object implements software.amazon.jsii.Builder<AggregationRule>
A builder forAggregationRule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregationRule
build()
Builds the configured instance.AggregationRule.Builder
clusterRoleSelectors(List<? extends LabelSelector> clusterRoleSelectors)
Sets the value ofAggregationRule.getClusterRoleSelectors()
-
-
-
Method Detail
-
clusterRoleSelectors
@Stability(Stable) public AggregationRule.Builder clusterRoleSelectors(List<? extends LabelSelector> clusterRoleSelectors)
Sets the value ofAggregationRule.getClusterRoleSelectors()
- Parameters:
clusterRoleSelectors
- ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added- Returns:
this
-
build
@Stability(Stable) public AggregationRule build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AggregationRule>
- Returns:
- a new instance of
AggregationRule
- Throws:
NullPointerException
- if any required attribute was not provided
-
-