Package org.cdk8s.plus24.k8s
Class VolumeAttachmentSpec.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.VolumeAttachmentSpec.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VolumeAttachmentSpec>
- Enclosing interface:
- VolumeAttachmentSpec
@Stability(Stable) public static final class VolumeAttachmentSpec.Builder extends Object implements software.amazon.jsii.Builder<VolumeAttachmentSpec>
A builder forVolumeAttachmentSpec
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeAttachmentSpec.Builder
attacher(String attacher)
Sets the value ofVolumeAttachmentSpec.getAttacher()
VolumeAttachmentSpec
build()
Builds the configured instance.VolumeAttachmentSpec.Builder
nodeName(String nodeName)
Sets the value ofVolumeAttachmentSpec.getNodeName()
VolumeAttachmentSpec.Builder
source(VolumeAttachmentSource source)
Sets the value ofVolumeAttachmentSpec.getSource()
-
-
-
Method Detail
-
attacher
@Stability(Stable) public VolumeAttachmentSpec.Builder attacher(String attacher)
Sets the value ofVolumeAttachmentSpec.getAttacher()
- Parameters:
attacher
- Attacher indicates the name of the volume driver that MUST handle this request. This parameter is required. This is the name returned by GetPluginName().- Returns:
this
-
nodeName
@Stability(Stable) public VolumeAttachmentSpec.Builder nodeName(String nodeName)
Sets the value ofVolumeAttachmentSpec.getNodeName()
- Parameters:
nodeName
- The node that the volume should be attached to. This parameter is required.- Returns:
this
-
source
@Stability(Stable) public VolumeAttachmentSpec.Builder source(VolumeAttachmentSource source)
Sets the value ofVolumeAttachmentSpec.getSource()
- Parameters:
source
- Source represents the volume that should be attached. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public VolumeAttachmentSpec build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VolumeAttachmentSpec>
- Returns:
- a new instance of
VolumeAttachmentSpec
- Throws:
NullPointerException
- if any required attribute was not provided
-
-