Package org.cdk8s.plus24.k8s
Class RuntimeClassStrategyOptionsV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.RuntimeClassStrategyOptionsV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<RuntimeClassStrategyOptionsV1Beta1>
- Enclosing interface:
- RuntimeClassStrategyOptionsV1Beta1
@Stability(Stable) public static final class RuntimeClassStrategyOptionsV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<RuntimeClassStrategyOptionsV1Beta1>
A builder forRuntimeClassStrategyOptionsV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuntimeClassStrategyOptionsV1Beta1.Builder
allowedRuntimeClassNames(List<String> allowedRuntimeClassNames)
Sets the value ofRuntimeClassStrategyOptionsV1Beta1.getAllowedRuntimeClassNames()
RuntimeClassStrategyOptionsV1Beta1
build()
Builds the configured instance.RuntimeClassStrategyOptionsV1Beta1.Builder
defaultRuntimeClassName(String defaultRuntimeClassName)
Sets the value ofRuntimeClassStrategyOptionsV1Beta1.getDefaultRuntimeClassName()
-
-
-
Method Detail
-
allowedRuntimeClassNames
@Stability(Stable) public RuntimeClassStrategyOptionsV1Beta1.Builder allowedRuntimeClassNames(List<String> allowedRuntimeClassNames)
Sets the value ofRuntimeClassStrategyOptionsV1Beta1.getAllowedRuntimeClassNames()
- Parameters:
allowedRuntimeClassNames
- allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod. This parameter is required. A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.- Returns:
this
-
defaultRuntimeClassName
@Stability(Stable) public RuntimeClassStrategyOptionsV1Beta1.Builder defaultRuntimeClassName(String defaultRuntimeClassName)
Sets the value ofRuntimeClassStrategyOptionsV1Beta1.getDefaultRuntimeClassName()
- Parameters:
defaultRuntimeClassName
- defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.- Returns:
this
-
build
@Stability(Stable) public RuntimeClassStrategyOptionsV1Beta1 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RuntimeClassStrategyOptionsV1Beta1>
- Returns:
- a new instance of
RuntimeClassStrategyOptionsV1Beta1
- Throws:
NullPointerException
- if any required attribute was not provided
-
-