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 snapshot N to use to create the custom image.
|
构造器和说明 |
---|
CreateImageRequestDiskDeviceMapping() |
@NameInMap(value="Device") public String device
The device name of disk N in the custom image. Valid values:
/dev/vdb
@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
@NameInMap(value="Size") public Integer size
The size of disk N in the custom image. Unit: GiB. The valid values and default value of DiskDeviceMapping.N.Size vary based on the value of DiskDeviceMapping.N.SnapshotId.
If no corresponding snapshot IDs are specified in the value of DiskDeviceMapping.N.SnapshotId, DiskDeviceMapping.N.Size has the following valid values and default values:
If a corresponding snapshot ID is specified in the value of DiskDeviceMapping.N.SnapshotId, the value of DiskDeviceMapping.N.Size must be greater than or equal to the size of the specified snapshot. The default value of DiskDeviceMapping.N.Size is the size of the specified snapshot.
2000
@NameInMap(value="SnapshotId") public String snapshotId
The ID of snapshot N to use to create the custom image.
example:s-bp17441ohwkdca0****
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 © 2024. All rights reserved.