public static final class CreateSnapshotGroupRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateSnapshotGroupRequest |
build() |
CreateSnapshotGroupRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateSnapshotGroupRequest.Builder |
description(String description)
The description of the snapshot-consistent group.
|
CreateSnapshotGroupRequest.Builder |
diskId(List<String> diskId)
The ID of cloud disk N for which you want to create snapshots.
|
CreateSnapshotGroupRequest.Builder |
excludeDiskId(List<String> excludeDiskId)
The ID of cloud disk N for which you do not want to create snapshots.
|
CreateSnapshotGroupRequest.Builder |
instanceId(String instanceId)
The instance ID.
|
CreateSnapshotGroupRequest.Builder |
instantAccess(Boolean instantAccess)
Specifies whether to enable the instant access feature.
|
CreateSnapshotGroupRequest.Builder |
instantAccessRetentionDays(Integer instantAccessRetentionDays)
The number of days for which the instant access feature is available.
|
CreateSnapshotGroupRequest.Builder |
name(String name)
The name of the snapshot-consistent group.
|
CreateSnapshotGroupRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateSnapshotGroupRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateSnapshotGroupRequest.Builder |
regionId(String regionId)
The region ID of the instance.
|
CreateSnapshotGroupRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the snapshot-consistent group belongs.
|
CreateSnapshotGroupRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateSnapshotGroupRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateSnapshotGroupRequest.Builder |
storageLocationArn(String storageLocationArn)
> This parameter is unavailable for public use.
|
CreateSnapshotGroupRequest.Builder |
tag(List<CreateSnapshotGroupRequest.Tag> tag)
The list of tags.
|
public CreateSnapshotGroupRequest.Builder clientToken(String clientToken)
public CreateSnapshotGroupRequest.Builder description(String description)
public CreateSnapshotGroupRequest.Builder diskId(List<String> diskId)
Take note of the following items: * You cannot specify both DiskId.N and `ExcludeDiskId.N` in the same request. * If `InstanceId` is set, you can use DiskId.N to specify only cloud disks attached to the instance specified by InstanceId, and you cannot use DiskId.N to specify cloud disks attached to multiple instances.
public CreateSnapshotGroupRequest.Builder excludeDiskId(List<String> excludeDiskId)
This parameter is empty by default, which indicates that snapshots are created for all the disks of the instance. > You cannot specify ExcludeDiskId.N and `DiskId.N` in the same request.
public CreateSnapshotGroupRequest.Builder instanceId(String instanceId)
public CreateSnapshotGroupRequest.Builder instantAccess(Boolean instantAccess)
* true * false Default value: false. > This parameter is no longer used. By default, new normal 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](~~193667~~).
public CreateSnapshotGroupRequest.Builder instantAccessRetentionDays(Integer instantAccessRetentionDays)
This parameter takes effect only when `InstantAccess` is set to true. The instant access feature is automatically disabled when the specified duration ends. This parameter is left empty by default, which indicates that the instant access feature is automatically disabled for snapshots when the snapshots are released. > This parameter is no longer used. By default, new normal 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](~~193667~~).
public CreateSnapshotGroupRequest.Builder name(String name)
public CreateSnapshotGroupRequest.Builder ownerAccount(String ownerAccount)
public CreateSnapshotGroupRequest.Builder ownerId(Long ownerId)
public CreateSnapshotGroupRequest.Builder regionId(String regionId)
public CreateSnapshotGroupRequest.Builder resourceGroupId(String resourceGroupId)
public CreateSnapshotGroupRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateSnapshotGroupRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateSnapshotGroupRequest.Builder storageLocationArn(String storageLocationArn)
public CreateSnapshotGroupRequest.Builder tag(List<CreateSnapshotGroupRequest.Tag> tag)
public CreateSnapshotGroupRequest build()
Copyright © 2024. All rights reserved.