public static final class ModifyImageAttributeRequest.Builder extends Object
public ModifyImageAttributeRequest.Builder sourceRegionId(String sourceRegionId)
public ModifyImageAttributeRequest.Builder bootMode(String bootMode)
* BIOS * UEFI > You must know which boot modes the specified image supports. When you use this parameter to change the boot mode of the image, specify a boot mode supported by the image to ensure that instances which use this image can start normally.
public ModifyImageAttributeRequest.Builder description(String description)
This parameter is empty by default, which indicates that the original description is retained.
public ModifyImageAttributeRequest.Builder features(ModifyImageAttributeRequest.Features features)
public ModifyImageAttributeRequest.Builder imageFamily(String imageFamily)
This parameter is empty by default.
public ModifyImageAttributeRequest.Builder imageId(String imageId)
public ModifyImageAttributeRequest.Builder imageName(String imageName)
This parameter is empty by default, which indicates that the original name is retained.
public ModifyImageAttributeRequest.Builder licenseType(String licenseType)
* Auto: ECS checks the operating system of the source 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 not, 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 can be used in Alibaba Cloud. Default value: Auto.
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. An instance family cannot be used to create instances if no custom images are in the Available state within the instance family. Proceed with caution if only a single custom image is in the Available state within the image family.
public ModifyImageAttributeRequest build()
Copyright © 2023. All rights reserved.