com.aliyun.sdk.service.ens20171110.models.DescribeSnapshotsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-ens20171110 Show documentation
Show all versions of alibabacloud-ens20171110 Show documentation
Alibaba Cloud Ens (20171110) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ens20171110.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeSnapshotsRequest} extends {@link RequestModel}
*
* DescribeSnapshotsRequest
*/
public class DescribeSnapshotsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DiskId")
private String diskId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnsRegionId")
private String ensRegionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnsRegionIds")
private String ensRegionIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SnapshotId")
private String snapshotId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SnapshotName")
private String snapshotName;
private DescribeSnapshotsRequest(Builder builder) {
super(builder);
this.diskId = builder.diskId;
this.ensRegionId = builder.ensRegionId;
this.ensRegionIds = builder.ensRegionIds;
this.instanceId = builder.instanceId;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.snapshotId = builder.snapshotId;
this.snapshotName = builder.snapshotName;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSnapshotsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return diskId
*/
public String getDiskId() {
return this.diskId;
}
/**
* @return ensRegionId
*/
public String getEnsRegionId() {
return this.ensRegionId;
}
/**
* @return ensRegionIds
*/
public String getEnsRegionIds() {
return this.ensRegionIds;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return snapshotId
*/
public String getSnapshotId() {
return this.snapshotId;
}
/**
* @return snapshotName
*/
public String getSnapshotName() {
return this.snapshotName;
}
public static final class Builder extends Request.Builder {
private String diskId;
private String ensRegionId;
private String ensRegionIds;
private String instanceId;
private Integer pageNumber;
private Integer pageSize;
private String snapshotId;
private String snapshotName;
private Builder() {
super();
}
private Builder(DescribeSnapshotsRequest request) {
super(request);
this.diskId = request.diskId;
this.ensRegionId = request.ensRegionId;
this.ensRegionIds = request.ensRegionIds;
this.instanceId = request.instanceId;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.snapshotId = request.snapshotId;
this.snapshotName = request.snapshotName;
}
/**
* The ID of the disk.
*
* example:
* d-bp67acfmxazb4p****
*/
public Builder diskId(String diskId) {
this.putQueryParameter("DiskId", diskId);
this.diskId = diskId;
return this;
}
/**
* The region ID of the disk. You can call the DescribeRegions operation to query the most recent list of regions.
*
* example:
* cn-hangzhou
*/
public Builder ensRegionId(String ensRegionId) {
this.putQueryParameter("EnsRegionId", ensRegionId);
this.ensRegionId = ensRegionId;
return this;
}
/**
* EnsRegionIds.
*/
public Builder ensRegionIds(String ensRegionIds) {
this.putQueryParameter("EnsRegionIds", ensRegionIds);
this.ensRegionIds = ensRegionIds;
return this;
}
/**
* The ID of the instance.
*
* example:
* i-bp67acfmxazb4p****
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* The page number of the returned page.
*
* example:
* 1
*/
public Builder pageNumber(Integer pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries per page.
*
* example:
* 10
*/
public Builder pageSize(Integer pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
return this;
}
/**
* The ID of the snapshot. The value can be a JSON array that consists of up to 100 snapshot IDs. Separate the snapshot IDs with commas (,).
*
* example:
* sp-bp67acfmxazb4p****
*/
public Builder snapshotId(String snapshotId) {
this.putQueryParameter("SnapshotId", snapshotId);
this.snapshotId = snapshotId;
return this;
}
/**
* SnapshotName.
*/
public Builder snapshotName(String snapshotName) {
this.putQueryParameter("SnapshotName", snapshotName);
this.snapshotName = snapshotName;
return this;
}
@Override
public DescribeSnapshotsRequest build() {
return new DescribeSnapshotsRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy