@Stability(value=Stable) public static final class CfnVolumeAttachmentProps.Builder extends Object implements software.amazon.jsii.Builder<CfnVolumeAttachmentProps>
CfnVolumeAttachmentProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnVolumeAttachmentProps |
build()
Builds the configured instance.
|
CfnVolumeAttachmentProps.Builder |
device(String device)
Sets the value of
CfnVolumeAttachmentProps.getDevice() |
CfnVolumeAttachmentProps.Builder |
instanceId(String instanceId)
Sets the value of
CfnVolumeAttachmentProps.getInstanceId() |
CfnVolumeAttachmentProps.Builder |
volumeId(String volumeId)
Sets the value of
CfnVolumeAttachmentProps.getVolumeId() |
@Stability(value=Stable) public CfnVolumeAttachmentProps.Builder device(String device)
CfnVolumeAttachmentProps.getDevice()device - The device name (for example, `/dev/sdh` or `xvdh` ). This parameter is required.this@Stability(value=Stable) public CfnVolumeAttachmentProps.Builder instanceId(String instanceId)
CfnVolumeAttachmentProps.getInstanceId()instanceId - The ID of the instance to which the volume attaches. This parameter is required.
This value can be a reference to an AWS::EC2::Instance resource, or it can be the physical ID of an existing EC2 instance.this@Stability(value=Stable) public CfnVolumeAttachmentProps.Builder volumeId(String volumeId)
CfnVolumeAttachmentProps.getVolumeId()volumeId - The ID of the Amazon EBS volume. This parameter is required.
The volume and instance must be within the same Availability Zone. This value can be a reference to an AWS::EC2::Volume resource, or it can be the volume ID of an existing Amazon EBS volume.this@Stability(value=Stable) public CfnVolumeAttachmentProps build()
build in interface software.amazon.jsii.Builder<CfnVolumeAttachmentProps>CfnVolumeAttachmentPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.