public class CreateSnapshotRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateSnapshotRequest.CreateSnapshotRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
category
The category of the snapshot.
|
String |
clientToken
The retention period of the snapshot.
|
String |
description
The cloud disk ID.
|
String |
diskId
Creates a snapshot for a disk.
|
Boolean |
instantAccess
Specifies whether to enable the instant access feature.
|
Integer |
instantAccessRetentionDays
The validity period of the instant access feature.
|
String |
ownerAccount |
Long |
ownerId |
String |
resourceGroupId
The snapshot type.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
retentionDays
The snapshot name.
|
String |
snapshotName
The name of the snapshot.
|
String |
storageLocationArn
The value of tag N that you want to add to the snapshot.
|
List<CreateSnapshotRequest.CreateSnapshotRequestTag> |
tag
The tags to add to the snapshot.
|
构造器和说明 |
---|
CreateSnapshotRequest() |
@NameInMap(value="Category") public String category
The category of the snapshot. Valid values:
example:This parameter is no longer used. By default, new standard snapshots of ESSDs are upgraded to instant access snapshots free of charge without the need for additional configurations. For more information, see Use the instant access feature.
Standard
@NameInMap(value="ClientToken") public String clientToken
The retention period of the snapshot. Valid values: 1 to 65536. Unit: days. The snapshot is automatically released when its retention period expires.
This parameter is empty by default, which indicates that the snapshot is not automatically released.
example:123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="Description") public String description
The cloud disk ID.
example:testDescription
@NameInMap(value="DiskId") public String diskId
Creates a snapshot for a disk.
This parameter is required.
example:d-bp1s5fnvk4gn2tws0****
@NameInMap(value="InstantAccess") public Boolean instantAccess
Specifies whether to enable the instant access feature. Valid values:
Default value: false.
example:This parameter is no longer used. By default, new standard snapshots of ESSDs are upgraded to instant access snapshots free of charge without the need for additional configurations. For more information, see Use the instant access feature.
false
@NameInMap(value="InstantAccessRetentionDays") public Integer instantAccessRetentionDays
The validity period of the instant access feature. When the validity period ends, the feature is disabled and the instant access snapshot is automatically released. This parameter takes effect only when InstantAccess
is set to true. Unit: days. Valid values: 1 to 65535.
By default, the value of this parameter is the same as that of RetentionDays
.
example:This parameter is no longer used. By default, new standard snapshots of ESSDs are upgraded to instant access snapshots free of charge without the need for additional configurations. For more information, see Use the instant access feature.
1
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The snapshot type. Valid values:
example:This parameter will be removed in the future. We recommend that you use the
InstantAccess
parameter to ensure future compatibility. This parameter and theInstantAccess
parameter cannot be specified at the same time. For more information, see the "Description" section of this topic.
rg-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="RetentionDays") public Integer retentionDays
The snapshot name. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http://
or https://
. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
The name cannot start with auto
because snapshots whose names start with auto are recognized as automatic snapshots.
30
@NameInMap(value="SnapshotName") public String snapshotName
The name of the 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 (-).
The name cannot start with auto
because snapshots whose names start with auto are recognized as automatic snapshots.
testSnapshotName
@NameInMap(value="StorageLocationArn") public String storageLocationArn
The value of tag N that you want to add to the snapshot. Valid values of N: 1 to 20. The tag value can be an empty string. It can be up to 128 characters in length and cannot start with acs: or contain http:// or https://.
example:null
@NameInMap(value="Tag") public List<CreateSnapshotRequest.CreateSnapshotRequestTag> tag
The tags to add to the snapshot.
public static CreateSnapshotRequest build(Map<String,?> map) throws Exception
Exception
public CreateSnapshotRequest setCategory(String category)
public String getCategory()
public CreateSnapshotRequest setClientToken(String clientToken)
public String getClientToken()
public CreateSnapshotRequest setDescription(String description)
public String getDescription()
public CreateSnapshotRequest setDiskId(String diskId)
public String getDiskId()
public CreateSnapshotRequest setInstantAccess(Boolean instantAccess)
public Boolean getInstantAccess()
public CreateSnapshotRequest setInstantAccessRetentionDays(Integer instantAccessRetentionDays)
public Integer getInstantAccessRetentionDays()
public CreateSnapshotRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateSnapshotRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateSnapshotRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateSnapshotRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateSnapshotRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateSnapshotRequest setRetentionDays(Integer retentionDays)
public Integer getRetentionDays()
public CreateSnapshotRequest setSnapshotName(String snapshotName)
public String getSnapshotName()
public CreateSnapshotRequest setStorageLocationArn(String storageLocationArn)
public String getStorageLocationArn()
public CreateSnapshotRequest setTag(List<CreateSnapshotRequest.CreateSnapshotRequestTag> tag)
public List<CreateSnapshotRequest.CreateSnapshotRequestTag> getTag()
Copyright © 2024. All rights reserved.