com.aliyuncs.ecs.model.v20140526.DescribeReservedInstancesRequest 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
/*
* 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 DescribeReservedInstancesRequest extends RpcAcsRequest {
private Long resourceOwnerId;
private Integer pageNumber;
private String lockReason;
private String scope;
private Integer pageSize;
private String instanceType;
private List tags;
private String resourceOwnerAccount;
private String ownerAccount;
private String instanceTypeFamily;
private Long ownerId;
private List reservedInstanceIds;
private String offeringType;
private String zoneId;
private String reservedInstanceName;
private List statuss;
private String allocationType;
public DescribeReservedInstancesRequest() {
super("Ecs", "2014-05-26", "DescribeReservedInstances", "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 Integer getPageNumber() {
return this.pageNumber;
}
public void setPageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
if(pageNumber != null){
putQueryParameter("PageNumber", pageNumber.toString());
}
}
public String getLockReason() {
return this.lockReason;
}
public void setLockReason(String lockReason) {
this.lockReason = lockReason;
if(lockReason != null){
putQueryParameter("LockReason", lockReason);
}
}
public String getScope() {
return this.scope;
}
public void setScope(String scope) {
this.scope = scope;
if(scope != null){
putQueryParameter("Scope", scope);
}
}
public Integer getPageSize() {
return this.pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
if(pageSize != null){
putQueryParameter("PageSize", pageSize.toString());
}
}
public String getInstanceType() {
return this.instanceType;
}
public void setInstanceType(String instanceType) {
this.instanceType = instanceType;
if(instanceType != null){
putQueryParameter("InstanceType", instanceType);
}
}
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) + ".Key" , tags.get(depth1).getKey());
putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue());
}
}
}
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 String getInstanceTypeFamily() {
return this.instanceTypeFamily;
}
public void setInstanceTypeFamily(String instanceTypeFamily) {
this.instanceTypeFamily = instanceTypeFamily;
if(instanceTypeFamily != null){
putQueryParameter("InstanceTypeFamily", instanceTypeFamily);
}
}
public Long getOwnerId() {
return this.ownerId;
}
public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}
public List getReservedInstanceIds() {
return this.reservedInstanceIds;
}
public void setReservedInstanceIds(List reservedInstanceIds) {
this.reservedInstanceIds = reservedInstanceIds;
if (reservedInstanceIds != null) {
for (int i = 0; i < reservedInstanceIds.size(); i++) {
putQueryParameter("ReservedInstanceId." + (i + 1) , reservedInstanceIds.get(i));
}
}
}
public String getOfferingType() {
return this.offeringType;
}
public void setOfferingType(String offeringType) {
this.offeringType = offeringType;
if(offeringType != null){
putQueryParameter("OfferingType", offeringType);
}
}
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
if(zoneId != null){
putQueryParameter("ZoneId", zoneId);
}
}
public String getReservedInstanceName() {
return this.reservedInstanceName;
}
public void setReservedInstanceName(String reservedInstanceName) {
this.reservedInstanceName = reservedInstanceName;
if(reservedInstanceName != null){
putQueryParameter("ReservedInstanceName", reservedInstanceName);
}
}
public List getStatuss() {
return this.statuss;
}
public void setStatuss(List statuss) {
this.statuss = statuss;
if (statuss != null) {
for (int i = 0; i < statuss.size(); i++) {
putQueryParameter("Status." + (i + 1) , statuss.get(i));
}
}
}
public String getAllocationType() {
return this.allocationType;
}
public void setAllocationType(String allocationType) {
this.allocationType = allocationType;
if(allocationType != null){
putQueryParameter("AllocationType", allocationType);
}
}
public static class Tag {
private String key;
private String value;
public String getKey() {
return this.key;
}
public void setKey(String key) {
this.key = key;
}
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
}
@Override
public Class getResponseClass() {
return DescribeReservedInstancesResponse.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy