public static final class CreateImageRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateImageRequest.Builder |
architecture(String architecture)
The system architecture of the system disk.
|
CreateImageRequest.Builder |
bootMode(String bootMode)
The boot mode of the image.
|
CreateImageRequest |
build() |
CreateImageRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateImageRequest.Builder |
description(String description)
The image description.
|
CreateImageRequest.Builder |
detectionStrategy(String detectionStrategy)
The mode in which to check the custom image.
|
CreateImageRequest.Builder |
diskDeviceMapping(List<CreateImageRequest.DiskDeviceMapping> diskDeviceMapping)
The information about the custom image.
|
CreateImageRequest.Builder |
imageFamily(String imageFamily)
The name of the image family.
|
CreateImageRequest.Builder |
imageName(String imageName)
The name of the custom image.
|
CreateImageRequest.Builder |
imageVersion(String imageVersion)
The image version.
|
CreateImageRequest.Builder |
instanceId(String instanceId)
The instance ID.
|
CreateImageRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateImageRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateImageRequest.Builder |
platform(String platform)
The operating system distribution for the system disk in the custom image.
|
CreateImageRequest.Builder |
regionId(String regionId)
The region ID of the custom image that you want to create.
|
CreateImageRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which to assign the custom image.
|
CreateImageRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateImageRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateImageRequest.Builder |
snapshotId(String snapshotId)
The ID of the snapshot that you want to use to create the custom image.
|
CreateImageRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
CreateImageRequest.Builder |
tag(List<CreateImageRequest.Tag> tag)
The tags.
|
public CreateImageRequest.Builder sourceRegionId(String sourceRegionId)
public CreateImageRequest.Builder architecture(String architecture)
* i386 * x86\_64 * arm64 Default value: x86\_64.
public CreateImageRequest.Builder bootMode(String bootMode)
* BIOS: Basic Input/Output System (BIOS) * UEFI: Unified Extensible Firmware Interface (UEFI) * UEFI-Preferred: BIOS and UEFI > Before you change the boot mode of an image, we recommend that you get familiar with the boot modes supported by the image to ensure that instances created from the image can start as expected. If you do not know which boot modes are supported by the image, we recommend that you use the image check feature to perform a check. For information about the image check feature, see [Overview of image check](~~439819~~). > For information about the UEFI-Preferred boot mode, see [Best practices for ECS instance boot modes](~~2244655~~).
public CreateImageRequest.Builder clientToken(String clientToken)
public CreateImageRequest.Builder description(String description)
public CreateImageRequest.Builder detectionStrategy(String detectionStrategy)
> This parameter is supported for most Linux and Windows operating system versions. For information about image check items and operating system limits for image check, see [Overview of image check](~~439819~~) and [Operating system limits for image check](~~475800~~).
public CreateImageRequest.Builder diskDeviceMapping(List<CreateImageRequest.DiskDeviceMapping> diskDeviceMapping)
public CreateImageRequest.Builder imageFamily(String imageFamily)
public CreateImageRequest.Builder imageName(String imageName)
public CreateImageRequest.Builder imageVersion(String imageVersion)
> If you specify an instance by configuring `InstanceId`, and the instance uses an Alibaba Cloud Marketplace image or a custom image that is created from an Alibaba Cloud Marketplace image, you must leave this parameter empty or set this parameter to the value of ImageVersion of the instance.
public CreateImageRequest.Builder instanceId(String instanceId)
public CreateImageRequest.Builder ownerAccount(String ownerAccount)
public CreateImageRequest.Builder ownerId(Long ownerId)
public CreateImageRequest.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 CreateImageRequest.Builder regionId(String regionId)
public CreateImageRequest.Builder resourceGroupId(String resourceGroupId)
> If you call the CreateImage operation as a Resource Access Management (RAM) user who does not have the permissions to manage the default resource group and do not specify `ResourceGroupId`, the `Forbbiden: User not authorized to operate on the specified resource` error message is returned. You must specify the ID of a resource group that the RAM user has the permissions to manage or grant the RAM user the permissions to manage the default resource group before you call the CreateImage operation again.
public CreateImageRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateImageRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateImageRequest.Builder snapshotId(String snapshotId)
public CreateImageRequest.Builder tag(List<CreateImageRequest.Tag> tag)
public CreateImageRequest build()
Copyright © 2024. All rights reserved.