public static final class CreateSnapshotRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateSnapshotRequest |
build() |
CreateSnapshotRequest.Builder |
category(String category)
The category of the snapshot.
|
CreateSnapshotRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateSnapshotRequest.Builder |
description(String description)
The description of the snapshot.
|
CreateSnapshotRequest.Builder |
diskId(String diskId)
The ID of the disk.
|
CreateSnapshotRequest.Builder |
instantAccess(Boolean instantAccess)
Specifies whether to enable the instant access feature.
|
CreateSnapshotRequest.Builder |
instantAccessRetentionDays(Integer instantAccessRetentionDays)
The validity period of the instant access feature.
|
CreateSnapshotRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateSnapshotRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateSnapshotRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which you want to assign the snapshot.
|
CreateSnapshotRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateSnapshotRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateSnapshotRequest.Builder |
retentionDays(Integer retentionDays)
The retention period of the snapshot.
|
CreateSnapshotRequest.Builder |
snapshotName(String snapshotName)
The name of the snapshot.
|
CreateSnapshotRequest.Builder |
sourceRegionId(String sourceRegionId)
SourceRegionId.
|
CreateSnapshotRequest.Builder |
storageLocationArn(String storageLocationArn)
> This parameter is unavailable.
|
CreateSnapshotRequest.Builder |
tag(List<CreateSnapshotRequest.Tag> tag)
The tags that you want to add to the snapshot.
|
public CreateSnapshotRequest.Builder sourceRegionId(String sourceRegionId)
public CreateSnapshotRequest.Builder category(String category)
* 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.
public CreateSnapshotRequest.Builder clientToken(String clientToken)
public CreateSnapshotRequest.Builder description(String description)
By default, this parameter is left empty.
public CreateSnapshotRequest.Builder diskId(String diskId)
public CreateSnapshotRequest.Builder instantAccess(Boolean instantAccess)
* 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.
public CreateSnapshotRequest.Builder instantAccessRetentionDays(Integer instantAccessRetentionDays)
By default, the value of this parameter is the same as the value of the `RetentionDays` parameter.
public CreateSnapshotRequest.Builder ownerAccount(String ownerAccount)
public CreateSnapshotRequest.Builder ownerId(Long ownerId)
public CreateSnapshotRequest.Builder resourceGroupId(String resourceGroupId)
public CreateSnapshotRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateSnapshotRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateSnapshotRequest.Builder retentionDays(Integer retentionDays)
By default, this parameter is left empty, which specifies that the snapshot is not automatically released.
public CreateSnapshotRequest.Builder snapshotName(String snapshotName)
The name cannot start with `auto` because snapshots whose names start with auto are recognized as automatic snapshots.
public CreateSnapshotRequest.Builder storageLocationArn(String storageLocationArn)
public CreateSnapshotRequest.Builder tag(List<CreateSnapshotRequest.Tag> tag)
public CreateSnapshotRequest build()
Copyright © 2023. All rights reserved.