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 image copy.
|
String |
destinationRegionId
The ID of the destination region to which to copy the source image.
|
String |
encryptAlgorithm
> This parameter is unavailable.
|
Boolean |
encrypted
Specifies whether to encrypt the image copy.
|
String |
imageId
The ID of the source image.
|
String |
KMSKeyId
The ID of the key to use to encrypt the image copy.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID of the source image.
|
String |
resourceGroupId
The ID of the resource group to which to assign the image copy.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
List<CopyImageRequest.CopyImageRequestTag> |
tag
The tags to add to the image copy.
|
构造器和说明 |
---|
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://`.
@NameInMap(value="DestinationImageName") public String destinationImageName
The name of the image copy. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with `acs:` or `aliyun`. The name cannot contain `http://` or `https://`. The name can contain letters, digits, periods (.), colons (:), underscores (\_), and hyphens (-).
@NameInMap(value="DestinationRegionId") public String destinationRegionId
The ID of the destination region to which to copy the source image.
@NameInMap(value="EncryptAlgorithm") public String encryptAlgorithm
> This parameter is unavailable.
@NameInMap(value="Encrypted") public Boolean encrypted
Specifies whether to encrypt the image copy.
Default value: false.
@NameInMap(value="ImageId") public String imageId
The ID of the source image.
@NameInMap(value="KMSKeyId") public String KMSKeyId
The ID of the key to use to encrypt the image copy.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the source image. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list.
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which to assign the image copy. If you do not specify this parameter, the image copy is assigned to the default resource group.
> If you call the CopyImage operation as a Resource Access Management (RAM) user who is not authorized to manage the default resource group and do not specify the `ResourceGroupId` parameter, 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 is authorized to manage or authorize the RAM user to manage the default resource group before you call the CreateImage operation again.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Tag") public List<CopyImageRequest.CopyImageRequestTag> tag
The tags to add to the image copy.
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 © 2023. All rights reserved.