public static final class CreateImageRequest.DiskDeviceMapping.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
CreateImageRequest.DiskDeviceMapping |
build() |
CreateImageRequest.DiskDeviceMapping.Builder |
device(String device)
The device name of disk N in the custom image.
|
CreateImageRequest.DiskDeviceMapping.Builder |
diskType(String diskType)
The type of disk N in the custom image.
|
CreateImageRequest.DiskDeviceMapping.Builder |
size(Integer size)
The size of disk N in the custom image.
|
CreateImageRequest.DiskDeviceMapping.Builder |
snapshotId(String snapshotId)
The ID of snapshot N to use to create the custom image.
|
public CreateImageRequest.DiskDeviceMapping.Builder device(String device)
* 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.
public CreateImageRequest.DiskDeviceMapping.Builder diskType(String diskType)
* system: system disk. You can specify only one snapshot to use to create the system disk in the custom image. * data: data disk. You can specify up to 16 snapshots to use to create data disks in the custom image.
public CreateImageRequest.DiskDeviceMapping.Builder size(Integer size)
* 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: * 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 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.
public CreateImageRequest.DiskDeviceMapping.Builder snapshotId(String snapshotId)
public CreateImageRequest.DiskDeviceMapping build()
Copyright © 2024. All rights reserved.