Package org.cdk8s.plus24.k8s
Class KubeCsiDriverProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeCsiDriverProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeCsiDriverProps>
- Enclosing interface:
- KubeCsiDriverProps
@Stability(Stable) public static final class KubeCsiDriverProps.Builder extends Object implements software.amazon.jsii.Builder<KubeCsiDriverProps>
A builder forKubeCsiDriverProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeCsiDriverProps
build()
Builds the configured instance.KubeCsiDriverProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeCsiDriverProps.getMetadata()
KubeCsiDriverProps.Builder
spec(CsiDriverSpec spec)
Sets the value ofKubeCsiDriverProps.getSpec()
-
-
-
Method Detail
-
spec
@Stability(Stable) public KubeCsiDriverProps.Builder spec(CsiDriverSpec spec)
Sets the value ofKubeCsiDriverProps.getSpec()
- Parameters:
spec
- Specification of the CSI Driver. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public KubeCsiDriverProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeCsiDriverProps.getMetadata()
- Parameters:
metadata
- Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
this
-
build
@Stability(Stable) public KubeCsiDriverProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeCsiDriverProps>
- Returns:
- a new instance of
KubeCsiDriverProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-