DiskAttachmentProps
Properties for defining a DiskAttachment
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-diskattachment
Initializer
import com.aliyun.ros.cdk.ecs.DiskAttachmentProps;
DiskAttachmentProps.builder()
.diskId(java.lang.String)
.diskId(IResolvable)
.instanceId(java.lang.String)
.instanceId(IResolvable)
// .deleteAutoSnapshot(java.lang.Boolean)
// .deleteAutoSnapshot(IResolvable)
// .deleteWithInstance(java.lang.Boolean)
// .deleteWithInstance(IResolvable)
// .device(java.lang.String)
// .device(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
diskId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property diskId: The disk id to attached. |
instanceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceId: The instanceId to attach the disk. |
deleteAutoSnapshot |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property deleteAutoSnapshot: Whether the auto snapshot is released with the disk. |
deleteWithInstance |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property deleteWithInstance: If property is true, the disk will be deleted while instance is deleted, if property is false, the disk will be retain after instance is deleted. |
device |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property device: The device where the volume is exposed on the instance. |
diskId
Required
public java.lang.Object getDiskId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property diskId: The disk id to attached.
instanceId
Required
public java.lang.Object getInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceId: The instanceId to attach the disk.
deleteAutoSnapshot
Optional
public java.lang.Object getDeleteAutoSnapshot();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property deleteAutoSnapshot: Whether the auto snapshot is released with the disk.
Default to true.
deleteWithInstance
Optional
public java.lang.Object getDeleteWithInstance();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property deleteWithInstance: If property is true, the disk will be deleted while instance is deleted, if property is false, the disk will be retain after instance is deleted.
device
Optional
public java.lang.Object getDevice();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property device: The device where the volume is exposed on the instance.
could be /dev/xvd[b-z]. If not specification, will use default value.