public class CreateSnapshotRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateSnapshotRequest.CreateSnapshotRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
category
The category of the snapshot.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the snapshot.
|
String |
diskId
The ID of the 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 ID of the resource group to which you want to assign the snapshot.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
Integer |
retentionDays
The retention period of the snapshot.
|
String |
snapshotName
The name of the snapshot.
|
String |
storageLocationArn
> This parameter is unavailable.
|
List<CreateSnapshotRequest.CreateSnapshotRequestTag> |
tag
The tags that you want to add to the snapshot.
|
构造器和说明 |
---|
CreateSnapshotRequest() |
@NameInMap(value="Category") public String category
The category of the snapshot. Valid values:
* Standard: regular snapshot
* Flash: local snapshot
> This parameter will be removed in the future. We recommend that you use the `InstantAccess` parameter to ensure future compatibility. This parameter and the `InstantAccess` parameter cannot be specified at the same time. For more information, see the "Description" section of this topic.
@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 value, but you must ensure that it is unique among different requests. **The token can only contain ASCII characters and cannot exceed 64 characters in length.** For more information, see [How to ensure idempotence](~~25693~~).
@NameInMap(value="Description") public String description
The description of the snapshot. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.
By default, this parameter is left empty.
@NameInMap(value="DiskId") public String diskId
The ID of the disk.
@NameInMap(value="InstantAccess") public Boolean instantAccess
Specifies whether to enable the instant access feature. Valid values:
* true: enables the instant access feature. The feature can be enabled only for enhanced SSDs (ESSDs).
**
**Note** After the instant access feature is enabled, an instant access snapshot is created and can be used to roll back disks or create disks across zones even if the snapshot is being created. The feature ensures that a new snapshot of an ESSD becomes available for use within 5 seconds regardless of the ESSD size.
* false: disables the instant access feature. In this case, regular snapshots are created.
Default value: false.
> This parameter and the `Category` parameter cannot be specified at the same time. For more information, see the "Description" section of this topic.
@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 if you set the `InstantAccess` parameter to true. Unit: days. Valid values: 1 to 65535.
By default, the value of this parameter is the same as the value of the `RetentionDays` parameter.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which you want to assign the snapshot.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="RetentionDays") public Integer retentionDays
The retention period of the snapshot. Valid values: 1 to 65536. Unit: days. The snapshot is automatically released when its retention period expires.
By default, this parameter is left empty, which specifies that the snapshot is not automatically released.
@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 (\_), and hyphens (-).
The name cannot start with `auto` because snapshots whose names start with auto are recognized as automatic snapshots.
@NameInMap(value="StorageLocationArn") public String storageLocationArn
> This parameter is unavailable.
@NameInMap(value="Tag") public List<CreateSnapshotRequest.CreateSnapshotRequestTag> tag
The tags that you want 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 © 2023. All rights reserved.