Package org.cdk8s.plus24.k8s
Class SupplementalGroupsStrategyOptionsV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.SupplementalGroupsStrategyOptionsV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SupplementalGroupsStrategyOptionsV1Beta1>
- Enclosing interface:
- SupplementalGroupsStrategyOptionsV1Beta1
@Stability(Stable) public static final class SupplementalGroupsStrategyOptionsV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<SupplementalGroupsStrategyOptionsV1Beta1>
A builder forSupplementalGroupsStrategyOptionsV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SupplementalGroupsStrategyOptionsV1Beta1
build()
Builds the configured instance.SupplementalGroupsStrategyOptionsV1Beta1.Builder
ranges(List<? extends IdRangeV1Beta1> ranges)
Sets the value ofSupplementalGroupsStrategyOptionsV1Beta1.getRanges()
SupplementalGroupsStrategyOptionsV1Beta1.Builder
rule(String rule)
Sets the value ofSupplementalGroupsStrategyOptionsV1Beta1.getRule()
-
-
-
Method Detail
-
ranges
@Stability(Stable) public SupplementalGroupsStrategyOptionsV1Beta1.Builder ranges(List<? extends IdRangeV1Beta1> ranges)
Sets the value ofSupplementalGroupsStrategyOptionsV1Beta1.getRanges()
- Parameters:
ranges
- ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs.- Returns:
this
-
rule
@Stability(Stable) public SupplementalGroupsStrategyOptionsV1Beta1.Builder rule(String rule)
Sets the value ofSupplementalGroupsStrategyOptionsV1Beta1.getRule()
- Parameters:
rule
- rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.- Returns:
this
-
build
@Stability(Stable) public SupplementalGroupsStrategyOptionsV1Beta1 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SupplementalGroupsStrategyOptionsV1Beta1>
- Returns:
- a new instance of
SupplementalGroupsStrategyOptionsV1Beta1
- Throws:
NullPointerException
- if any required attribute was not provided
-
-