public static final class CreateSnapshotRequest.Builder extends Object
public CreateSnapshotRequest.Builder sourceRegionId(String sourceRegionId)
public CreateSnapshotRequest.Builder category(String category)
* Standard: normal snapshot * Flash: local snapshot > 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 CreateSnapshotRequest.Builder clientToken(String clientToken)
This parameter is empty by default, which indicates that the snapshot is not automatically released.
public CreateSnapshotRequest.Builder description(String description)
public CreateSnapshotRequest.Builder diskId(String diskId)
public CreateSnapshotRequest.Builder instantAccess(Boolean instantAccess)
* true: enables the instant access feature. This feature can be enabled only for ESSDs. * false: does not enable the instant access feature. If InstantAccess is set to false, a normal snapshot is created. 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 CreateSnapshotRequest.Builder instantAccessRetentionDays(Integer instantAccessRetentionDays)
By default, the value of this parameter is the same as that of `RetentionDays`. > 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 CreateSnapshotRequest.Builder ownerAccount(String ownerAccount)
public CreateSnapshotRequest.Builder ownerId(Long ownerId)
public CreateSnapshotRequest.Builder resourceGroupId(String resourceGroupId)
* Standard: normal 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 resourceOwnerAccount(String resourceOwnerAccount)
public CreateSnapshotRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateSnapshotRequest.Builder retentionDays(Integer retentionDays)
The name cannot start with `auto` because snapshots whose names start with auto are recognized as automatic snapshots.
public CreateSnapshotRequest.Builder snapshotName(String snapshotName)
It 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 © 2024. All rights reserved.