Package org.cdk8s.plus23.k8s
Class KubeCsiNodeProps.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.KubeCsiNodeProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeCsiNodeProps>
- Enclosing interface:
- KubeCsiNodeProps
@Stability(Stable) public static final class KubeCsiNodeProps.Builder extends Object implements software.amazon.jsii.Builder<KubeCsiNodeProps>
A builder forKubeCsiNodeProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeCsiNodeProps
build()
Builds the configured instance.KubeCsiNodeProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeCsiNodeProps.getMetadata()
KubeCsiNodeProps.Builder
spec(CsiNodeSpec spec)
Sets the value ofKubeCsiNodeProps.getSpec()
-
-
-
Method Detail
-
spec
@Stability(Stable) public KubeCsiNodeProps.Builder spec(CsiNodeSpec spec)
Sets the value ofKubeCsiNodeProps.getSpec()
- Parameters:
spec
- spec is the specification of CSINode. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public KubeCsiNodeProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeCsiNodeProps.getMetadata()
- Parameters:
metadata
- metadata.name must be the Kubernetes node name.- Returns:
this
-
build
@Stability(Stable) public KubeCsiNodeProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeCsiNodeProps>
- Returns:
- a new instance of
KubeCsiNodeProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-