public static final class ModifyImageAttributeRequest.Builder extends Object
public ModifyImageAttributeRequest.Builder sourceRegionId(String sourceRegionId)
public ModifyImageAttributeRequest.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, we recommend that you obtain the boot modes supported by the image. If you specify an unsupported boot mode for the image, ECS instances that use the image cannot 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](~~439819~~). > For information about the UEFI-Preferred boot mode, see [Best practices for ECS instance boot modes](~~2244655~~).
public ModifyImageAttributeRequest.Builder description(String description)
This parameter is empty by default, which specifies that the original description is retained.
public ModifyImageAttributeRequest.Builder features(ModifyImageAttributeRequest.Features features)
public ModifyImageAttributeRequest.Builder imageFamily(String imageFamily)
By default, this parameter is empty.
public ModifyImageAttributeRequest.Builder imageId(String imageId)
public ModifyImageAttributeRequest.Builder imageName(String imageName)
By default, this parameter is empty. In this case, the original name is retained.
public ModifyImageAttributeRequest.Builder licenseType(String licenseType)
BYOL: The license that comes with the source operating system is used. When you use the BYOL license, make sure that your license key is supported by Alibaba Cloud.
public ModifyImageAttributeRequest.Builder ownerAccount(String ownerAccount)
public ModifyImageAttributeRequest.Builder ownerId(Long ownerId)
public ModifyImageAttributeRequest.Builder regionId(String regionId)
public ModifyImageAttributeRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyImageAttributeRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyImageAttributeRequest.Builder status(String status)
* Deprecated: puts the image into the Deprecated state. If the custom image is shared, you must unshare it before you can put it into the Deprecated state. Images in the Deprecated state cannot be shared or copied, but can be used to create instances or replace system disks. * Available: puts the image into the Available state. You can restore an image from the Deprecated state to the Available state. > If you want to roll back a custom image in the image family to a previous version, you can put the latest available custom image into the Deprecated state. If no custom images are in the Available state within the image family, an image family cannot be used to create instances. Proceed with caution if only a single custom image is in the Available state within the image family.
public ModifyImageAttributeRequest build()
Copyright © 2024. All rights reserved.