public static final class DescribeSnapshotsRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DescribeSnapshotsRequest.Builder |
apiVersion(String apiVersion)
The version of the anti-ransomware policy.
|
DescribeSnapshotsRequest |
build() |
DescribeSnapshotsRequest.Builder |
currentPage(Integer currentPage)
The number of the page to return.
|
DescribeSnapshotsRequest.Builder |
isAliYunEcs(String isAliYunEcs)
Specifies whether the server is an Elastic Compute Service (ECS) instance.
|
DescribeSnapshotsRequest.Builder |
machineRegion(String machineRegion)
The region in which the server resides.
|
DescribeSnapshotsRequest.Builder |
machineRemark(String machineRemark)
The name or IP address of the server.
|
DescribeSnapshotsRequest.Builder |
nextToken(String nextToken)
The starting position of the query.
|
DescribeSnapshotsRequest.Builder |
pageSize(Integer pageSize)
The number of entries to return on each page.
|
DescribeSnapshotsRequest.Builder |
statusList(String statusList)
The status of backup snapshots from which data can be restored.
|
DescribeSnapshotsRequest.Builder |
uuid(String uuid)
The UUID of the server.
|
public DescribeSnapshotsRequest.Builder apiVersion(String apiVersion)
The version of the anti-ransomware policy. Valid values:
This parameter is required.
example:2.0.0
public DescribeSnapshotsRequest.Builder currentPage(Integer currentPage)
The number of the page to return. Default value: 1.
example:1
public DescribeSnapshotsRequest.Builder isAliYunEcs(String isAliYunEcs)
Specifies whether the server is an Elastic Compute Service (ECS) instance. Valid values:
true
public DescribeSnapshotsRequest.Builder machineRegion(String machineRegion)
The region in which the server resides.
example:If the Uuid parameter is not specified, this parameter is required.
us-east-1
public DescribeSnapshotsRequest.Builder machineRemark(String machineRemark)
The name or IP address of the server.
example:192.168.XX.XX
public DescribeSnapshotsRequest.Builder nextToken(String nextToken)
The starting position of the query. If this parameter is left empty, the query starts from the beginning.
example:If you call the operation for the first time, you do not need to specify the parameter. The response to the first call contains the token that can be used for the second call. Each subsequent response contains the token that can be used for the next call.
CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJAB4SwmEAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM0NzY3YTZjNjI3NjZmNmU3MjcxNjk3NDY5MzY3MjY4****
public DescribeSnapshotsRequest.Builder pageSize(Integer pageSize)
The number of entries to return on each page.
This parameter is required.
example:20
public DescribeSnapshotsRequest.Builder statusList(String statusList)
The status of backup snapshots from which data can be restored. Valid values:
["COMPLETE"]
public DescribeSnapshotsRequest.Builder uuid(String uuid)
The UUID of the server.
example:You can call the DescribeBackupPolicy operation to query the UUIDs of servers.
061d8042-59ff-416e-bc33-294a1cf5****
public DescribeSnapshotsRequest build()
Copyright © 2026. All rights reserved.