Package org.cdk8s.plus25.k8s
Class SeccompProfile.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.SeccompProfile.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SeccompProfile>
- Enclosing interface:
- SeccompProfile
@Stability(Stable) public static final class SeccompProfile.Builder extends Object implements software.amazon.jsii.Builder<SeccompProfile>
A builder forSeccompProfile
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SeccompProfilebuild()Builds the configured instance.SeccompProfile.BuilderlocalhostProfile(String localhostProfile)Sets the value ofSeccompProfile.getLocalhostProfile()SeccompProfile.Buildertype(String type)Sets the value ofSeccompProfile.getType()
-
-
-
Method Detail
-
type
@Stability(Stable) public SeccompProfile.Builder type(String type)
Sets the value ofSeccompProfile.getType()- Parameters:
type- type indicates which kind of seccomp profile will be applied. Valid options are:. This parameter is required. Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.- Returns:
this
-
localhostProfile
@Stability(Stable) public SeccompProfile.Builder localhostProfile(String localhostProfile)
Sets the value ofSeccompProfile.getLocalhostProfile()- Parameters:
localhostProfile- localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is "Localhost".- Returns:
this
-
build
@Stability(Stable) public SeccompProfile build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SeccompProfile>- Returns:
- a new instance of
SeccompProfile - Throws:
NullPointerException- if any required attribute was not provided
-
-