public static final class CfnInstance.VolumeProperty.Builder
extends java.lang.Object
CfnInstance.VolumeProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnInstance.VolumeProperty |
build()
Builds the configured instance.
|
CfnInstance.VolumeProperty.Builder |
device(java.lang.String device)
Sets the value of
CfnInstance.VolumeProperty.getDevice() |
CfnInstance.VolumeProperty.Builder |
volumeId(java.lang.String volumeId)
Sets the value of
CfnInstance.VolumeProperty.getVolumeId() |
public CfnInstance.VolumeProperty.Builder device(java.lang.String device)
CfnInstance.VolumeProperty.getDevice()
device
- The device name (for example, `/dev/sdh` or `xvdh` ). This parameter is required.this
public CfnInstance.VolumeProperty.Builder volumeId(java.lang.String volumeId)
CfnInstance.VolumeProperty.getVolumeId()
volumeId
- The ID of the EBS volume. This parameter is required.
The volume and instance must be within the same Availability Zone.this
public CfnInstance.VolumeProperty build()
CfnInstance.VolumeProperty
java.lang.NullPointerException
- if any required attribute was not provided