public static class CreateImageRequest.CreateImageRequestDiskDeviceMapping
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
device
The device name of disk N in the custom image.
|
String |
diskType
The type of disk N in the custom image.
|
Integer |
size
The size of disk N in the custom image.
|
String |
snapshotId
The ID of the snapshot that is used to create the custom image.
|
构造器和说明 |
---|
CreateImageRequestDiskDeviceMapping() |
@NameInMap(value="Device") public String device
The device name of disk N in the custom image. Valid values:
* For disks other than basic disks, such as standard SSDs, ultra disks, and enhanced SSDs (ESSDs), the valid values range from /dev/vda to /dev/vdz in alphabetical order.
* For basic disks, the valid values range from /dev/xvda to /dev/xvdz in alphabetical order.
@NameInMap(value="DiskType") public String diskType
The type of disk N in the custom image. You can specify this parameter to create the system disk of the custom image from a data disk snapshot. If you do not specify this parameter, the disk type is determined by the corresponding snapshot. Valid values:
* system: system disk
* data: data disk
@NameInMap(value="Size") public Integer size
The size of disk N in the custom image. Unit: GiB. The valid values and default value of the DiskDeviceMapping.N.Size parameter vary based on the value of the DiskDeviceMapping.N.SnapshotId parameter.
* If no corresponding snapshot IDs are specified in the value of the DiskDeviceMapping.N.SnapshotId parameter, the DiskDeviceMapping.N.Size parameter has the following valid values and default values:
* For basic disks, the valid values range from 5 to 2000, and the default value is 5.
* For other disks, the valid values range from 20 to 32768, and the default value is 20.
* If a corresponding snapshot ID is specified in the value of the DiskDeviceMapping.N.SnapshotId parameter, the value of the DiskDeviceMapping.N.Size parameter must be greater than or equal to the size of the specified snapshot. The default value of the DiskDeviceMapping.N.Size parameter is the size of the specified snapshot.
@NameInMap(value="SnapshotId") public String snapshotId
The ID of the snapshot that is used to create the custom image.
public static CreateImageRequest.CreateImageRequestDiskDeviceMapping build(Map<String,?> map) throws Exception
Exception
public CreateImageRequest.CreateImageRequestDiskDeviceMapping setDevice(String device)
public String getDevice()
public CreateImageRequest.CreateImageRequestDiskDeviceMapping setDiskType(String diskType)
public String getDiskType()
public CreateImageRequest.CreateImageRequestDiskDeviceMapping setSize(Integer size)
public Integer getSize()
public CreateImageRequest.CreateImageRequestDiskDeviceMapping setSnapshotId(String snapshotId)
public String getSnapshotId()
Copyright © 2023. All rights reserved.