All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ecs20140526.models.DescribeDemandsRequest Maven / Gradle / Ivy

There is a newer version: 6.0.4
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;

import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link DescribeDemandsRequest} extends {@link RequestModel}
 *
 * 

DescribeDemandsRequest

*/ public class DescribeDemandsRequest extends Request { @Query @NameInMap("DemandId") private String demandId; @Query @NameInMap("DemandStatus") private java.util.List < String > demandStatus; @Query @NameInMap("DemandType") private String demandType; @Query @NameInMap("DryRun") private Boolean dryRun; @Query @NameInMap("InstanceChargeType") private String instanceChargeType; @Query @NameInMap("InstanceType") private String instanceType; @Query @NameInMap("InstanceTypeFamily") private String instanceTypeFamily; @Query @NameInMap("OwnerAccount") private String ownerAccount; @Query @NameInMap("OwnerId") private Long ownerId; @Query @NameInMap("PageNumber") private Integer pageNumber; @Query @NameInMap("PageSize") @Validation(maximum = 100, minimum = 1) private Integer pageSize; @Query @NameInMap("RegionId") @Validation(required = true) private String regionId; @Query @NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @Query @NameInMap("ResourceOwnerId") private Long resourceOwnerId; @Query @NameInMap("Tag") private java.util.List < Tag> tag; @Query @NameInMap("ZoneId") private String zoneId; private DescribeDemandsRequest(Builder builder) { super(builder); this.demandId = builder.demandId; this.demandStatus = builder.demandStatus; this.demandType = builder.demandType; this.dryRun = builder.dryRun; this.instanceChargeType = builder.instanceChargeType; this.instanceType = builder.instanceType; this.instanceTypeFamily = builder.instanceTypeFamily; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.tag = builder.tag; this.zoneId = builder.zoneId; } public static Builder builder() { return new Builder(); } public static DescribeDemandsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return demandId */ public String getDemandId() { return this.demandId; } /** * @return demandStatus */ public java.util.List < String > getDemandStatus() { return this.demandStatus; } /** * @return demandType */ public String getDemandType() { return this.demandType; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return instanceChargeType */ public String getInstanceChargeType() { return this.instanceChargeType; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } /** * @return instanceTypeFamily */ public String getInstanceTypeFamily() { return this.instanceTypeFamily; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return tag */ public java.util.List < Tag> getTag() { return this.tag; } /** * @return zoneId */ public String getZoneId() { return this.zoneId; } public static final class Builder extends Request.Builder { private String demandId; private java.util.List < String > demandStatus; private String demandType; private Boolean dryRun; private String instanceChargeType; private String instanceType; private String instanceTypeFamily; private String ownerAccount; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List < Tag> tag; private String zoneId; private Builder() { super(); } private Builder(DescribeDemandsRequest request) { super(request); this.demandId = request.demandId; this.demandStatus = request.demandStatus; this.demandType = request.demandType; this.dryRun = request.dryRun; this.instanceChargeType = request.instanceChargeType; this.instanceType = request.instanceType; this.instanceTypeFamily = request.instanceTypeFamily; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.tag = request.tag; this.zoneId = request.zoneId; } /** * DemandId. */ public Builder demandId(String demandId) { this.putQueryParameter("DemandId", demandId); this.demandId = demandId; return this; } /** * DemandStatus. */ public Builder demandStatus(java.util.List < String > demandStatus) { this.putQueryParameter("DemandStatus", demandStatus); this.demandStatus = demandStatus; return this; } /** * DemandType. */ public Builder demandType(String demandType) { this.putQueryParameter("DemandType", demandType); this.demandType = demandType; return this; } /** * DryRun. */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * InstanceChargeType. */ public Builder instanceChargeType(String instanceChargeType) { this.putQueryParameter("InstanceChargeType", instanceChargeType); this.instanceChargeType = instanceChargeType; return this; } /** * InstanceType. */ public Builder instanceType(String instanceType) { this.putQueryParameter("InstanceType", instanceType); this.instanceType = instanceType; return this; } /** * InstanceTypeFamily. */ public Builder instanceTypeFamily(String instanceTypeFamily) { this.putQueryParameter("InstanceTypeFamily", instanceTypeFamily); this.instanceTypeFamily = instanceTypeFamily; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * PageNumber. */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * PageSize. */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * RegionId. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * Tag. */ public Builder tag(java.util.List < Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * ZoneId. */ public Builder zoneId(String zoneId) { this.putQueryParameter("ZoneId", zoneId); this.zoneId = zoneId; return this; } @Override public DescribeDemandsRequest build() { return new DescribeDemandsRequest(this); } } public static class Tag extends TeaModel { @NameInMap("Key") private String key; @NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; /** * Key. */ public Builder key(String key) { this.key = key; return this; } /** * Value. */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy