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 the snapshot that is used 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 * data: data disk
public CreateImageRequest.DiskDeviceMapping.Builder size(Integer size)
* 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.
public CreateImageRequest.DiskDeviceMapping.Builder snapshotId(String snapshotId)
public CreateImageRequest.DiskDeviceMapping build()
Copyright © 2023. All rights reserved.