Package org.cdk8s.plus25.k8s
Class KubeVolumeAttachmentProps.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.KubeVolumeAttachmentProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeVolumeAttachmentProps>
- Enclosing interface:
- KubeVolumeAttachmentProps
@Stability(Stable) public static final class KubeVolumeAttachmentProps.Builder extends Object implements software.amazon.jsii.Builder<KubeVolumeAttachmentProps>
A builder forKubeVolumeAttachmentProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeVolumeAttachmentPropsbuild()Builds the configured instance.KubeVolumeAttachmentProps.Buildermetadata(ObjectMeta metadata)Sets the value ofKubeVolumeAttachmentProps.getMetadata()KubeVolumeAttachmentProps.Builderspec(VolumeAttachmentSpec spec)Sets the value ofKubeVolumeAttachmentProps.getSpec()
-
-
-
Method Detail
-
spec
@Stability(Stable) public KubeVolumeAttachmentProps.Builder spec(VolumeAttachmentSpec spec)
Sets the value ofKubeVolumeAttachmentProps.getSpec()- Parameters:
spec- Specification of the desired attach/detach volume behavior. This parameter is required. Populated by the Kubernetes system.- Returns:
this
-
metadata
@Stability(Stable) public KubeVolumeAttachmentProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeVolumeAttachmentProps.getMetadata()- Parameters:
metadata- Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
this
-
build
@Stability(Stable) public KubeVolumeAttachmentProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubeVolumeAttachmentProps>- Returns:
- a new instance of
KubeVolumeAttachmentProps - Throws:
NullPointerException- if any required attribute was not provided
-
-