com.aliyuncs.ecs.model.v20140526.DescribeDisksRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-ecs Show documentation
Show all versions of aliyun-java-sdk-ecs Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
The newest version!
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.ecs.model.v20140526;
import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.ecs.Endpoint;
/**
* @author auto create
* @version
*/
public class DescribeDisksRequest extends RpcAcsRequest {
private Long resourceOwnerId;
private String filter2Value;
private String autoSnapshotPolicyId;
private String diskName;
private Boolean deleteAutoSnapshot;
private String resourceGroupId;
private String diskChargeType;
private String lockReason;
private String filter1Key;
private List tags;
private Boolean enableAutoSnapshot;
private Boolean dryRun;
private String filter1Value;
private Boolean portable;
private Long ownerId;
private List additionalAttributess;
private String instanceId;
private String zoneId;
private Integer maxResults;
private String status;
private String snapshotId;
private Integer pageNumber;
private String nextToken;
private Integer pageSize;
private String diskIds;
private String multiAttach;
private Boolean deleteWithInstance;
private String resourceOwnerAccount;
private String ownerAccount;
private Boolean enableAutomatedSnapshotPolicy;
private String filter2Key;
private String diskType;
private Boolean enableShared;
private Boolean encrypted;
private String category;
private String kMSKeyId;
public DescribeDisksRequest() {
super("Ecs", "2014-05-26", "DescribeDisks", "ecs");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public void setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
if(resourceOwnerId != null){
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
}
}
public String getFilter2Value() {
return this.filter2Value;
}
public void setFilter2Value(String filter2Value) {
this.filter2Value = filter2Value;
if(filter2Value != null){
putQueryParameter("Filter.2.Value", filter2Value);
}
}
public String getAutoSnapshotPolicyId() {
return this.autoSnapshotPolicyId;
}
public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) {
this.autoSnapshotPolicyId = autoSnapshotPolicyId;
if(autoSnapshotPolicyId != null){
putQueryParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId);
}
}
public String getDiskName() {
return this.diskName;
}
public void setDiskName(String diskName) {
this.diskName = diskName;
if(diskName != null){
putQueryParameter("DiskName", diskName);
}
}
public Boolean getDeleteAutoSnapshot() {
return this.deleteAutoSnapshot;
}
public void setDeleteAutoSnapshot(Boolean deleteAutoSnapshot) {
this.deleteAutoSnapshot = deleteAutoSnapshot;
if(deleteAutoSnapshot != null){
putQueryParameter("DeleteAutoSnapshot", deleteAutoSnapshot.toString());
}
}
public String getResourceGroupId() {
return this.resourceGroupId;
}
public void setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
if(resourceGroupId != null){
putQueryParameter("ResourceGroupId", resourceGroupId);
}
}
public String getDiskChargeType() {
return this.diskChargeType;
}
public void setDiskChargeType(String diskChargeType) {
this.diskChargeType = diskChargeType;
if(diskChargeType != null){
putQueryParameter("DiskChargeType", diskChargeType);
}
}
public String getLockReason() {
return this.lockReason;
}
public void setLockReason(String lockReason) {
this.lockReason = lockReason;
if(lockReason != null){
putQueryParameter("LockReason", lockReason);
}
}
public String getFilter1Key() {
return this.filter1Key;
}
public void setFilter1Key(String filter1Key) {
this.filter1Key = filter1Key;
if(filter1Key != null){
putQueryParameter("Filter.1.Key", filter1Key);
}
}
public List getTags() {
return this.tags;
}
public void setTags(List tags) {
this.tags = tags;
if (tags != null) {
for (int depth1 = 0; depth1 < tags.size(); depth1++) {
putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue());
putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey());
}
}
}
public Boolean getEnableAutoSnapshot() {
return this.enableAutoSnapshot;
}
public void setEnableAutoSnapshot(Boolean enableAutoSnapshot) {
this.enableAutoSnapshot = enableAutoSnapshot;
if(enableAutoSnapshot != null){
putQueryParameter("EnableAutoSnapshot", enableAutoSnapshot.toString());
}
}
public Boolean getDryRun() {
return this.dryRun;
}
public void setDryRun(Boolean dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun.toString());
}
}
public String getFilter1Value() {
return this.filter1Value;
}
public void setFilter1Value(String filter1Value) {
this.filter1Value = filter1Value;
if(filter1Value != null){
putQueryParameter("Filter.1.Value", filter1Value);
}
}
public Boolean getPortable() {
return this.portable;
}
public void setPortable(Boolean portable) {
this.portable = portable;
if(portable != null){
putQueryParameter("Portable", portable.toString());
}
}
public Long getOwnerId() {
return this.ownerId;
}
public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}
public List getAdditionalAttributess() {
return this.additionalAttributess;
}
public void setAdditionalAttributess(List additionalAttributess) {
this.additionalAttributess = additionalAttributess;
if (additionalAttributess != null) {
for (int i = 0; i < additionalAttributess.size(); i++) {
putQueryParameter("AdditionalAttributes." + (i + 1) , additionalAttributess.get(i));
}
}
}
public String getInstanceId() {
return this.instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putQueryParameter("InstanceId", instanceId);
}
}
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
if(zoneId != null){
putQueryParameter("ZoneId", zoneId);
}
}
public Integer getMaxResults() {
return this.maxResults;
}
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
if(maxResults != null){
putQueryParameter("MaxResults", maxResults.toString());
}
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
if(status != null){
putQueryParameter("Status", status);
}
}
public String getSnapshotId() {
return this.snapshotId;
}
public void setSnapshotId(String snapshotId) {
this.snapshotId = snapshotId;
if(snapshotId != null){
putQueryParameter("SnapshotId", snapshotId);
}
}
public Integer getPageNumber() {
return this.pageNumber;
}
public void setPageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
if(pageNumber != null){
putQueryParameter("PageNumber", pageNumber.toString());
}
}
public String getNextToken() {
return this.nextToken;
}
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
if(nextToken != null){
putQueryParameter("NextToken", nextToken);
}
}
public Integer getPageSize() {
return this.pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
if(pageSize != null){
putQueryParameter("PageSize", pageSize.toString());
}
}
public String getDiskIds() {
return this.diskIds;
}
public void setDiskIds(String diskIds) {
this.diskIds = diskIds;
if(diskIds != null){
putQueryParameter("DiskIds", diskIds);
}
}
public String getMultiAttach() {
return this.multiAttach;
}
public void setMultiAttach(String multiAttach) {
this.multiAttach = multiAttach;
if(multiAttach != null){
putQueryParameter("MultiAttach", multiAttach);
}
}
public Boolean getDeleteWithInstance() {
return this.deleteWithInstance;
}
public void setDeleteWithInstance(Boolean deleteWithInstance) {
this.deleteWithInstance = deleteWithInstance;
if(deleteWithInstance != null){
putQueryParameter("DeleteWithInstance", deleteWithInstance.toString());
}
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
if(resourceOwnerAccount != null){
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
}
public String getOwnerAccount() {
return this.ownerAccount;
}
public void setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
if(ownerAccount != null){
putQueryParameter("OwnerAccount", ownerAccount);
}
}
public Boolean getEnableAutomatedSnapshotPolicy() {
return this.enableAutomatedSnapshotPolicy;
}
public void setEnableAutomatedSnapshotPolicy(Boolean enableAutomatedSnapshotPolicy) {
this.enableAutomatedSnapshotPolicy = enableAutomatedSnapshotPolicy;
if(enableAutomatedSnapshotPolicy != null){
putQueryParameter("EnableAutomatedSnapshotPolicy", enableAutomatedSnapshotPolicy.toString());
}
}
public String getFilter2Key() {
return this.filter2Key;
}
public void setFilter2Key(String filter2Key) {
this.filter2Key = filter2Key;
if(filter2Key != null){
putQueryParameter("Filter.2.Key", filter2Key);
}
}
public String getDiskType() {
return this.diskType;
}
public void setDiskType(String diskType) {
this.diskType = diskType;
if(diskType != null){
putQueryParameter("DiskType", diskType);
}
}
public Boolean getEnableShared() {
return this.enableShared;
}
public void setEnableShared(Boolean enableShared) {
this.enableShared = enableShared;
if(enableShared != null){
putQueryParameter("EnableShared", enableShared.toString());
}
}
public Boolean getEncrypted() {
return this.encrypted;
}
public void setEncrypted(Boolean encrypted) {
this.encrypted = encrypted;
if(encrypted != null){
putQueryParameter("Encrypted", encrypted.toString());
}
}
public String getCategory() {
return this.category;
}
public void setCategory(String category) {
this.category = category;
if(category != null){
putQueryParameter("Category", category);
}
}
public String getKMSKeyId() {
return this.kMSKeyId;
}
public void setKMSKeyId(String kMSKeyId) {
this.kMSKeyId = kMSKeyId;
if(kMSKeyId != null){
putQueryParameter("KMSKeyId", kMSKeyId);
}
}
public static class Tag {
private String value;
private String key;
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public String getKey() {
return this.key;
}
public void setKey(String key) {
this.key = key;
}
}
@Override
public Class getResponseClass() {
return DescribeDisksResponse.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy