public class CopySnapshotRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CopySnapshotRequest.CopySnapshotRequestArn |
static class |
CopySnapshotRequest.CopySnapshotRequestTag |
限定符和类型 | 字段和说明 |
---|---|
List<CopySnapshotRequest.CopySnapshotRequestArn> |
arn
This parameter is currently in invitational preview and unavailable for public use.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
destinationRegionId
The ID of the destination region to which to copy the source snapshot.
|
String |
destinationSnapshotDescription
The description of the new snapshot.
|
String |
destinationSnapshotName
The name of the new snapshot.
|
String |
destinationStorageLocationArn
This parameter is not publicly available.
|
Boolean |
encrypted
Specifies whether to encrypt the new snapshot.
|
String |
KMSKeyId
The ID of the customer master key (CMK) in Key Management Service (KMS) in the destination region.
|
Long |
ownerId |
String |
regionId
The region ID of the source snapshot.
|
String |
resourceGroupId
This parameter is not publicly available.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
retentionDays
The retention period of the new snapshot.
|
String |
snapshotId
The ID of the source snapshot.
|
List<CopySnapshotRequest.CopySnapshotRequestTag> |
tag
The tag key and value of the new snapshot.
|
构造器和说明 |
---|
CopySnapshotRequest() |
@NameInMap(value="Arn") public List<CopySnapshotRequest.CopySnapshotRequestArn> arn
This parameter is currently in invitational preview and unavailable for public use.
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.
example:123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="DestinationRegionId") public String destinationRegionId
The ID of the destination region to which to copy the source snapshot.
This parameter is required.
example:us-east-1
@NameInMap(value="DestinationSnapshotDescription") public String destinationSnapshotDescription
The description of the new snapshot. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
This parameter is empty by default.
This parameter is required.
example:CopySnapshotDemo
@NameInMap(value="DestinationSnapshotName") public String destinationSnapshotName
The name of the new snapshot. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).
This parameter is left empty by default.
This parameter is required.
example:CopySnapshotDemo
@NameInMap(value="DestinationStorageLocationArn") public String destinationStorageLocationArn
example:This parameter is not publicly available.
null
@NameInMap(value="Encrypted") public Boolean encrypted
Specifies whether to encrypt the new snapshot. Valid values:
Default value: false.
example:false
@NameInMap(value="KMSKeyId") public String KMSKeyId
The ID of the customer master key (CMK) in Key Management Service (KMS) in the destination region.
example:0e478b7a-4262-4802-b8cb-00d3fb40****
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the source snapshot. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-chengdu
@NameInMap(value="ResourceGroupId") public String resourceGroupId
This parameter is not publicly available.
example:rg-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="RetentionDays") public Integer retentionDays
The retention period of the new snapshot. Unit: days. The new snapshot is automatically released when its retention period ends. Valid values: 1 to 65536.
This parameter is empty by default, which indicates that the snapshot is not automatically released.
example:60
@NameInMap(value="SnapshotId") public String snapshotId
The ID of the source snapshot.
This parameter is required.
example:s-bp67acfmxazb4p****
@NameInMap(value="Tag") public List<CopySnapshotRequest.CopySnapshotRequestTag> tag
The tag key and value of the new snapshot.
public static CopySnapshotRequest build(Map<String,?> map) throws Exception
Exception
public CopySnapshotRequest setArn(List<CopySnapshotRequest.CopySnapshotRequestArn> arn)
public List<CopySnapshotRequest.CopySnapshotRequestArn> getArn()
public CopySnapshotRequest setClientToken(String clientToken)
public String getClientToken()
public CopySnapshotRequest setDestinationRegionId(String destinationRegionId)
public String getDestinationRegionId()
public CopySnapshotRequest setDestinationSnapshotDescription(String destinationSnapshotDescription)
public String getDestinationSnapshotDescription()
public CopySnapshotRequest setDestinationSnapshotName(String destinationSnapshotName)
public String getDestinationSnapshotName()
public CopySnapshotRequest setDestinationStorageLocationArn(String destinationStorageLocationArn)
public String getDestinationStorageLocationArn()
public CopySnapshotRequest setEncrypted(Boolean encrypted)
public Boolean getEncrypted()
public CopySnapshotRequest setKMSKeyId(String KMSKeyId)
public String getKMSKeyId()
public CopySnapshotRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CopySnapshotRequest setRegionId(String regionId)
public String getRegionId()
public CopySnapshotRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CopySnapshotRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CopySnapshotRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CopySnapshotRequest setRetentionDays(Integer retentionDays)
public Integer getRetentionDays()
public CopySnapshotRequest setSnapshotId(String snapshotId)
public String getSnapshotId()
public CopySnapshotRequest setTag(List<CopySnapshotRequest.CopySnapshotRequestTag> tag)
public List<CopySnapshotRequest.CopySnapshotRequestTag> getTag()
Copyright © 2024. All rights reserved.