com.aliyun.sdk.service.ecs20140526.models.ModifyDemandRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-ecs20140526 Show documentation
Show all versions of alibabacloud-ecs20140526 Show documentation
Alibaba Cloud Ecs (20140526) Async SDK for Java
// 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 ModifyDemandRequest} extends {@link RequestModel}
*
* ModifyDemandRequest
*/
public class ModifyDemandRequest extends Request {
@Query
@NameInMap("Amount")
private Integer amount;
@Query
@NameInMap("ClientToken")
private String clientToken;
@Query
@NameInMap("DemandDescription")
private String demandDescription;
@Query
@NameInMap("DemandId")
@Validation(required = true)
private String demandId;
@Query
@NameInMap("DemandName")
private String demandName;
@Query
@NameInMap("EndTime")
private String endTime;
@Query
@NameInMap("InstanceChargeType")
private String instanceChargeType;
@Query
@NameInMap("InstanceType")
private String instanceType;
@Query
@NameInMap("OwnerAccount")
private String ownerAccount;
@Query
@NameInMap("OwnerId")
private Long ownerId;
@Query
@NameInMap("Period")
private Integer period;
@Query
@NameInMap("PeriodUnit")
private String periodUnit;
@Query
@NameInMap("RegionId")
@Validation(required = true)
private String regionId;
@Query
@NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@Query
@NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@Query
@NameInMap("StartTime")
private String startTime;
@Query
@NameInMap("ZoneId")
private String zoneId;
private ModifyDemandRequest(Builder builder) {
super(builder);
this.amount = builder.amount;
this.clientToken = builder.clientToken;
this.demandDescription = builder.demandDescription;
this.demandId = builder.demandId;
this.demandName = builder.demandName;
this.endTime = builder.endTime;
this.instanceChargeType = builder.instanceChargeType;
this.instanceType = builder.instanceType;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.period = builder.period;
this.periodUnit = builder.periodUnit;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.startTime = builder.startTime;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static ModifyDemandRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return amount
*/
public Integer getAmount() {
return this.amount;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return demandDescription
*/
public String getDemandDescription() {
return this.demandDescription;
}
/**
* @return demandId
*/
public String getDemandId() {
return this.demandId;
}
/**
* @return demandName
*/
public String getDemandName() {
return this.demandName;
}
/**
* @return endTime
*/
public String getEndTime() {
return this.endTime;
}
/**
* @return instanceChargeType
*/
public String getInstanceChargeType() {
return this.instanceChargeType;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return period
*/
public Integer getPeriod() {
return this.period;
}
/**
* @return periodUnit
*/
public String getPeriodUnit() {
return this.periodUnit;
}
/**
* @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 startTime
*/
public String getStartTime() {
return this.startTime;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder extends Request.Builder {
private Integer amount;
private String clientToken;
private String demandDescription;
private String demandId;
private String demandName;
private String endTime;
private String instanceChargeType;
private String instanceType;
private String ownerAccount;
private Long ownerId;
private Integer period;
private String periodUnit;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String startTime;
private String zoneId;
private Builder() {
super();
}
private Builder(ModifyDemandRequest request) {
super(request);
this.amount = request.amount;
this.clientToken = request.clientToken;
this.demandDescription = request.demandDescription;
this.demandId = request.demandId;
this.demandName = request.demandName;
this.endTime = request.endTime;
this.instanceChargeType = request.instanceChargeType;
this.instanceType = request.instanceType;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.period = request.period;
this.periodUnit = request.periodUnit;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.startTime = request.startTime;
this.zoneId = request.zoneId;
}
/**
* Amount.
*/
public Builder amount(Integer amount) {
this.putQueryParameter("Amount", amount);
this.amount = amount;
return this;
}
/**
* ClientToken.
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* DemandDescription.
*/
public Builder demandDescription(String demandDescription) {
this.putQueryParameter("DemandDescription", demandDescription);
this.demandDescription = demandDescription;
return this;
}
/**
* DemandId.
*/
public Builder demandId(String demandId) {
this.putQueryParameter("DemandId", demandId);
this.demandId = demandId;
return this;
}
/**
* DemandName.
*/
public Builder demandName(String demandName) {
this.putQueryParameter("DemandName", demandName);
this.demandName = demandName;
return this;
}
/**
* EndTime.
*/
public Builder endTime(String endTime) {
this.putQueryParameter("EndTime", endTime);
this.endTime = endTime;
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;
}
/**
* 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;
}
/**
* Period.
*/
public Builder period(Integer period) {
this.putQueryParameter("Period", period);
this.period = period;
return this;
}
/**
* PeriodUnit.
*/
public Builder periodUnit(String periodUnit) {
this.putQueryParameter("PeriodUnit", periodUnit);
this.periodUnit = periodUnit;
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;
}
/**
* StartTime.
*/
public Builder startTime(String startTime) {
this.putQueryParameter("StartTime", startTime);
this.startTime = startTime;
return this;
}
/**
* ZoneId.
*/
public Builder zoneId(String zoneId) {
this.putQueryParameter("ZoneId", zoneId);
this.zoneId = zoneId;
return this;
}
@Override
public ModifyDemandRequest build() {
return new ModifyDemandRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy