public class ModifyDiskAttributeRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
burstingEnabled
Specifies whether to enable the performance burst feature for 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 together with the associated instance.
|
String |
description
The description of the disk.
|
String |
diskId
The ID of the disk.
|
List<String> |
diskIds
The IDs of the disks whose attributes you want to modify.
|
String |
diskName
The name of the disk.
|
Boolean |
enableAutoSnapshot
Specifies whether to enable the automatic snapshot policy feature for the disk.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The ID of the region.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
构造器和说明 |
---|
ModifyDiskAttributeRequest() |
@NameInMap(value="BurstingEnabled") public Boolean burstingEnabled
Specifies whether to enable the performance burst feature for disk N. Valid values:
* true: enables the performance burst feature.
* false: disables the performance burst feature.
@NameInMap(value="DeleteAutoSnapshot") public Boolean deleteAutoSnapshot
Specifies whether to delete the automatic snapshots of the disk when the disk is released. By default, this parameter is left empty, which specifies that the current value remains unchanged.
@NameInMap(value="DeleteWithInstance") public Boolean deleteWithInstance
Specifies whether to release the disk together with the associated instance. By default, this parameter is left empty, which specifies that the current value remains unchanged.
If you set the `DeleteWithInstance` parameter to `false` in one of the following cases, an error is returned:
* The disk is a local disk.
* The disk is a basic disk and not removable. If the Portable attribute of a disk is set to false, the disk is not removable.
@NameInMap(value="Description") public String description
The description of the disk. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.
@NameInMap(value="DiskId") public String diskId
The ID of the disk.
> You can specify the `DiskId` parameter or the `DiskIds.N` parameter, but you cannot specify both parameters at the same time.
@NameInMap(value="DiskIds") public List<String> diskIds
The IDs of the disks whose attributes you want to modify. Valid values of N: 0 to 100.
> You can specify the `DiskId` parameter or the `DiskIds.N` parameter, but you cannot specify both parameters at the same time.
@NameInMap(value="DiskName") public String diskName
The name of the disk. The name must be 2 to 128 characters in length. The name must start with a letter but cannot start with `http://` or `https://`. The name can contain letters, digits, colons (:), underscores (\_), and hyphens (-).
@NameInMap(value="EnableAutoSnapshot") public Boolean enableAutoSnapshot
Specifies whether to enable the automatic snapshot policy feature for the disk.
* true: enables the automatic snapshot policy feature for the disk.
* false: disables the automatic snapshot policy feature for the disk.
By default, this parameter is left empty, which specifies that the current value remains unchanged.
> : By default, the automatic snapshot policy feature is enabled for new disks. You need to only apply an automatic snapshot policy to a disk for the policy to take effect.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The ID of the region. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@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 © 2023. All rights reserved.