Package org.cdk8s.plus25.k8s
Class SeLinuxOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.SeLinuxOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SeLinuxOptions>
- Enclosing interface:
- SeLinuxOptions
@Stability(Stable) public static final class SeLinuxOptions.Builder extends Object implements software.amazon.jsii.Builder<SeLinuxOptions>
A builder forSeLinuxOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SeLinuxOptionsbuild()Builds the configured instance.SeLinuxOptions.Builderlevel(String level)Sets the value ofSeLinuxOptions.getLevel()SeLinuxOptions.Builderrole(String role)Sets the value ofSeLinuxOptions.getRole()SeLinuxOptions.Buildertype(String type)Sets the value ofSeLinuxOptions.getType()SeLinuxOptions.Builderuser(String user)Sets the value ofSeLinuxOptions.getUser()
-
-
-
Method Detail
-
level
@Stability(Stable) public SeLinuxOptions.Builder level(String level)
Sets the value ofSeLinuxOptions.getLevel()- Parameters:
level- Level is SELinux level label that applies to the container.- Returns:
this
-
role
@Stability(Stable) public SeLinuxOptions.Builder role(String role)
Sets the value ofSeLinuxOptions.getRole()- Parameters:
role- Role is a SELinux role label that applies to the container.- Returns:
this
-
type
@Stability(Stable) public SeLinuxOptions.Builder type(String type)
Sets the value ofSeLinuxOptions.getType()- Parameters:
type- Type is a SELinux type label that applies to the container.- Returns:
this
-
user
@Stability(Stable) public SeLinuxOptions.Builder user(String user)
Sets the value ofSeLinuxOptions.getUser()- Parameters:
user- User is a SELinux user label that applies to the container.- Returns:
this
-
build
@Stability(Stable) public SeLinuxOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SeLinuxOptions>- Returns:
- a new instance of
SeLinuxOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-