public static final class CreateDiskRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateDiskRequest |
build() |
CreateDiskRequest.Builder |
category(String category)
The category of the disk.
|
CreateDiskRequest.Builder |
diskName(String diskName)
The name of the disk.
|
CreateDiskRequest.Builder |
encrypted(Boolean encrypted)
Specifies whether to encrypt the new system disk.
|
CreateDiskRequest.Builder |
ensRegionId(String ensRegionId)
The ID of the edge node.
|
CreateDiskRequest.Builder |
instanceChargeType(String instanceChargeType)
The billing method of the instance.
|
CreateDiskRequest.Builder |
KMSKeyId(String KMSKeyId)
The ID of the Key Management Service (KMS) key that is used by the cloud disk.
|
CreateDiskRequest.Builder |
size(String size)
The size of the disk.
|
CreateDiskRequest.Builder |
snapshotId(String snapshotId)
The ID of the snapshot that you want to use to create the disk.
|
public CreateDiskRequest.Builder category(String category)
* cloud_efficiency: ultra disk. * cloud_ssd: all-flash disk.
public CreateDiskRequest.Builder diskName(String diskName)
public CreateDiskRequest.Builder encrypted(Boolean encrypted)
* **true** * **false** (default): no
public CreateDiskRequest.Builder ensRegionId(String ensRegionId)
public CreateDiskRequest.Builder instanceChargeType(String instanceChargeType)
public CreateDiskRequest.Builder KMSKeyId(String KMSKeyId)
> If you set the **Encrypted** parameter to **true**, the default service key is used when the **KMSKeyId** parameter is empty.
public CreateDiskRequest.Builder size(String size)
public CreateDiskRequest.Builder snapshotId(String snapshotId)
The following limits apply to the **SnapshotId** and **Size** parameters: * If the size of the snapshot specified by **SnapshotId** is greater than the specified **Size** value, the size of the created disk is equal to the specified snapshot size. * If the size of the snapshot specified by **SnapshotId** is smaller than the specified **Size** value, the size of the created disk is equal to the specified **Size** value.
public CreateDiskRequest build()
Copyright © 2024. All rights reserved.