public static final class ImportImageRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
ImportImageRequest.Builder |
architecture(String architecture)
The system architecture.
|
ImportImageRequest.Builder |
bootMode(String bootMode)
The boot mode of the image.
|
ImportImageRequest |
build() |
ImportImageRequest.Builder |
description(String description)
The image description.
|
ImportImageRequest.Builder |
detectionStrategy(String detectionStrategy)
The mode in which to check the image.
|
ImportImageRequest.Builder |
diskDeviceMapping(List<ImportImageRequest.DiskDeviceMapping> diskDeviceMapping)
The information about the custom image.
|
ImportImageRequest.Builder |
imageName(String imageName)
The image name.
|
ImportImageRequest.Builder |
licenseType(String licenseType)
The type of the license used to activate the operating system after the image is imported.
|
ImportImageRequest.Builder |
OSType(String OSType)
The operating system platform.
|
ImportImageRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ImportImageRequest.Builder |
platform(String platform)
The operating system distribution.
|
ImportImageRequest.Builder |
regionId(String regionId)
The region ID of the source image.
|
ImportImageRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which to assign the image.
|
ImportImageRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ImportImageRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
ImportImageRequest.Builder |
roleName(String roleName)
The name of the RAM role used to import the image.
|
ImportImageRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
ImportImageRequest.Builder |
storageLocationArn(String storageLocationArn)
The Alibaba Cloud Resource Name (ARN) of the cloud box, which is used to uniquely identify a storage location in the cloud.
|
ImportImageRequest.Builder |
tag(List<ImportImageRequest.Tag> tag)
The image tags.
|
public ImportImageRequest.Builder sourceRegionId(String sourceRegionId)
public ImportImageRequest.Builder architecture(String architecture)
* i386 * x86\_64 * arm64 Default value: x86\_64.
public ImportImageRequest.Builder bootMode(String bootMode)
* BIOS * UEFI Default value: BIOS. If you set `Architecture` to arm64, set this parameter to UEFI. > Make sure that you are aware of the boot modes supported by the specified image, as thehe modified boot mode needs to be supported by the image. This way, instances that use this image can start.
public ImportImageRequest.Builder description(String description)
public ImportImageRequest.Builder detectionStrategy(String detectionStrategy)
> This parameter is supported for most Linux and Windows operating system versions. For more information about image check items and operating system limits for image check, see [Overview](~~439819~~) and [Operating system limits for image check](~~475800~~).
public ImportImageRequest.Builder diskDeviceMapping(List<ImportImageRequest.DiskDeviceMapping> diskDeviceMapping)
public ImportImageRequest.Builder imageName(String imageName)
public ImportImageRequest.Builder licenseType(String licenseType)
* Auto: ECS checks the operating system of the image and allocates a license to the operating system. ECS first checks whether the operating system distribution specified by `Platform` has a license allocated through an official Alibaba Cloud channel. If yes, the allocated license is used. If no, the license that comes with the source operating system is used. * Aliyun: The license allocated through an official Alibaba Cloud channel is used for the operating system distribution specified by `Platform`. * BYOL: The license that comes with the source operating system is used. In this case, make sure that your license key is eligible for use in Alibaba Cloud. Default value: Auto.
public ImportImageRequest.Builder OSType(String OSType)
* windows * linux Default value: linux.
public ImportImageRequest.Builder ownerId(Long ownerId)
public ImportImageRequest.Builder platform(String platform)
* Aliyun * Anolis * CentOS * Ubuntu * CoreOS * SUSE * Debian * OpenSUSE * FreeBSD * RedHat * Kylin * UOS * Fedora * Fedora CoreOS * CentOS Stream * AlmaLinux * Rocky Linux * Gentoo * Customized Linux * Others Linux * Windows Server 2022 * Windows Server 2019 * Windows Server 2016 * Windows Server 2012 * Windows Server 2008 * Windows Server 2003 Default value: Others Linux.
public ImportImageRequest.Builder regionId(String regionId)
public ImportImageRequest.Builder resourceGroupId(String resourceGroupId)
public ImportImageRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ImportImageRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ImportImageRequest.Builder roleName(String roleName)
public ImportImageRequest.Builder storageLocationArn(String storageLocationArn)
> Specify this parameter only if you import an image from OSS on CloudBox. Otherwise, you do not need to specify this parameter. For more information, see [What is OSS on CloudBox?](~~430190~~) The ARN must be in the following format: `arn:acs:cloudbox:{RegionId}:{AliUid}:cloudbox/{CloudBoxId}`. Replace `{RegionId}` with the region ID of the cloud box, `{AliUid}` with the ID of the Alibaba Cloud account to which the cloud box belongs, and `{CloudBoxId}` with the ID of the cloud box.
public ImportImageRequest.Builder tag(List<ImportImageRequest.Tag> tag)
public ImportImageRequest build()
Copyright © 2024. All rights reserved.