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