public class CreateSnapshotGroupRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateSnapshotGroupRequest.CreateSnapshotGroupRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
description
The description of the snapshot-consistent group.
|
List<String> |
diskId
The ID of disk N for which you want to create snapshots.
|
List<String> |
excludeDiskId
The ID of disk N for which you do not need to create snapshots.
|
String |
instanceId
The ID of the instance.
|
Boolean |
instantAccess
Specifies whether to enable the instant access feature.
|
Integer |
instantAccessRetentionDays
Specify the number of days for which the instant access feature is available.
|
String |
name
The name of the snapshot-consistent group.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID of the instance.
|
String |
resourceGroupId
The ID of the resource group to which the snapshot-consistent group belongs.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
storageLocationArn
> This parameter is unavailable.
|
List<CreateSnapshotGroupRequest.CreateSnapshotGroupRequestTag> |
tag
The tags to add to the snapshot-consistent group.
|
构造器和说明 |
---|
CreateSnapshotGroupRequest() |
@NameInMap(value="Description") public String description
The description of the snapshot-consistent group. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.
@NameInMap(value="DiskId") public List<String> diskId
The ID of disk N for which you want to create snapshots. You can specify multiple disk IDs across instances with the same zone. Valid values of N: 1 to 16. A single snapshot-consistent group can contain snapshots of up to 16 disks and cannot exceed 32 TiB in size.
When you call this operation, take note of the following items:
* You cannot specify both DiskId.N and `ExcludeDiskId.N`.
* If `InstanceId` is specified, DiskId.N is only used to specify the disks that are attached to the instance specified by InstanceId.
@NameInMap(value="ExcludeDiskId") public List<String> excludeDiskId
The ID of disk N for which you do not need to create snapshots. After this parameter is specified, the created snapshot-consistent group does not contain snapshots of the disk. Valid values of N: 1 to 16.
This parameter is empty by default, which indicates that snapshots are created for all the disks of the instance.
> You cannot specify both ExcludeDiskId.N and `DiskId.N`.
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance.
@NameInMap(value="InstantAccess") public Boolean instantAccess
Specifies whether to enable the instant access feature. Valid values:
* true: enables the instant access feature.
* false: disables the instant access feature.
Default value: false.
@NameInMap(value="InstantAccessRetentionDays") public Integer instantAccessRetentionDays
Specify the number of days for which the instant access feature is available. Unit: days. Valid values: 1 to 65535.
This parameter takes effect only when `InstantAccess` is set to true. The instant access feature is automatically disabled when the specified duration of the instant access feature expires.
This parameter is empty by default, which indicates that the expiration time of the instant access feature is determined by the time when the snapshots are released.
@NameInMap(value="Name") public String name
The name of the snapshot-consistent group. The name must be 2 to 128 characters in length, and contain letters, digits, periods (.), underscores (\_), hyphens (-), and colons (:). It must start with a letter and cannot start with `http://` or `https://`.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the instance. 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 the snapshot-consistent group belongs.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="StorageLocationArn") public String storageLocationArn
> This parameter is unavailable.
@NameInMap(value="Tag") public List<CreateSnapshotGroupRequest.CreateSnapshotGroupRequestTag> tag
The tags to add to the snapshot-consistent group.
public static CreateSnapshotGroupRequest build(Map<String,?> map) throws Exception
Exception
public CreateSnapshotGroupRequest setDescription(String description)
public String getDescription()
public CreateSnapshotGroupRequest setDiskId(List<String> diskId)
public CreateSnapshotGroupRequest setExcludeDiskId(List<String> excludeDiskId)
public CreateSnapshotGroupRequest setInstanceId(String instanceId)
public String getInstanceId()
public CreateSnapshotGroupRequest setInstantAccess(Boolean instantAccess)
public Boolean getInstantAccess()
public CreateSnapshotGroupRequest setInstantAccessRetentionDays(Integer instantAccessRetentionDays)
public Integer getInstantAccessRetentionDays()
public CreateSnapshotGroupRequest setName(String name)
public String getName()
public CreateSnapshotGroupRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateSnapshotGroupRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateSnapshotGroupRequest setRegionId(String regionId)
public String getRegionId()
public CreateSnapshotGroupRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateSnapshotGroupRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateSnapshotGroupRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateSnapshotGroupRequest setStorageLocationArn(String storageLocationArn)
public String getStorageLocationArn()
public CreateSnapshotGroupRequest setTag(List<CreateSnapshotGroupRequest.CreateSnapshotGroupRequestTag> tag)
public List<CreateSnapshotGroupRequest.CreateSnapshotGroupRequestTag> getTag()
Copyright © 2023. All rights reserved.