public static final class CreateSnapshotGroupRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateSnapshotGroupRequest |
build() |
CreateSnapshotGroupRequest.Builder |
description(String description)
The description of the snapshot-consistent group.
|
CreateSnapshotGroupRequest.Builder |
diskId(List<String> diskId)
The ID of disk N for which you want to create snapshots.
|
CreateSnapshotGroupRequest.Builder |
excludeDiskId(List<String> excludeDiskId)
The ID of disk N for which you do not need to create snapshots.
|
CreateSnapshotGroupRequest.Builder |
instanceId(String instanceId)
The ID of the instance.
|
CreateSnapshotGroupRequest.Builder |
instantAccess(Boolean instantAccess)
Specifies whether to enable the instant access feature.
|
CreateSnapshotGroupRequest.Builder |
instantAccessRetentionDays(Integer instantAccessRetentionDays)
Specify 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.
|
CreateSnapshotGroupRequest.Builder |
tag(List<CreateSnapshotGroupRequest.Tag> tag)
The tags to add to the snapshot-consistent group.
|
public CreateSnapshotGroupRequest.Builder description(String description)
public CreateSnapshotGroupRequest.Builder diskId(List<String> diskId)
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.
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 both ExcludeDiskId.N and `DiskId.N`.
public CreateSnapshotGroupRequest.Builder instanceId(String instanceId)
public CreateSnapshotGroupRequest.Builder instantAccess(Boolean instantAccess)
* true: enables the instant access feature. * false: disables the instant access feature. Default value: false.
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 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.
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 © 2023. All rights reserved.