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