com.tencentcloudapi.cbs.v20170312.models.Price Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.cbs.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class Price extends AbstractModel {
/**
* Original price of a monthly-subscribed cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("OriginalPrice")
@Expose
private Float OriginalPrice;
/**
* Discounted price of a monthly-subscribed cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("DiscountPrice")
@Expose
private Float DiscountPrice;
/**
* Original unit price of a pay-as-you-go cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("UnitPrice")
@Expose
private Float UnitPrice;
/**
* Billing unit of a postpaid cloud disk. Value range:
HOUR: Billed by hour.
Note: This field may return null, indicating that no valid value was found.
*/
@SerializedName("ChargeUnit")
@Expose
private String ChargeUnit;
/**
* Discount unit price of a pay-as-you-go cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("UnitPriceDiscount")
@Expose
private Float UnitPriceDiscount;
/**
* Original payment of a monthly-subscribed cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("OriginalPriceHigh")
@Expose
private String OriginalPriceHigh;
/**
* Discounted payment price of a monthly-subscribed cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("DiscountPriceHigh")
@Expose
private String DiscountPriceHigh;
/**
* Original unit price of a pay-as-you-go cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("UnitPriceHigh")
@Expose
private String UnitPriceHigh;
/**
* Discounted unit price of a pay-as-you-go cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("UnitPriceDiscountHigh")
@Expose
private String UnitPriceDiscountHigh;
/**
* Get Original price of a monthly-subscribed cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return OriginalPrice Original price of a monthly-subscribed cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public Float getOriginalPrice() {
return this.OriginalPrice;
}
/**
* Set Original price of a monthly-subscribed cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param OriginalPrice Original price of a monthly-subscribed cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setOriginalPrice(Float OriginalPrice) {
this.OriginalPrice = OriginalPrice;
}
/**
* Get Discounted price of a monthly-subscribed cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return DiscountPrice Discounted price of a monthly-subscribed cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public Float getDiscountPrice() {
return this.DiscountPrice;
}
/**
* Set Discounted price of a monthly-subscribed cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param DiscountPrice Discounted price of a monthly-subscribed cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setDiscountPrice(Float DiscountPrice) {
this.DiscountPrice = DiscountPrice;
}
/**
* Get Original unit price of a pay-as-you-go cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return UnitPrice Original unit price of a pay-as-you-go cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public Float getUnitPrice() {
return this.UnitPrice;
}
/**
* Set Original unit price of a pay-as-you-go cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param UnitPrice Original unit price of a pay-as-you-go cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setUnitPrice(Float UnitPrice) {
this.UnitPrice = UnitPrice;
}
/**
* Get Billing unit of a postpaid cloud disk. Value range:
HOUR: Billed by hour.
Note: This field may return null, indicating that no valid value was found.
* @return ChargeUnit Billing unit of a postpaid cloud disk. Value range:
HOUR: Billed by hour.
Note: This field may return null, indicating that no valid value was found.
*/
public String getChargeUnit() {
return this.ChargeUnit;
}
/**
* Set Billing unit of a postpaid cloud disk. Value range:
HOUR: Billed by hour.
Note: This field may return null, indicating that no valid value was found.
* @param ChargeUnit Billing unit of a postpaid cloud disk. Value range:
HOUR: Billed by hour.
Note: This field may return null, indicating that no valid value was found.
*/
public void setChargeUnit(String ChargeUnit) {
this.ChargeUnit = ChargeUnit;
}
/**
* Get Discount unit price of a pay-as-you-go cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return UnitPriceDiscount Discount unit price of a pay-as-you-go cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public Float getUnitPriceDiscount() {
return this.UnitPriceDiscount;
}
/**
* Set Discount unit price of a pay-as-you-go cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param UnitPriceDiscount Discount unit price of a pay-as-you-go cloud disk, in USD.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setUnitPriceDiscount(Float UnitPriceDiscount) {
this.UnitPriceDiscount = UnitPriceDiscount;
}
/**
* Get Original payment of a monthly-subscribed cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return OriginalPriceHigh Original payment of a monthly-subscribed cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public String getOriginalPriceHigh() {
return this.OriginalPriceHigh;
}
/**
* Set Original payment of a monthly-subscribed cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param OriginalPriceHigh Original payment of a monthly-subscribed cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setOriginalPriceHigh(String OriginalPriceHigh) {
this.OriginalPriceHigh = OriginalPriceHigh;
}
/**
* Get Discounted payment price of a monthly-subscribed cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return DiscountPriceHigh Discounted payment price of a monthly-subscribed cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public String getDiscountPriceHigh() {
return this.DiscountPriceHigh;
}
/**
* Set Discounted payment price of a monthly-subscribed cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param DiscountPriceHigh Discounted payment price of a monthly-subscribed cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setDiscountPriceHigh(String DiscountPriceHigh) {
this.DiscountPriceHigh = DiscountPriceHigh;
}
/**
* Get Original unit price of a pay-as-you-go cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return UnitPriceHigh Original unit price of a pay-as-you-go cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public String getUnitPriceHigh() {
return this.UnitPriceHigh;
}
/**
* Set Original unit price of a pay-as-you-go cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param UnitPriceHigh Original unit price of a pay-as-you-go cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setUnitPriceHigh(String UnitPriceHigh) {
this.UnitPriceHigh = UnitPriceHigh;
}
/**
* Get Discounted unit price of a pay-as-you-go cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @return UnitPriceDiscountHigh Discounted unit price of a pay-as-you-go cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public String getUnitPriceDiscountHigh() {
return this.UnitPriceDiscountHigh;
}
/**
* Set Discounted unit price of a pay-as-you-go cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
* @param UnitPriceDiscountHigh Discounted unit price of a pay-as-you-go cloud disk, in USD, with six decimal places.
Note: this field may return `null`, indicating that no valid values can be obtained.
*/
public void setUnitPriceDiscountHigh(String UnitPriceDiscountHigh) {
this.UnitPriceDiscountHigh = UnitPriceDiscountHigh;
}
public Price() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public Price(Price source) {
if (source.OriginalPrice != null) {
this.OriginalPrice = new Float(source.OriginalPrice);
}
if (source.DiscountPrice != null) {
this.DiscountPrice = new Float(source.DiscountPrice);
}
if (source.UnitPrice != null) {
this.UnitPrice = new Float(source.UnitPrice);
}
if (source.ChargeUnit != null) {
this.ChargeUnit = new String(source.ChargeUnit);
}
if (source.UnitPriceDiscount != null) {
this.UnitPriceDiscount = new Float(source.UnitPriceDiscount);
}
if (source.OriginalPriceHigh != null) {
this.OriginalPriceHigh = new String(source.OriginalPriceHigh);
}
if (source.DiscountPriceHigh != null) {
this.DiscountPriceHigh = new String(source.DiscountPriceHigh);
}
if (source.UnitPriceHigh != null) {
this.UnitPriceHigh = new String(source.UnitPriceHigh);
}
if (source.UnitPriceDiscountHigh != null) {
this.UnitPriceDiscountHigh = new String(source.UnitPriceDiscountHigh);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "OriginalPrice", this.OriginalPrice);
this.setParamSimple(map, prefix + "DiscountPrice", this.DiscountPrice);
this.setParamSimple(map, prefix + "UnitPrice", this.UnitPrice);
this.setParamSimple(map, prefix + "ChargeUnit", this.ChargeUnit);
this.setParamSimple(map, prefix + "UnitPriceDiscount", this.UnitPriceDiscount);
this.setParamSimple(map, prefix + "OriginalPriceHigh", this.OriginalPriceHigh);
this.setParamSimple(map, prefix + "DiscountPriceHigh", this.DiscountPriceHigh);
this.setParamSimple(map, prefix + "UnitPriceHigh", this.UnitPriceHigh);
this.setParamSimple(map, prefix + "UnitPriceDiscountHigh", this.UnitPriceDiscountHigh);
}
}