public class ModifyDiskAttributesRequest extends AbstractModel
Constructor and Description |
---|
ModifyDiskAttributesRequest() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getDeleteWithInstance()
Get Whether the cloud disk is terminated with the CVM after it has been successfully mounted.
|
String[] |
getDiskIds()
Get IDs of one or more cloud disks to be operated.
|
String |
getDiskName()
Get Name of new cloud disk.
|
String |
getDiskType()
Get When changing the type of a cloud disk, this parameter can be passed to indicate the desired cloud disk type.
|
Boolean |
getPortable()
Get Whether it is an elastic cloud disk.
|
Long |
getProjectId()
Get The new project ID of the cloud disk.
|
void |
setDeleteWithInstance(Boolean DeleteWithInstance)
Set Whether the cloud disk is terminated with the CVM after it has been successfully mounted.
|
void |
setDiskIds(String[] DiskIds)
Set IDs of one or more cloud disks to be operated.
|
void |
setDiskName(String DiskName)
Set Name of new cloud disk.
|
void |
setDiskType(String DiskType)
Set When changing the type of a cloud disk, this parameter can be passed to indicate the desired cloud disk type.
|
void |
setPortable(Boolean Portable)
Set Whether it is an elastic cloud disk.
|
void |
setProjectId(Long ProjectId)
Set The new project ID of the cloud disk.
|
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
- IDs of one or more cloud disks to be operated. If multiple cloud disk IDs are selected, it only supports modifying all cloud disks with the same attributes.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- The new project ID of the cloud disk. Only the project ID of elastic cloud disk can be modified. The available projects and their IDs can be queried via the API [DescribeProject](/document/api/378/4400).public String getDiskName()
public void setDiskName(String DiskName)
DiskName
- Name of new cloud disk.public Boolean getPortable()
public void setPortable(Boolean Portable)
Portable
- Whether it is an elastic cloud disk. FALSE: non-elastic cloud disk; TRUE: elastic cloud disk. You can only modify non-elastic cloud disks to elastic cloud disks.public Boolean getDeleteWithInstance()
public void setDeleteWithInstance(Boolean DeleteWithInstance)
DeleteWithInstance
- Whether the cloud disk is terminated with the CVM after it has been successfully mounted. `TRUE` indicates that it is terminated with the CVM. `FALSE` indicates that it is not terminated with the CVM. This is only supported for cloud disks and data disks that are pay-as-you-go.public String getDiskType()
public void setDiskType(String DiskType)
DiskType
- When changing the type of a cloud disk, this parameter can be passed to indicate the desired cloud disk type. Value range: Copyright © 2020. All rights reserved.