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

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

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;

import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * 
 * {@link DescribeSavingsPlanPriceResponseBody} extends {@link TeaModel}
 *
 * 

DescribeSavingsPlanPriceResponseBody

*/ public class DescribeSavingsPlanPriceResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("PriceInfo") private PriceInfo priceInfo; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeSavingsPlanPriceResponseBody(Builder builder) { this.priceInfo = builder.priceInfo; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeSavingsPlanPriceResponseBody create() { return builder().build(); } /** * @return priceInfo */ public PriceInfo getPriceInfo() { return this.priceInfo; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private PriceInfo priceInfo; private String requestId; /** * PriceInfo. */ public Builder priceInfo(PriceInfo priceInfo) { this.priceInfo = priceInfo; return this; } /** * RequestId. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeSavingsPlanPriceResponseBody build() { return new DescribeSavingsPlanPriceResponseBody(this); } } /** * * {@link DescribeSavingsPlanPriceResponseBody} extends {@link TeaModel} * *

DescribeSavingsPlanPriceResponseBody

*/ public static class Price extends TeaModel { @com.aliyun.core.annotation.NameInMap("Currency") private String currency; @com.aliyun.core.annotation.NameInMap("DiscountPrice") private Float discountPrice; @com.aliyun.core.annotation.NameInMap("OriginalPrice") private Float originalPrice; @com.aliyun.core.annotation.NameInMap("TradePrice") private Float tradePrice; private Price(Builder builder) { this.currency = builder.currency; this.discountPrice = builder.discountPrice; this.originalPrice = builder.originalPrice; this.tradePrice = builder.tradePrice; } public static Builder builder() { return new Builder(); } public static Price create() { return builder().build(); } /** * @return currency */ public String getCurrency() { return this.currency; } /** * @return discountPrice */ public Float getDiscountPrice() { return this.discountPrice; } /** * @return originalPrice */ public Float getOriginalPrice() { return this.originalPrice; } /** * @return tradePrice */ public Float getTradePrice() { return this.tradePrice; } public static final class Builder { private String currency; private Float discountPrice; private Float originalPrice; private Float tradePrice; /** * Currency. */ public Builder currency(String currency) { this.currency = currency; return this; } /** * DiscountPrice. */ public Builder discountPrice(Float discountPrice) { this.discountPrice = discountPrice; return this; } /** * OriginalPrice. */ public Builder originalPrice(Float originalPrice) { this.originalPrice = originalPrice; return this; } /** * TradePrice. */ public Builder tradePrice(Float tradePrice) { this.tradePrice = tradePrice; return this; } public Price build() { return new Price(this); } } } /** * * {@link DescribeSavingsPlanPriceResponseBody} extends {@link TeaModel} * *

DescribeSavingsPlanPriceResponseBody

*/ public static class Rules extends TeaModel { @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.NameInMap("RuleId") private String ruleId; private Rules(Builder builder) { this.description = builder.description; this.ruleId = builder.ruleId; } public static Builder builder() { return new Builder(); } public static Rules create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return ruleId */ public String getRuleId() { return this.ruleId; } public static final class Builder { private String description; private String ruleId; /** * Description. */ public Builder description(String description) { this.description = description; return this; } /** * RuleId. */ public Builder ruleId(String ruleId) { this.ruleId = ruleId; return this; } public Rules build() { return new Rules(this); } } } /** * * {@link DescribeSavingsPlanPriceResponseBody} extends {@link TeaModel} * *

DescribeSavingsPlanPriceResponseBody

*/ public static class PriceInfo extends TeaModel { @com.aliyun.core.annotation.NameInMap("Price") private Price price; @com.aliyun.core.annotation.NameInMap("Rules") private java.util.List rules; private PriceInfo(Builder builder) { this.price = builder.price; this.rules = builder.rules; } public static Builder builder() { return new Builder(); } public static PriceInfo create() { return builder().build(); } /** * @return price */ public Price getPrice() { return this.price; } /** * @return rules */ public java.util.List getRules() { return this.rules; } public static final class Builder { private Price price; private java.util.List rules; /** * Price. */ public Builder price(Price price) { this.price = price; return this; } /** * Rules. */ public Builder rules(java.util.List rules) { this.rules = rules; return this; } public PriceInfo build() { return new PriceInfo(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy