Package org.cdk8s.plus24.k8s
Class SeLinuxStrategyOptionsV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.SeLinuxStrategyOptionsV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SeLinuxStrategyOptionsV1Beta1>
- Enclosing interface:
- SeLinuxStrategyOptionsV1Beta1
@Stability(Stable) public static final class SeLinuxStrategyOptionsV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<SeLinuxStrategyOptionsV1Beta1>
A builder forSeLinuxStrategyOptionsV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SeLinuxStrategyOptionsV1Beta1
build()
Builds the configured instance.SeLinuxStrategyOptionsV1Beta1.Builder
rule(String rule)
Sets the value ofSeLinuxStrategyOptionsV1Beta1.getRule()
SeLinuxStrategyOptionsV1Beta1.Builder
seLinuxOptions(SeLinuxOptions seLinuxOptions)
Sets the value ofSeLinuxStrategyOptionsV1Beta1.getSeLinuxOptions()
-
-
-
Method Detail
-
rule
@Stability(Stable) public SeLinuxStrategyOptionsV1Beta1.Builder rule(String rule)
Sets the value ofSeLinuxStrategyOptionsV1Beta1.getRule()
- Parameters:
rule
- rule is the strategy that will dictate the allowable labels that may be set. This parameter is required.- Returns:
this
-
seLinuxOptions
@Stability(Stable) public SeLinuxStrategyOptionsV1Beta1.Builder seLinuxOptions(SeLinuxOptions seLinuxOptions)
Sets the value ofSeLinuxStrategyOptionsV1Beta1.getSeLinuxOptions()
- Parameters:
seLinuxOptions
- seLinuxOptions required to run as;. required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/- Returns:
this
-
build
@Stability(Stable) public SeLinuxStrategyOptionsV1Beta1 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SeLinuxStrategyOptionsV1Beta1>
- Returns:
- a new instance of
SeLinuxStrategyOptionsV1Beta1
- Throws:
NullPointerException
- if any required attribute was not provided
-
-