Package org.cdk8s.plus24.k8s
Class KubeRuntimeClassV1Beta1Props.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeRuntimeClassV1Beta1Props.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeRuntimeClassV1Beta1Props>
- Enclosing interface:
- KubeRuntimeClassV1Beta1Props
@Stability(Stable) public static final class KubeRuntimeClassV1Beta1Props.Builder extends Object implements software.amazon.jsii.Builder<KubeRuntimeClassV1Beta1Props>
A builder forKubeRuntimeClassV1Beta1Props
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeRuntimeClassV1Beta1Props
build()
Builds the configured instance.KubeRuntimeClassV1Beta1Props.Builder
handler(String handler)
Sets the value ofKubeRuntimeClassV1Beta1Props.getHandler()
KubeRuntimeClassV1Beta1Props.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeRuntimeClassV1Beta1Props.getMetadata()
KubeRuntimeClassV1Beta1Props.Builder
overhead(OverheadV1Beta1 overhead)
Sets the value ofKubeRuntimeClassV1Beta1Props.getOverhead()
KubeRuntimeClassV1Beta1Props.Builder
scheduling(SchedulingV1Beta1 scheduling)
Sets the value ofKubeRuntimeClassV1Beta1Props.getScheduling()
-
-
-
Method Detail
-
handler
@Stability(Stable) public KubeRuntimeClassV1Beta1Props.Builder handler(String handler)
Sets the value ofKubeRuntimeClassV1Beta1Props.getHandler()
- Parameters:
handler
- Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. This parameter is required. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.- Returns:
this
-
metadata
@Stability(Stable) public KubeRuntimeClassV1Beta1Props.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeRuntimeClassV1Beta1Props.getMetadata()
- Parameters:
metadata
- More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.- Returns:
this
-
overhead
@Stability(Stable) public KubeRuntimeClassV1Beta1Props.Builder overhead(OverheadV1Beta1 overhead)
Sets the value ofKubeRuntimeClassV1Beta1Props.getOverhead()
- Parameters:
overhead
- Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md- Returns:
this
-
scheduling
@Stability(Stable) public KubeRuntimeClassV1Beta1Props.Builder scheduling(SchedulingV1Beta1 scheduling)
Sets the value ofKubeRuntimeClassV1Beta1Props.getScheduling()
- Parameters:
scheduling
- Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.- Returns:
this
-
build
@Stability(Stable) public KubeRuntimeClassV1Beta1Props build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeRuntimeClassV1Beta1Props>
- Returns:
- a new instance of
KubeRuntimeClassV1Beta1Props
- Throws:
NullPointerException
- if any required attribute was not provided
-
-