com.aliyun.sdk.service.ecs20140526.models.DescribeSavingsPlanPriceRequest 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 darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeSavingsPlanPriceRequest} extends {@link RequestModel}
*
* DescribeSavingsPlanPriceRequest
*/
public class DescribeSavingsPlanPriceRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("CommittedAmount")
private String committedAmount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceTypeFamily")
private String instanceTypeFamily;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OfferingType")
private String offeringType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Period")
private Integer period;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PeriodUnit")
private String periodUnit;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PlanType")
private String planType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceId")
private java.util.List < String > resourceId;
private DescribeSavingsPlanPriceRequest(Builder builder) {
super(builder);
this.committedAmount = builder.committedAmount;
this.instanceTypeFamily = builder.instanceTypeFamily;
this.offeringType = builder.offeringType;
this.period = builder.period;
this.periodUnit = builder.periodUnit;
this.planType = builder.planType;
this.regionId = builder.regionId;
this.resourceId = builder.resourceId;
}
public static Builder builder() {
return new Builder();
}
public static DescribeSavingsPlanPriceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return committedAmount
*/
public String getCommittedAmount() {
return this.committedAmount;
}
/**
* @return instanceTypeFamily
*/
public String getInstanceTypeFamily() {
return this.instanceTypeFamily;
}
/**
* @return offeringType
*/
public String getOfferingType() {
return this.offeringType;
}
/**
* @return period
*/
public Integer getPeriod() {
return this.period;
}
/**
* @return periodUnit
*/
public String getPeriodUnit() {
return this.periodUnit;
}
/**
* @return planType
*/
public String getPlanType() {
return this.planType;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceId
*/
public java.util.List < String > getResourceId() {
return this.resourceId;
}
public static final class Builder extends Request.Builder {
private String committedAmount;
private String instanceTypeFamily;
private String offeringType;
private Integer period;
private String periodUnit;
private String planType;
private String regionId;
private java.util.List < String > resourceId;
private Builder() {
super();
}
private Builder(DescribeSavingsPlanPriceRequest request) {
super(request);
this.committedAmount = request.committedAmount;
this.instanceTypeFamily = request.instanceTypeFamily;
this.offeringType = request.offeringType;
this.period = request.period;
this.periodUnit = request.periodUnit;
this.planType = request.planType;
this.regionId = request.regionId;
this.resourceId = request.resourceId;
}
/**
* CommittedAmount.
*/
public Builder committedAmount(String committedAmount) {
this.putQueryParameter("CommittedAmount", committedAmount);
this.committedAmount = committedAmount;
return this;
}
/**
* InstanceTypeFamily.
*/
public Builder instanceTypeFamily(String instanceTypeFamily) {
this.putQueryParameter("InstanceTypeFamily", instanceTypeFamily);
this.instanceTypeFamily = instanceTypeFamily;
return this;
}
/**
* OfferingType.
*/
public Builder offeringType(String offeringType) {
this.putQueryParameter("OfferingType", offeringType);
this.offeringType = offeringType;
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;
}
/**
* PlanType.
*/
public Builder planType(String planType) {
this.putQueryParameter("PlanType", planType);
this.planType = planType;
return this;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceId.
*/
public Builder resourceId(java.util.List < String > resourceId) {
this.putQueryParameter("ResourceId", resourceId);
this.resourceId = resourceId;
return this;
}
@Override
public DescribeSavingsPlanPriceRequest build() {
return new DescribeSavingsPlanPriceRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy