DiskInstanceAttachmentProps
Properties for defining a DiskInstanceAttachment
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-diskinstanceattachment
Initializer
import com.aliyun.ros.cdk.ens.DiskInstanceAttachmentProps;
DiskInstanceAttachmentProps.builder()
.diskId(java.lang.String)
.diskId(IResolvable)
.instanceId(java.lang.String)
.instanceId(IResolvable)
// .deleteWithInstance(java.lang.String)
// .deleteWithInstance(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
diskId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property diskId: The ID of the cloud disk to be mounted. |
instanceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceId: Instance ID. |
deleteWithInstance |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property deleteWithInstance: Whether the cloud disk to be mounted is released with the instance Value: true: When the instance is released, the cloud disk is released together with the instance. |
diskId
Required
public java.lang.Object getDiskId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property diskId: The ID of the cloud disk to be mounted.
The Cloud Disk (DiskId) and the instance (InstanceId) must be on the same node.
instanceId
Required
public java.lang.Object getInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceId: Instance ID.
deleteWithInstance
Optional
public java.lang.Object getDeleteWithInstance();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property deleteWithInstance: Whether the cloud disk to be mounted is released with the instance Value: true: When the instance is released, the cloud disk is released together with the instance.
false: When the instance is released, the cloud disk is retained and is not released together with the instance. Empty means false by default.