public class AttachDisksRequest extends AbstractModel
Constructor and Description |
---|
AttachDisksRequest() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getDeleteWithInstance()
Get Optional parameter.
|
String[] |
getDiskIds()
Get ID of the elastic cloud disk to be mounted, which can be queried through the API [DescribeDisks](/document/product/362/16315).
|
String |
getInstanceId()
Get ID of the CVM instance on which the cloud disk will be mounted.
|
void |
setDeleteWithInstance(Boolean DeleteWithInstance)
Set Optional parameter.
|
void |
setDiskIds(String[] DiskIds)
Set ID of the elastic cloud disk to be mounted, which can be queried through the API [DescribeDisks](/document/product/362/16315).
|
void |
setInstanceId(String InstanceId)
Set ID of the CVM instance on which the cloud disk will be mounted.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String[] getDiskIds()
public void setDiskIds(String[] DiskIds)
DiskIds
- ID of the elastic cloud disk to be mounted, which can be queried through the API [DescribeDisks](/document/product/362/16315). A maximum of 10 elastic cloud disks can be mounted in a single request.public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- ID of the CVM instance on which the cloud disk will be mounted. It can be queried via the API [DescribeInstances](/document/product/213/15728).public Boolean getDeleteWithInstance()
public void setDeleteWithInstance(Boolean DeleteWithInstance)
DeleteWithInstance
- Optional parameter. If this is not passed only the mount operation is executed. If `True` is passed, the cloud disk will be configured to be terminated when the server it is mounted to is terminated. This is only valid for pay-as-you-go cloud disks.Copyright © 2020. All rights reserved.