com.aliyun.rds20140815.models.DescribePriceResponseBody Maven / Gradle / Ivy
Show all versions of rds20140815 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.rds20140815.models;
import com.aliyun.tea.*;
public class DescribePriceResponseBody extends TeaModel {
/**
* The order parameters.
*
* If the OrderParamOut parameter is set to true, the value of the OrderParams parameter is returned.
*
*
* example:
* {\"autoPay\":false}"
*/
@NameInMap("OrderParams")
public String orderParams;
/**
* The price information.
*/
@NameInMap("PriceInfo")
public DescribePriceResponseBodyPriceInfo priceInfo;
/**
* The ID of the request.
*
* example:
* CA0ADDDC-0BEB-4381-A3ED-73B4C79B8CC6
*/
@NameInMap("RequestId")
public String requestId;
/**
* The details of the promotion rule.
*/
@NameInMap("Rules")
public DescribePriceResponseBodyRules rules;
/**
* The pricing information about a serverless RDS instance.
*/
@NameInMap("ServerlessPrice")
public DescribePriceResponseBodyServerlessPrice serverlessPrice;
/**
* Indicates whether discounts can be used.
*
* example:
* True
*/
@NameInMap("ShowDiscount")
public Boolean showDiscount;
/**
* The estimated hourly fee that is calculated based on the maximum number of RCUs.
*
* example:
* 2**
*/
@NameInMap("TradeMaxRCUAmount")
public Float tradeMaxRCUAmount;
/**
* The estimated hourly fee that is calculated based on the minimum number of RCUs.
*
* example:
* 1**
*/
@NameInMap("TradeMinRCUAmount")
public Float tradeMinRCUAmount;
public static DescribePriceResponseBody build(java.util.Map map) throws Exception {
DescribePriceResponseBody self = new DescribePriceResponseBody();
return TeaModel.build(map, self);
}
public DescribePriceResponseBody setOrderParams(String orderParams) {
this.orderParams = orderParams;
return this;
}
public String getOrderParams() {
return this.orderParams;
}
public DescribePriceResponseBody setPriceInfo(DescribePriceResponseBodyPriceInfo priceInfo) {
this.priceInfo = priceInfo;
return this;
}
public DescribePriceResponseBodyPriceInfo getPriceInfo() {
return this.priceInfo;
}
public DescribePriceResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
public DescribePriceResponseBody setRules(DescribePriceResponseBodyRules rules) {
this.rules = rules;
return this;
}
public DescribePriceResponseBodyRules getRules() {
return this.rules;
}
public DescribePriceResponseBody setServerlessPrice(DescribePriceResponseBodyServerlessPrice serverlessPrice) {
this.serverlessPrice = serverlessPrice;
return this;
}
public DescribePriceResponseBodyServerlessPrice getServerlessPrice() {
return this.serverlessPrice;
}
public DescribePriceResponseBody setShowDiscount(Boolean showDiscount) {
this.showDiscount = showDiscount;
return this;
}
public Boolean getShowDiscount() {
return this.showDiscount;
}
public DescribePriceResponseBody setTradeMaxRCUAmount(Float tradeMaxRCUAmount) {
this.tradeMaxRCUAmount = tradeMaxRCUAmount;
return this;
}
public Float getTradeMaxRCUAmount() {
return this.tradeMaxRCUAmount;
}
public DescribePriceResponseBody setTradeMinRCUAmount(Float tradeMinRCUAmount) {
this.tradeMinRCUAmount = tradeMinRCUAmount;
return this;
}
public Float getTradeMinRCUAmount() {
return this.tradeMinRCUAmount;
}
public static class DescribePriceResponseBodyPriceInfoActivityInfo extends TeaModel {
/**
* The returned message.
*
* example:
* Error description
*/
@NameInMap("CheckErrMsg")
public String checkErrMsg;
/**
* The error code that is returned.
*
* example:
* 123456
*/
@NameInMap("ErrorCode")
public String errorCode;
/**
* Indicates whether the request was successful.
*
* example:
* Success
*/
@NameInMap("Success")
public String success;
public static DescribePriceResponseBodyPriceInfoActivityInfo build(java.util.Map map) throws Exception {
DescribePriceResponseBodyPriceInfoActivityInfo self = new DescribePriceResponseBodyPriceInfoActivityInfo();
return TeaModel.build(map, self);
}
public DescribePriceResponseBodyPriceInfoActivityInfo setCheckErrMsg(String checkErrMsg) {
this.checkErrMsg = checkErrMsg;
return this;
}
public String getCheckErrMsg() {
return this.checkErrMsg;
}
public DescribePriceResponseBodyPriceInfoActivityInfo setErrorCode(String errorCode) {
this.errorCode = errorCode;
return this;
}
public String getErrorCode() {
return this.errorCode;
}
public DescribePriceResponseBodyPriceInfoActivityInfo setSuccess(String success) {
this.success = success;
return this;
}
public String getSuccess() {
return this.success;
}
}
public static class DescribePriceResponseBodyPriceInfoCouponsCoupon extends TeaModel {
/**
* The coupon ID.
*
* example:
* 123456
*/
@NameInMap("CouponNo")
public String couponNo;
/**
* The description of the coupon.
*
* example:
* test
*/
@NameInMap("Description")
public String description;
/**
* Indicates whether the coupon is selected.
*
* example:
* true
*/
@NameInMap("IsSelected")
public String isSelected;
/**
* The coupon name.
*
* example:
* test
*/
@NameInMap("Name")
public String name;
public static DescribePriceResponseBodyPriceInfoCouponsCoupon build(java.util.Map map) throws Exception {
DescribePriceResponseBodyPriceInfoCouponsCoupon self = new DescribePriceResponseBodyPriceInfoCouponsCoupon();
return TeaModel.build(map, self);
}
public DescribePriceResponseBodyPriceInfoCouponsCoupon setCouponNo(String couponNo) {
this.couponNo = couponNo;
return this;
}
public String getCouponNo() {
return this.couponNo;
}
public DescribePriceResponseBodyPriceInfoCouponsCoupon setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public DescribePriceResponseBodyPriceInfoCouponsCoupon setIsSelected(String isSelected) {
this.isSelected = isSelected;
return this;
}
public String getIsSelected() {
return this.isSelected;
}
public DescribePriceResponseBodyPriceInfoCouponsCoupon setName(String name) {
this.name = name;
return this;
}
public String getName() {
return this.name;
}
}
public static class DescribePriceResponseBodyPriceInfoCoupons extends TeaModel {
@NameInMap("Coupon")
public java.util.List coupon;
public static DescribePriceResponseBodyPriceInfoCoupons build(java.util.Map map) throws Exception {
DescribePriceResponseBodyPriceInfoCoupons self = new DescribePriceResponseBodyPriceInfoCoupons();
return TeaModel.build(map, self);
}
public DescribePriceResponseBodyPriceInfoCoupons setCoupon(java.util.List coupon) {
this.coupon = coupon;
return this;
}
public java.util.List getCoupon() {
return this.coupon;
}
}
public static class DescribePriceResponseBodyPriceInfoRuleIds extends TeaModel {
@NameInMap("RuleId")
public java.util.List ruleId;
public static DescribePriceResponseBodyPriceInfoRuleIds build(java.util.Map map) throws Exception {
DescribePriceResponseBodyPriceInfoRuleIds self = new DescribePriceResponseBodyPriceInfoRuleIds();
return TeaModel.build(map, self);
}
public DescribePriceResponseBodyPriceInfoRuleIds setRuleId(java.util.List ruleId) {
this.ruleId = ruleId;
return this;
}
public java.util.List getRuleId() {
return this.ruleId;
}
}
public static class DescribePriceResponseBodyPriceInfo extends TeaModel {
/**
* The information about the promotion.
*/
@NameInMap("ActivityInfo")
public DescribePriceResponseBodyPriceInfoActivityInfo activityInfo;
/**
* The information about the coupon.
*/
@NameInMap("Coupons")
public DescribePriceResponseBodyPriceInfoCoupons coupons;
/**
* The currency unit.
*
* example:
* CNY
*/
@NameInMap("Currency")
public String currency;
/**
* The discount.
*
* example:
* 0
*/
@NameInMap("DiscountPrice")
public Float discountPrice;
/**
* The order information.
*
* example:
* Order Information
*/
@NameInMap("OrderLines")
public Object orderLines;
/**
* The original price.
*
* example:
* 2504
*/
@NameInMap("OriginalPrice")
public Float originalPrice;
/**
* An array that consists of the ID of the promotion rule.
*/
@NameInMap("RuleIds")
public DescribePriceResponseBodyPriceInfoRuleIds ruleIds;
/**
* The estimated hourly cost that is calculated based on the maximum number of RCUs you specify.
*
* example:
* 1**
*/
@NameInMap("TradeMaxRCUAmount")
public Float tradeMaxRCUAmount;
/**
* The estimated hourly cost that is calculated based on the minimum number of RCUs you specify.
*
* example:
* 2**
*/
@NameInMap("TradeMinRCUAmount")
public Float tradeMinRCUAmount;
/**
* The transaction price, which is equal to the original price minus the discount.
*
* example:
* 2504
*/
@NameInMap("TradePrice")
public Float tradePrice;
public static DescribePriceResponseBodyPriceInfo build(java.util.Map map) throws Exception {
DescribePriceResponseBodyPriceInfo self = new DescribePriceResponseBodyPriceInfo();
return TeaModel.build(map, self);
}
public DescribePriceResponseBodyPriceInfo setActivityInfo(DescribePriceResponseBodyPriceInfoActivityInfo activityInfo) {
this.activityInfo = activityInfo;
return this;
}
public DescribePriceResponseBodyPriceInfoActivityInfo getActivityInfo() {
return this.activityInfo;
}
public DescribePriceResponseBodyPriceInfo setCoupons(DescribePriceResponseBodyPriceInfoCoupons coupons) {
this.coupons = coupons;
return this;
}
public DescribePriceResponseBodyPriceInfoCoupons getCoupons() {
return this.coupons;
}
public DescribePriceResponseBodyPriceInfo setCurrency(String currency) {
this.currency = currency;
return this;
}
public String getCurrency() {
return this.currency;
}
public DescribePriceResponseBodyPriceInfo setDiscountPrice(Float discountPrice) {
this.discountPrice = discountPrice;
return this;
}
public Float getDiscountPrice() {
return this.discountPrice;
}
public DescribePriceResponseBodyPriceInfo setOrderLines(Object orderLines) {
this.orderLines = orderLines;
return this;
}
public Object getOrderLines() {
return this.orderLines;
}
public DescribePriceResponseBodyPriceInfo setOriginalPrice(Float originalPrice) {
this.originalPrice = originalPrice;
return this;
}
public Float getOriginalPrice() {
return this.originalPrice;
}
public DescribePriceResponseBodyPriceInfo setRuleIds(DescribePriceResponseBodyPriceInfoRuleIds ruleIds) {
this.ruleIds = ruleIds;
return this;
}
public DescribePriceResponseBodyPriceInfoRuleIds getRuleIds() {
return this.ruleIds;
}
public DescribePriceResponseBodyPriceInfo setTradeMaxRCUAmount(Float tradeMaxRCUAmount) {
this.tradeMaxRCUAmount = tradeMaxRCUAmount;
return this;
}
public Float getTradeMaxRCUAmount() {
return this.tradeMaxRCUAmount;
}
public DescribePriceResponseBodyPriceInfo setTradeMinRCUAmount(Float tradeMinRCUAmount) {
this.tradeMinRCUAmount = tradeMinRCUAmount;
return this;
}
public Float getTradeMinRCUAmount() {
return this.tradeMinRCUAmount;
}
public DescribePriceResponseBodyPriceInfo setTradePrice(Float tradePrice) {
this.tradePrice = tradePrice;
return this;
}
public Float getTradePrice() {
return this.tradePrice;
}
}
public static class DescribePriceResponseBodyRulesRule extends TeaModel {
/**
* The description of the promotion rule.
*
* example:
* Activity Description
*/
@NameInMap("Description")
public String description;
/**
* The name of the promotion rule.
*
* example:
* Rule1
*/
@NameInMap("Name")
public String name;
/**
* The ID of the promotion rule.
*
* example:
* 1020021003939076
*/
@NameInMap("RuleId")
public Long ruleId;
public static DescribePriceResponseBodyRulesRule build(java.util.Map map) throws Exception {
DescribePriceResponseBodyRulesRule self = new DescribePriceResponseBodyRulesRule();
return TeaModel.build(map, self);
}
public DescribePriceResponseBodyRulesRule setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public DescribePriceResponseBodyRulesRule setName(String name) {
this.name = name;
return this;
}
public String getName() {
return this.name;
}
public DescribePriceResponseBodyRulesRule setRuleId(Long ruleId) {
this.ruleId = ruleId;
return this;
}
public Long getRuleId() {
return this.ruleId;
}
}
public static class DescribePriceResponseBodyRules extends TeaModel {
@NameInMap("Rule")
public java.util.List rule;
public static DescribePriceResponseBodyRules build(java.util.Map map) throws Exception {
DescribePriceResponseBodyRules self = new DescribePriceResponseBodyRules();
return TeaModel.build(map, self);
}
public DescribePriceResponseBodyRules setRule(java.util.List rule) {
this.rule = rule;
return this;
}
public java.util.List getRule() {
return this.rule;
}
}
public static class DescribePriceResponseBodyServerlessPrice extends TeaModel {
/**
* The discount amount of the maximum number of RCUs.
*
* example:
* 1**.*
*/
@NameInMap("RCUDiscountMaxAmount")
public Float RCUDiscountMaxAmount;
/**
* The discount amount of the minimum number of RCUs.
*
* example:
* 1*.*
*/
@NameInMap("RCUDiscountMinAmount")
public Float RCUDiscountMinAmount;
/**
* The price of the maximum number of RCUs.
*
* example:
* 2**.*
*/
@NameInMap("RCUOriginalMaxAmount")
public Float RCUOriginalMaxAmount;
/**
* The price of the minimum number of RCUs.
*
* example:
* 3*.*
*/
@NameInMap("RCUOriginalMinAmount")
public Float RCUOriginalMinAmount;
/**
* The original price of the disk capacity.
*
* example:
* 1*
*/
@NameInMap("StorageOriginalAmount")
public Float storageOriginalAmount;
/**
* The maximum total price before the discount.
*
* example:
* 2**.*
*/
@NameInMap("TotalOriginalMaxAmount")
public Float totalOriginalMaxAmount;
/**
* The minimum total price before the discount.
*
* example:
* 2*.*
*/
@NameInMap("TotalOriginalMinAmount")
public Float totalOriginalMinAmount;
/**
* The transaction price of the maximum number of RCUs.
*
* example:
* 1**.*
*/
@NameInMap("TradeMaxRCUAmount")
public Float tradeMaxRCUAmount;
/**
* The transaction price of the minimum number of RCUs.
*
* example:
* 2*.*
*/
@NameInMap("TradeMinRCUAmount")
public Float tradeMinRCUAmount;
/**
* The discounted price of the disk capacity.
*
* example:
* 2.*
*/
@NameInMap("storageDiscountAmount")
public Float storageDiscountAmount;
public static DescribePriceResponseBodyServerlessPrice build(java.util.Map map) throws Exception {
DescribePriceResponseBodyServerlessPrice self = new DescribePriceResponseBodyServerlessPrice();
return TeaModel.build(map, self);
}
public DescribePriceResponseBodyServerlessPrice setRCUDiscountMaxAmount(Float RCUDiscountMaxAmount) {
this.RCUDiscountMaxAmount = RCUDiscountMaxAmount;
return this;
}
public Float getRCUDiscountMaxAmount() {
return this.RCUDiscountMaxAmount;
}
public DescribePriceResponseBodyServerlessPrice setRCUDiscountMinAmount(Float RCUDiscountMinAmount) {
this.RCUDiscountMinAmount = RCUDiscountMinAmount;
return this;
}
public Float getRCUDiscountMinAmount() {
return this.RCUDiscountMinAmount;
}
public DescribePriceResponseBodyServerlessPrice setRCUOriginalMaxAmount(Float RCUOriginalMaxAmount) {
this.RCUOriginalMaxAmount = RCUOriginalMaxAmount;
return this;
}
public Float getRCUOriginalMaxAmount() {
return this.RCUOriginalMaxAmount;
}
public DescribePriceResponseBodyServerlessPrice setRCUOriginalMinAmount(Float RCUOriginalMinAmount) {
this.RCUOriginalMinAmount = RCUOriginalMinAmount;
return this;
}
public Float getRCUOriginalMinAmount() {
return this.RCUOriginalMinAmount;
}
public DescribePriceResponseBodyServerlessPrice setStorageOriginalAmount(Float storageOriginalAmount) {
this.storageOriginalAmount = storageOriginalAmount;
return this;
}
public Float getStorageOriginalAmount() {
return this.storageOriginalAmount;
}
public DescribePriceResponseBodyServerlessPrice setTotalOriginalMaxAmount(Float totalOriginalMaxAmount) {
this.totalOriginalMaxAmount = totalOriginalMaxAmount;
return this;
}
public Float getTotalOriginalMaxAmount() {
return this.totalOriginalMaxAmount;
}
public DescribePriceResponseBodyServerlessPrice setTotalOriginalMinAmount(Float totalOriginalMinAmount) {
this.totalOriginalMinAmount = totalOriginalMinAmount;
return this;
}
public Float getTotalOriginalMinAmount() {
return this.totalOriginalMinAmount;
}
public DescribePriceResponseBodyServerlessPrice setTradeMaxRCUAmount(Float tradeMaxRCUAmount) {
this.tradeMaxRCUAmount = tradeMaxRCUAmount;
return this;
}
public Float getTradeMaxRCUAmount() {
return this.tradeMaxRCUAmount;
}
public DescribePriceResponseBodyServerlessPrice setTradeMinRCUAmount(Float tradeMinRCUAmount) {
this.tradeMinRCUAmount = tradeMinRCUAmount;
return this;
}
public Float getTradeMinRCUAmount() {
return this.tradeMinRCUAmount;
}
public DescribePriceResponseBodyServerlessPrice setStorageDiscountAmount(Float storageDiscountAmount) {
this.storageDiscountAmount = storageDiscountAmount;
return this;
}
public Float getStorageDiscountAmount() {
return this.storageDiscountAmount;
}
}
}