public class DescribeSnapshotsRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
DescribeSnapshotsRequest.DescribeSnapshotsRequestFilter |
static class |
DescribeSnapshotsRequest.DescribeSnapshotsRequestTag |
限定符和类型 | 字段和说明 |
---|---|
String |
category
The category of the snapshot.
|
String |
diskId
The disk ID.
|
Boolean |
dryRun
Specifies whether to perform only a dry run, without performing the actual request.
|
Boolean |
encrypted
Specifies whether the snapshot is encrypted.
|
List<DescribeSnapshotsRequest.DescribeSnapshotsRequestFilter> |
filter |
String |
instanceId
The instance ID.
|
String |
KMSKeyId
The ID of the Key Management Service (KMS) key that is used for the data disk.
|
Integer |
maxResults
The maximum number of entries per page.
|
String |
nextToken
The pagination token that is used in the next request to retrieve a new page of results.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
pageNumber
The page number.
|
Integer |
pageSize
The number of entries per page.
|
String |
regionId
The region ID of the disk.
|
String |
resourceGroupId
The resource group ID.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
snapshotIds
The IDs of snapshots.
|
String |
snapshotLinkId
The snapshot chain ID.
|
String |
snapshotName
The name of the snapshot.
|
String |
snapshotType
The type of the snapshot.
|
String |
sourceDiskType
The source disk type of the snapshot.
|
String |
status
The status of the snapshot.
|
List<DescribeSnapshotsRequest.DescribeSnapshotsRequestTag> |
tag
The tags of the snapshot.
|
String |
usage
Specifies whether the snapshot has been used to create custom images or disks.
|
构造器和说明 |
---|
DescribeSnapshotsRequest() |
@NameInMap(value="Filter") public List<DescribeSnapshotsRequest.DescribeSnapshotsRequestFilter> filter
@NameInMap(value="Category") public String category
The category of the snapshot. Valid values:
The local snapshot feature is replaced by the instant access feature. When you specify this parameter, take note of the following items:
example:This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility.
Standard
@NameInMap(value="DiskId") public String diskId
The disk ID.
example:d-bp67acfmxazb4p****
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform only a dry run, without performing the actual request. Valid values:
false
@NameInMap(value="Encrypted") public Boolean encrypted
Specifies whether the snapshot is encrypted. Default value: false.
example:false
@NameInMap(value="InstanceId") public String instanceId
The instance ID.
example:i-bp67acfmxazb4p****
@NameInMap(value="KMSKeyId") public String KMSKeyId
The ID of the Key Management Service (KMS) key that is used for the data disk.
example:0e478b7a-4262-4802-b8cb-00d3fb40****
@NameInMap(value="MaxResults") public Integer maxResults
The maximum number of entries per page. Valid values: 1 to 100.
Default value: 10.
example:10
@NameInMap(value="NextToken") public String nextToken
The pagination token that is used in the next request to retrieve a new page of results. You must specify the token that is obtained from the previous query as the value of NextToken.
example:caeba0bbb2be03f84eb48b699f0a4883
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PageNumber") public Integer pageNumber
The page number. Pages start from page 1.
Default value: 1.
example:1
@NameInMap(value="PageSize") public Integer pageSize
The number of entries per page. Valid values: 1 to 100.
Default value: 10.
example:10
@NameInMap(value="RegionId") public String regionId
The region ID of the disk. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The resource group ID. If you configure this parameter to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response.
example:Resources in the default resource group are displayed in the response regardless of whether you configure this parameter.
rg-bp67acfmxazb4p****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SnapshotIds") public String snapshotIds
The IDs of snapshots. You can specify a JSON array that consists of up to 100 snapshot IDs. Separate the snapshot IDs with commas (,).
example:["s-bp67acfmxazb4p****", "s-bp67acfmxazb5p****", … "s-bp67acfmxazb6p****"]
@NameInMap(value="SnapshotLinkId") public String snapshotLinkId
The snapshot chain ID. You can specify a JSON array that contains up to 100 snapshot chain IDs. Separate the snapshot chain IDs with commas (,).
example:["sl-bp1grgphbcc9brb5****", "sl-bp1c4izumvq0i5bs****", … "sl-bp1akk7isz866dds****"]
@NameInMap(value="SnapshotName") public String snapshotName
The name of the snapshot.
example:testSnapshotName
@NameInMap(value="SnapshotType") public String snapshotType
The type of the snapshot. Valid values:
all
@NameInMap(value="SourceDiskType") public String sourceDiskType
The source disk type of the snapshot. Valid values:
example:The value of this parameter is case-insensitive.
Data
@NameInMap(value="Status") public String status
The status of the snapshot. Valid values:
all
@NameInMap(value="Tag") public List<DescribeSnapshotsRequest.DescribeSnapshotsRequestTag> tag
The tags of the snapshot.
@NameInMap(value="Usage") public String usage
Specifies whether the snapshot has been used to create custom images or disks. Valid values:
none
public static DescribeSnapshotsRequest build(Map<String,?> map) throws Exception
Exception
public DescribeSnapshotsRequest setFilter(List<DescribeSnapshotsRequest.DescribeSnapshotsRequestFilter> filter)
public List<DescribeSnapshotsRequest.DescribeSnapshotsRequestFilter> getFilter()
public DescribeSnapshotsRequest setCategory(String category)
public String getCategory()
public DescribeSnapshotsRequest setDiskId(String diskId)
public String getDiskId()
public DescribeSnapshotsRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public DescribeSnapshotsRequest setEncrypted(Boolean encrypted)
public Boolean getEncrypted()
public DescribeSnapshotsRequest setInstanceId(String instanceId)
public String getInstanceId()
public DescribeSnapshotsRequest setKMSKeyId(String KMSKeyId)
public String getKMSKeyId()
public DescribeSnapshotsRequest setMaxResults(Integer maxResults)
public Integer getMaxResults()
public DescribeSnapshotsRequest setNextToken(String nextToken)
public String getNextToken()
public DescribeSnapshotsRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public DescribeSnapshotsRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public DescribeSnapshotsRequest setPageNumber(Integer pageNumber)
public Integer getPageNumber()
public DescribeSnapshotsRequest setPageSize(Integer pageSize)
public Integer getPageSize()
public DescribeSnapshotsRequest setRegionId(String regionId)
public String getRegionId()
public DescribeSnapshotsRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public DescribeSnapshotsRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public DescribeSnapshotsRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public DescribeSnapshotsRequest setSnapshotIds(String snapshotIds)
public String getSnapshotIds()
public DescribeSnapshotsRequest setSnapshotLinkId(String snapshotLinkId)
public String getSnapshotLinkId()
public DescribeSnapshotsRequest setSnapshotName(String snapshotName)
public String getSnapshotName()
public DescribeSnapshotsRequest setSnapshotType(String snapshotType)
public String getSnapshotType()
public DescribeSnapshotsRequest setSourceDiskType(String sourceDiskType)
public String getSourceDiskType()
public DescribeSnapshotsRequest setStatus(String status)
public String getStatus()
public DescribeSnapshotsRequest setTag(List<DescribeSnapshotsRequest.DescribeSnapshotsRequestTag> tag)
public List<DescribeSnapshotsRequest.DescribeSnapshotsRequestTag> getTag()
public DescribeSnapshotsRequest setUsage(String usage)
public String getUsage()
Copyright © 2024. All rights reserved.