Package org.cdk8s.plus24.k8s
Class KubeVolumeAttachment.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeVolumeAttachment.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeVolumeAttachment>
- Enclosing class:
- KubeVolumeAttachment
@Stability(Stable) public static final class KubeVolumeAttachment.Builder extends Object implements software.amazon.jsii.Builder<KubeVolumeAttachment>
A fluent builder forKubeVolumeAttachment
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeVolumeAttachment
build()
static KubeVolumeAttachment.Builder
create(software.constructs.Construct scope, String id)
KubeVolumeAttachment.Builder
metadata(ObjectMeta metadata)
Standard object metadata.KubeVolumeAttachment.Builder
spec(VolumeAttachmentSpec spec)
Specification of the desired attach/detach volume behavior.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeVolumeAttachment.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope
- the scope in which to define this object. This parameter is required.id
- a scope-local name for the object. This parameter is required.- Returns:
- a new instance of
KubeVolumeAttachment.Builder
.
-
spec
@Stability(Stable) public KubeVolumeAttachment.Builder spec(VolumeAttachmentSpec spec)
Specification of the desired attach/detach volume behavior.Populated by the Kubernetes system.
- Parameters:
spec
- Specification of the desired attach/detach volume behavior. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public KubeVolumeAttachment.Builder metadata(ObjectMeta metadata)
Standard object metadata.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- Parameters:
metadata
- Standard object metadata. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeVolumeAttachment build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeVolumeAttachment>
-
-