public static final class UploadImageRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
UploadImageRequest |
build() |
UploadImageRequest.Builder |
dataDiskSize(Integer dataDiskSize)
The size of the data disk.
|
UploadImageRequest.Builder |
description(String description)
The description of the image.
|
UploadImageRequest.Builder |
enableSecurityCheck(Boolean enableSecurityCheck)
Specifies whether to enable security check.
|
UploadImageRequest.Builder |
gpuCategory(Boolean gpuCategory)
Specifies whether the image is a GPU-accelerated image.
|
UploadImageRequest.Builder |
gpuDriverType(String gpuDriverType)
The type of the pre-installed GPU driver.
|
UploadImageRequest.Builder |
imageName(String imageName)
The name of the image.
|
UploadImageRequest.Builder |
licenseType(String licenseType)
The type of the license that is used to activate the operating system after the image is imported.
|
UploadImageRequest.Builder |
ossObjectPath(String ossObjectPath)
The object path of the image file in Object Storage Service (OSS).
|
UploadImageRequest.Builder |
osType(String osType)
The type of the operating system.
|
UploadImageRequest.Builder |
protocolType(String protocolType)
The protocol type.
|
UploadImageRequest.Builder |
regionId(String regionId)
The region ID.
|
public UploadImageRequest.Builder dataDiskSize(Integer dataDiskSize)
public UploadImageRequest.Builder description(String description)
public UploadImageRequest.Builder enableSecurityCheck(Boolean enableSecurityCheck)
public UploadImageRequest.Builder gpuCategory(Boolean gpuCategory)
public UploadImageRequest.Builder gpuDriverType(String gpuDriverType)
Valid values: * gpu_grid9: This GPU driver is used on cloud computers of the following two specifications: graphics – 4 vCPUs, 23 GiB memory, 4 GiB GPU memory, and graphics – 10 vCPUs, 46 GiB memory, 8 GiB GPU memory. * gpu_custom: You can install the driver later. * gpu_grid12: This GPU driver is used on graphical cloud computers of specifications other than the following two specifications: graphics – 4 vCPUs, 23 GiB memory, & 4 GiB GPU memory, and graphics – 10 vCPUs, 46 GiB memory, & 8 GiB GPU memory.
public UploadImageRequest.Builder imageName(String imageName)
public UploadImageRequest.Builder licenseType(String licenseType)
* Auto: Elastic Desktop Service detects the operating system of the image and allocates a license to the operating system. In this mode, the system first checks whether a license allocated by an official Alibaba Cloud channel is specified in the `Platform`. If a license allocated by an official Alibaba Cloud channel is specified, the system allocates the license to the imported image. If no such license is specified, the BYOL (Bring Your Own License) mode is used. * Aliyun: The license that is allocated by an official Alibaba Cloud channel and is specified by `Platform` is used for the operating system distribution. * BYOL: The license that comes with the source operating system is used. When you use the BYOL mode, make sure that your license key is supported by Alibaba Cloud. Default value: Auto. > Windows 10 cannot be activated by Alibaba Cloud. Set the `LicenseType` to BYOL for Windows 10.
public UploadImageRequest.Builder osType(String osType)
Valid values: * Linux * Windows
public UploadImageRequest.Builder ossObjectPath(String ossObjectPath)
public UploadImageRequest.Builder protocolType(String protocolType)
Valid values: * ASP: in-house Adaptive Streaming Protocol (ASP)
public UploadImageRequest.Builder regionId(String regionId)
public UploadImageRequest build()
Copyright © 2024. All rights reserved.