public static final class DescribeSnapshotsRequest.Builder extends Object
public DescribeSnapshotsRequest.Builder filter(List<DescribeSnapshotsRequest.Filter> filter)
public DescribeSnapshotsRequest.Builder sourceRegionId(String sourceRegionId)
public DescribeSnapshotsRequest.Builder category(String category)
* Standard: normal snapshot * Flash: local snapshot The local snapshot feature is replaced by the instant access feature. When you specify this parameter, take note of the following items: * If you have used local snapshots before December 14, 2020, you can use this parameter. * If you have not used local snapshots before December 14, 2020, you cannot use this parameter. > This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility.
public DescribeSnapshotsRequest.Builder diskId(String diskId)
public DescribeSnapshotsRequest.Builder dryRun(Boolean dryRun)
* true: performs only a dry run. The system checks your AccessKey pair, the permissions of the RAM user, and the required parameters. If the request passes the dry run, the DryRunOperation error code is returned. Otherwise, an error message is returned. * false (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
public DescribeSnapshotsRequest.Builder encrypted(Boolean encrypted)
public DescribeSnapshotsRequest.Builder instanceId(String instanceId)
public DescribeSnapshotsRequest.Builder KMSKeyId(String KMSKeyId)
public DescribeSnapshotsRequest.Builder maxResults(Integer maxResults)
Default value: 10.
public DescribeSnapshotsRequest.Builder nextToken(String nextToken)
public DescribeSnapshotsRequest.Builder ownerAccount(String ownerAccount)
public DescribeSnapshotsRequest.Builder ownerId(Long ownerId)
public DescribeSnapshotsRequest.Builder pageNumber(Integer pageNumber)
Default value: 1.
public DescribeSnapshotsRequest.Builder pageSize(Integer pageSize)
Default value: 10.
public DescribeSnapshotsRequest.Builder regionId(String regionId)
public DescribeSnapshotsRequest.Builder resourceGroupId(String resourceGroupId)
> Resources in the default resource group are displayed in the response regardless of whether you configure this parameter.
public DescribeSnapshotsRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DescribeSnapshotsRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DescribeSnapshotsRequest.Builder snapshotIds(String snapshotIds)
public DescribeSnapshotsRequest.Builder snapshotLinkId(String snapshotLinkId)
public DescribeSnapshotsRequest.Builder snapshotName(String snapshotName)
public DescribeSnapshotsRequest.Builder snapshotType(String snapshotType)
* auto: automatic snapshot * user: manual snapshot * all (default): all snapshot types
public DescribeSnapshotsRequest.Builder sourceDiskType(String sourceDiskType)
* system: system disk. * data: data disk. > The value of this parameter is case-insensitive.
public DescribeSnapshotsRequest.Builder status(String status)
* progressing: The snapshot is being created. * accomplished: The snapshot is created. * failed: The snapshot fails to be created. * all (default): This value indicates all snapshot states.
public DescribeSnapshotsRequest.Builder tag(List<DescribeSnapshotsRequest.Tag> tag)
public DescribeSnapshotsRequest.Builder usage(String usage)
* image: The snapshot has been used to create custom images. * disk: The snapshot has been used to create disks. * image_disk: The snapshot has been used to create both custom images and data disks. * none: The snapshot has not been used to create custom images or disks.
public DescribeSnapshotsRequest build()
Copyright © 2024. All rights reserved.