public class ModifyDiskAttributeRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
burstingEnabled
Specifies whether to enable the performance burst feature for data disk N.
|
Boolean |
deleteAutoSnapshot
Specifies whether to delete the automatic snapshots of the disk when the disk is released.
|
Boolean |
deleteWithInstance
Specifies whether to release the disk along with its associated instance.
|
String |
description
The description of the disk.
|
String |
diskId
The ID of the disk.
|
List<String> |
diskIds
The ID of disk N.
|
String |
diskName
The name of the disk.
|
Boolean |
enableAutoSnapshot
Specifies whether to enable the automatic snapshot policy feature for the cloud disk.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID of the command.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
构造器和说明 |
---|
ModifyDiskAttributeRequest() |
@NameInMap(value="BurstingEnabled") public Boolean burstingEnabled
Specifies whether to enable the performance burst feature for data disk N. Valid values:
false
@NameInMap(value="DeleteAutoSnapshot") public Boolean deleteAutoSnapshot
Specifies whether to delete the automatic snapshots of the disk when the disk is released. This parameter is empty by default, which indicates that the current value remains unchanged.
example:false
@NameInMap(value="DeleteWithInstance") public Boolean deleteWithInstance
Specifies whether to release the disk along with its associated instance. This parameter is empty by default, which indicates that the current value remains unchanged.
An error is returned if you set DeleteWithInstance
to false
in one of the following cases:
false
@NameInMap(value="Description") public String description
The description of the disk. The description must be 2 to 256 characters in length. It cannot start with http://
or https://
.
TestDescription
@NameInMap(value="DiskId") public String diskId
The ID of the disk.
example:You can specify the
DiskId
parameter or theDiskIds.N
parameter, but you cannot specify both parameters at the same time.
d-bp1famypsnar20bv****
@NameInMap(value="DiskIds") public List<String> diskIds
The ID of disk N. Valid values of N: 0 to 100.
example:You can specify the
DiskId
parameter or theDiskIds.N
parameter, but you cannot specify both parameters at the same time.
d-bp1famypsnar20bv****
@NameInMap(value="DiskName") public String diskName
The name of the disk. The name must be 2 to 128 characters in length and can contain Unicode characters under the Decimal Number category and the categories whose names contain Letter. The name can also contain colons (:), underscores (_), periods (.), and hyphens (-).
example:MyDiskName
@NameInMap(value="EnableAutoSnapshot") public Boolean enableAutoSnapshot
Specifies whether to enable the automatic snapshot policy feature for the cloud disk. Valid values:
This parameter is empty by default, which indicates that the current value remains unchanged.
example:By default, the automatic snapshot policy feature is enabled for cloud disks. You only need to associate an automatic snapshot policy with a cloud disk before you can use the policy.
true
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the command. You can call the DescribeRegions operation to query the most recent list of regions.
example:cn-hangzhou
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
public static ModifyDiskAttributeRequest build(Map<String,?> map) throws Exception
Exception
public ModifyDiskAttributeRequest setBurstingEnabled(Boolean burstingEnabled)
public Boolean getBurstingEnabled()
public ModifyDiskAttributeRequest setDeleteAutoSnapshot(Boolean deleteAutoSnapshot)
public Boolean getDeleteAutoSnapshot()
public ModifyDiskAttributeRequest setDeleteWithInstance(Boolean deleteWithInstance)
public Boolean getDeleteWithInstance()
public ModifyDiskAttributeRequest setDescription(String description)
public String getDescription()
public ModifyDiskAttributeRequest setDiskId(String diskId)
public String getDiskId()
public ModifyDiskAttributeRequest setDiskIds(List<String> diskIds)
public ModifyDiskAttributeRequest setDiskName(String diskName)
public String getDiskName()
public ModifyDiskAttributeRequest setEnableAutoSnapshot(Boolean enableAutoSnapshot)
public Boolean getEnableAutoSnapshot()
public ModifyDiskAttributeRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifyDiskAttributeRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifyDiskAttributeRequest setRegionId(String regionId)
public String getRegionId()
public ModifyDiskAttributeRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifyDiskAttributeRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2024. All rights reserved.