public class ModifyImageAttributeRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
ModifyImageAttributeRequest.ModifyImageAttributeRequestFeatures |
限定符和类型 | 字段和说明 |
---|---|
String |
bootMode
The new boot mode of the image.
|
String |
description
The new description of the custom image.
|
ModifyImageAttributeRequest.ModifyImageAttributeRequestFeatures |
features
The attributes of the custom image.
|
String |
imageFamily
The name of the image family.
|
String |
imageId
The ID of the custom image.
|
String |
imageName
The name of the custom image.
|
String |
licenseType
The type of the license that is used to activate the operating system after the image is imported.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID of the custom image.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
status
The new state of the custom image.
|
构造器和说明 |
---|
ModifyImageAttributeRequest() |
@NameInMap(value="BootMode") public String bootMode
The new boot mode of the image. Valid values:
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.
example:For information about the UEFI-Preferred boot mode, see Best practices for ECS instance boot modes.
BIOS
@NameInMap(value="Description") public String description
The new description of the custom image. The description must be 2 to 256 characters in length It cannot start with http:// or https://.
This parameter is empty by default, which specifies that the original description is retained.
example:testDescription
@NameInMap(value="Features") public ModifyImageAttributeRequest.ModifyImageAttributeRequestFeatures features
The attributes of the custom image.
if can be null:true
@NameInMap(value="ImageFamily") public String imageFamily
The name of the image family. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (_), and hyphens (-).
By default, this parameter is empty.
example:hangzhou-daily-update
@NameInMap(value="ImageId") public String imageId
The ID of the custom image.
This parameter is required.
example:m-bp18ygjuqnwhechc****
@NameInMap(value="ImageName") public String imageName
The name of the custom image. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with acs: or aliyun. It cannot contain http:// or https://. It can contain letters, digits, periods (.), colons (:), underscores (_), and hyphens (-).
By default, this parameter is empty. In this case, the original name is retained.
example:testImageName
@NameInMap(value="LicenseType") public String licenseType
The type of the license that is used to activate the operating system after the image is imported. Set the value to BYOL.
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.
example:Auto
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the custom image. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Status") public String status
The new state of the custom image. Valid values:
example: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.
Deprecated
public static ModifyImageAttributeRequest build(Map<String,?> map) throws Exception
Exception
public ModifyImageAttributeRequest setBootMode(String bootMode)
public String getBootMode()
public ModifyImageAttributeRequest setDescription(String description)
public String getDescription()
public ModifyImageAttributeRequest setFeatures(ModifyImageAttributeRequest.ModifyImageAttributeRequestFeatures features)
public ModifyImageAttributeRequest.ModifyImageAttributeRequestFeatures getFeatures()
public ModifyImageAttributeRequest setImageFamily(String imageFamily)
public String getImageFamily()
public ModifyImageAttributeRequest setImageId(String imageId)
public String getImageId()
public ModifyImageAttributeRequest setImageName(String imageName)
public String getImageName()
public ModifyImageAttributeRequest setLicenseType(String licenseType)
public String getLicenseType()
public ModifyImageAttributeRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifyImageAttributeRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifyImageAttributeRequest setRegionId(String regionId)
public String getRegionId()
public ModifyImageAttributeRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifyImageAttributeRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public ModifyImageAttributeRequest setStatus(String status)
public String getStatus()
Copyright © 2024. All rights reserved.