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