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

com.aliyun.rds20140815.models.DescribeRenewalPriceResponseBody Maven / Gradle / Ivy

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

import com.aliyun.tea.*;

public class DescribeRenewalPriceResponseBody extends TeaModel {
    /**
     * 

Details of price information.

*/ @NameInMap("PriceInfo") public DescribeRenewalPriceResponseBodyPriceInfo priceInfo; /** *

The ID of the request.

* * example: *

DC9F4EF6-D038-4405-B497-1F48E722C9F2

*/ @NameInMap("RequestId") public String requestId; /** *

An array that consists of the details of the promotion rule.

*/ @NameInMap("Rules") public DescribeRenewalPriceResponseBodyRules rules; public static DescribeRenewalPriceResponseBody build(java.util.Map map) throws Exception { DescribeRenewalPriceResponseBody self = new DescribeRenewalPriceResponseBody(); return TeaModel.build(map, self); } public DescribeRenewalPriceResponseBody setPriceInfo(DescribeRenewalPriceResponseBodyPriceInfo priceInfo) { this.priceInfo = priceInfo; return this; } public DescribeRenewalPriceResponseBodyPriceInfo getPriceInfo() { return this.priceInfo; } public DescribeRenewalPriceResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public DescribeRenewalPriceResponseBody setRules(DescribeRenewalPriceResponseBodyRules rules) { this.rules = rules; return this; } public DescribeRenewalPriceResponseBodyRules getRules() { return this.rules; } public static class DescribeRenewalPriceResponseBodyPriceInfoActivityInfo 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 DescribeRenewalPriceResponseBodyPriceInfoActivityInfo build(java.util.Map map) throws Exception { DescribeRenewalPriceResponseBodyPriceInfoActivityInfo self = new DescribeRenewalPriceResponseBodyPriceInfoActivityInfo(); return TeaModel.build(map, self); } public DescribeRenewalPriceResponseBodyPriceInfoActivityInfo setCheckErrMsg(String checkErrMsg) { this.checkErrMsg = checkErrMsg; return this; } public String getCheckErrMsg() { return this.checkErrMsg; } public DescribeRenewalPriceResponseBodyPriceInfoActivityInfo setErrorCode(String errorCode) { this.errorCode = errorCode; return this; } public String getErrorCode() { return this.errorCode; } public DescribeRenewalPriceResponseBodyPriceInfoActivityInfo setSuccess(String success) { this.success = success; return this; } public String getSuccess() { return this.success; } } public static class DescribeRenewalPriceResponseBodyPriceInfoCouponsCoupon 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 name of the coupon.

* * example: *

test

*/ @NameInMap("Name") public String name; public static DescribeRenewalPriceResponseBodyPriceInfoCouponsCoupon build(java.util.Map map) throws Exception { DescribeRenewalPriceResponseBodyPriceInfoCouponsCoupon self = new DescribeRenewalPriceResponseBodyPriceInfoCouponsCoupon(); return TeaModel.build(map, self); } public DescribeRenewalPriceResponseBodyPriceInfoCouponsCoupon setCouponNo(String couponNo) { this.couponNo = couponNo; return this; } public String getCouponNo() { return this.couponNo; } public DescribeRenewalPriceResponseBodyPriceInfoCouponsCoupon setDescription(String description) { this.description = description; return this; } public String getDescription() { return this.description; } public DescribeRenewalPriceResponseBodyPriceInfoCouponsCoupon setIsSelected(String isSelected) { this.isSelected = isSelected; return this; } public String getIsSelected() { return this.isSelected; } public DescribeRenewalPriceResponseBodyPriceInfoCouponsCoupon setName(String name) { this.name = name; return this; } public String getName() { return this.name; } } public static class DescribeRenewalPriceResponseBodyPriceInfoCoupons extends TeaModel { @NameInMap("Coupon") public java.util.List coupon; public static DescribeRenewalPriceResponseBodyPriceInfoCoupons build(java.util.Map map) throws Exception { DescribeRenewalPriceResponseBodyPriceInfoCoupons self = new DescribeRenewalPriceResponseBodyPriceInfoCoupons(); return TeaModel.build(map, self); } public DescribeRenewalPriceResponseBodyPriceInfoCoupons setCoupon(java.util.List coupon) { this.coupon = coupon; return this; } public java.util.List getCoupon() { return this.coupon; } } public static class DescribeRenewalPriceResponseBodyPriceInfoRuleIds extends TeaModel { @NameInMap("RuleId") public java.util.List ruleId; public static DescribeRenewalPriceResponseBodyPriceInfoRuleIds build(java.util.Map map) throws Exception { DescribeRenewalPriceResponseBodyPriceInfoRuleIds self = new DescribeRenewalPriceResponseBodyPriceInfoRuleIds(); return TeaModel.build(map, self); } public DescribeRenewalPriceResponseBodyPriceInfoRuleIds setRuleId(java.util.List ruleId) { this.ruleId = ruleId; return this; } public java.util.List getRuleId() { return this.ruleId; } } public static class DescribeRenewalPriceResponseBodyPriceInfo extends TeaModel { /** *

The information about the promotion.

*/ @NameInMap("ActivityInfo") public DescribeRenewalPriceResponseBodyPriceInfoActivityInfo activityInfo; /** *

An array that consists of information about the coupon.

*/ @NameInMap("Coupons") public DescribeRenewalPriceResponseBodyPriceInfoCoupons coupons; /** *

The currency unit.

* * example: *

CNY

*/ @NameInMap("Currency") public String currency; /** *

The discount.

* * example: *

27

*/ @NameInMap("DiscountPrice") public Float discountPrice; /** *

The original price.

* * example: *

138

*/ @NameInMap("OriginalPrice") public Float originalPrice; /** *

An array that consists of the ID of the promotion rule.

*/ @NameInMap("RuleIds") public DescribeRenewalPriceResponseBodyPriceInfoRuleIds ruleIds; /** *

The transaction price, which is equal to the original price minus the discount.

* * example: *

111

*/ @NameInMap("TradePrice") public Float tradePrice; public static DescribeRenewalPriceResponseBodyPriceInfo build(java.util.Map map) throws Exception { DescribeRenewalPriceResponseBodyPriceInfo self = new DescribeRenewalPriceResponseBodyPriceInfo(); return TeaModel.build(map, self); } public DescribeRenewalPriceResponseBodyPriceInfo setActivityInfo(DescribeRenewalPriceResponseBodyPriceInfoActivityInfo activityInfo) { this.activityInfo = activityInfo; return this; } public DescribeRenewalPriceResponseBodyPriceInfoActivityInfo getActivityInfo() { return this.activityInfo; } public DescribeRenewalPriceResponseBodyPriceInfo setCoupons(DescribeRenewalPriceResponseBodyPriceInfoCoupons coupons) { this.coupons = coupons; return this; } public DescribeRenewalPriceResponseBodyPriceInfoCoupons getCoupons() { return this.coupons; } public DescribeRenewalPriceResponseBodyPriceInfo setCurrency(String currency) { this.currency = currency; return this; } public String getCurrency() { return this.currency; } public DescribeRenewalPriceResponseBodyPriceInfo setDiscountPrice(Float discountPrice) { this.discountPrice = discountPrice; return this; } public Float getDiscountPrice() { return this.discountPrice; } public DescribeRenewalPriceResponseBodyPriceInfo setOriginalPrice(Float originalPrice) { this.originalPrice = originalPrice; return this; } public Float getOriginalPrice() { return this.originalPrice; } public DescribeRenewalPriceResponseBodyPriceInfo setRuleIds(DescribeRenewalPriceResponseBodyPriceInfoRuleIds ruleIds) { this.ruleIds = ruleIds; return this; } public DescribeRenewalPriceResponseBodyPriceInfoRuleIds getRuleIds() { return this.ruleIds; } public DescribeRenewalPriceResponseBodyPriceInfo setTradePrice(Float tradePrice) { this.tradePrice = tradePrice; return this; } public Float getTradePrice() { return this.tradePrice; } } public static class DescribeRenewalPriceResponseBodyRulesRule extends TeaModel { /** *

The description of the activity.

* * example: *

Content

*/ @NameInMap("Description") public String description; /** *

The name of the rule.

* * example: *

test

*/ @NameInMap("Name") public String name; /** *

The ID of the promotion rule.

* * example: *

1001199213

*/ @NameInMap("RuleId") public Long ruleId; public static DescribeRenewalPriceResponseBodyRulesRule build(java.util.Map map) throws Exception { DescribeRenewalPriceResponseBodyRulesRule self = new DescribeRenewalPriceResponseBodyRulesRule(); return TeaModel.build(map, self); } public DescribeRenewalPriceResponseBodyRulesRule setDescription(String description) { this.description = description; return this; } public String getDescription() { return this.description; } public DescribeRenewalPriceResponseBodyRulesRule setName(String name) { this.name = name; return this; } public String getName() { return this.name; } public DescribeRenewalPriceResponseBodyRulesRule setRuleId(Long ruleId) { this.ruleId = ruleId; return this; } public Long getRuleId() { return this.ruleId; } } public static class DescribeRenewalPriceResponseBodyRules extends TeaModel { @NameInMap("Rule") public java.util.List rule; public static DescribeRenewalPriceResponseBodyRules build(java.util.Map map) throws Exception { DescribeRenewalPriceResponseBodyRules self = new DescribeRenewalPriceResponseBodyRules(); return TeaModel.build(map, self); } public DescribeRenewalPriceResponseBodyRules setRule(java.util.List rule) { this.rule = rule; return this; } public java.util.List getRule() { return this.rule; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy