public class CopyImageRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CopyImageRequest.CopyImageRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
destinationDescription
The description of the image copy.
|
String |
destinationImageName
The name of the new image.
|
String |
destinationRegionId
The ID of the destination region to which the source custom image is copied.
|
String |
encryptAlgorithm
This parameter is unavailable.
|
Boolean |
encrypted
Specifies whether to encrypt the new image.
|
String |
imageId
The ID of the source custom image.
|
String |
KMSKeyId
The ID of the key used to encrypt the image copy.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID of the source custom image.
|
String |
resourceGroupId
The ID of the resource group to which to assign the new image.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
List<CopyImageRequest.CopyImageRequestTag> |
tag
The list of tags.
|
构造器和说明 |
---|
CopyImageRequest() |
@NameInMap(value="DestinationDescription") public String destinationDescription
The description of the image copy. The description must be 2 to 256 characters in length and cannot start with http://
or https://
.
This is a description example.
@NameInMap(value="DestinationImageName") public String destinationImageName
The name of the new image. The name must be 2 to 128 characters in length. The name must start with a letter and cannot contain http://
or https://
. The name cannot start with acs:
or aliyun
. The name can contain letters, digits, periods (.), colons (:), underscores (_), and hyphens (-).
YourImageName
@NameInMap(value="DestinationRegionId") public String destinationRegionId
The ID of the destination region to which the source custom image is copied.
example:cn-shanghai
@NameInMap(value="EncryptAlgorithm") public String encryptAlgorithm
example:This parameter is unavailable.
hide
@NameInMap(value="Encrypted") public Boolean encrypted
Specifies whether to encrypt the new image.
Default value: false.
example:false
@NameInMap(value="ImageId") public String imageId
The ID of the source custom image.
This parameter is required.
example:m-bp1h46wfpjsjastc****
@NameInMap(value="KMSKeyId") public String KMSKeyId
The ID of the key used to encrypt the image copy.
example:e522b26d-abf6-4e0d-b5da-04b7******3c
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the source custom image. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which to assign the new image. If you do not specify this parameter, the new image is assigned to the default resource group.
example:If you call the CopyImage 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
, theForbidden: 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 CopyImage operation again.
rg-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Tag") public List<CopyImageRequest.CopyImageRequestTag> tag
The list of tags.
public static CopyImageRequest build(Map<String,?> map) throws Exception
Exception
public CopyImageRequest setDestinationDescription(String destinationDescription)
public String getDestinationDescription()
public CopyImageRequest setDestinationImageName(String destinationImageName)
public String getDestinationImageName()
public CopyImageRequest setDestinationRegionId(String destinationRegionId)
public String getDestinationRegionId()
public CopyImageRequest setEncryptAlgorithm(String encryptAlgorithm)
public String getEncryptAlgorithm()
public CopyImageRequest setEncrypted(Boolean encrypted)
public Boolean getEncrypted()
public CopyImageRequest setImageId(String imageId)
public String getImageId()
public CopyImageRequest setKMSKeyId(String KMSKeyId)
public String getKMSKeyId()
public CopyImageRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CopyImageRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CopyImageRequest setRegionId(String regionId)
public String getRegionId()
public CopyImageRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CopyImageRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CopyImageRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CopyImageRequest setTag(List<CopyImageRequest.CopyImageRequestTag> tag)
public List<CopyImageRequest.CopyImageRequestTag> getTag()
Copyright © 2024. All rights reserved.