![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.vpc.v20170312.models.ItemPrice 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.vpc.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 ItemPrice extends AbstractModel {
/**
* The pay-as-you-go billing method. Unit: CNY.
*/
@SerializedName("UnitPrice")
@Expose
private Float UnitPrice;
/**
* Pay-as-you-go billing method. Value Range: HOUR: Indicates billing by the hour. Scenarios using this hourly billing unit include: Instances postpaid on an hourly basis (POSTPAID_BY_HOUR), and bandwidth postpaid on an hourly basis (BANDWIDTH_POSTPAID_BY_HOUR). GB: Indicates billing on a per-GB basis. Scenarios using this billing unit include: Traffic postpaid on an hourly basis (TRAFFIC_POSTPAID_BY_HOUR).
*/
@SerializedName("ChargeUnit")
@Expose
private String ChargeUnit;
/**
* Original price of the prepaid product. Unit: CNY.
*/
@SerializedName("OriginalPrice")
@Expose
private Float OriginalPrice;
/**
* Discount price of the prepaid product. Unit: CNY.
*/
@SerializedName("DiscountPrice")
@Expose
private Float DiscountPrice;
/**
* Get The pay-as-you-go billing method. Unit: CNY.
* @return UnitPrice The pay-as-you-go billing method. Unit: CNY.
*/
public Float getUnitPrice() {
return this.UnitPrice;
}
/**
* Set The pay-as-you-go billing method. Unit: CNY.
* @param UnitPrice The pay-as-you-go billing method. Unit: CNY.
*/
public void setUnitPrice(Float UnitPrice) {
this.UnitPrice = UnitPrice;
}
/**
* Get Pay-as-you-go billing method. Value Range: HOUR: Indicates billing by the hour. Scenarios using this hourly billing unit include: Instances postpaid on an hourly basis (POSTPAID_BY_HOUR), and bandwidth postpaid on an hourly basis (BANDWIDTH_POSTPAID_BY_HOUR). GB: Indicates billing on a per-GB basis. Scenarios using this billing unit include: Traffic postpaid on an hourly basis (TRAFFIC_POSTPAID_BY_HOUR).
* @return ChargeUnit Pay-as-you-go billing method. Value Range: HOUR: Indicates billing by the hour. Scenarios using this hourly billing unit include: Instances postpaid on an hourly basis (POSTPAID_BY_HOUR), and bandwidth postpaid on an hourly basis (BANDWIDTH_POSTPAID_BY_HOUR). GB: Indicates billing on a per-GB basis. Scenarios using this billing unit include: Traffic postpaid on an hourly basis (TRAFFIC_POSTPAID_BY_HOUR).
*/
public String getChargeUnit() {
return this.ChargeUnit;
}
/**
* Set Pay-as-you-go billing method. Value Range: HOUR: Indicates billing by the hour. Scenarios using this hourly billing unit include: Instances postpaid on an hourly basis (POSTPAID_BY_HOUR), and bandwidth postpaid on an hourly basis (BANDWIDTH_POSTPAID_BY_HOUR). GB: Indicates billing on a per-GB basis. Scenarios using this billing unit include: Traffic postpaid on an hourly basis (TRAFFIC_POSTPAID_BY_HOUR).
* @param ChargeUnit Pay-as-you-go billing method. Value Range: HOUR: Indicates billing by the hour. Scenarios using this hourly billing unit include: Instances postpaid on an hourly basis (POSTPAID_BY_HOUR), and bandwidth postpaid on an hourly basis (BANDWIDTH_POSTPAID_BY_HOUR). GB: Indicates billing on a per-GB basis. Scenarios using this billing unit include: Traffic postpaid on an hourly basis (TRAFFIC_POSTPAID_BY_HOUR).
*/
public void setChargeUnit(String ChargeUnit) {
this.ChargeUnit = ChargeUnit;
}
/**
* Get Original price of the prepaid product. Unit: CNY.
* @return OriginalPrice Original price of the prepaid product. Unit: CNY.
*/
public Float getOriginalPrice() {
return this.OriginalPrice;
}
/**
* Set Original price of the prepaid product. Unit: CNY.
* @param OriginalPrice Original price of the prepaid product. Unit: CNY.
*/
public void setOriginalPrice(Float OriginalPrice) {
this.OriginalPrice = OriginalPrice;
}
/**
* Get Discount price of the prepaid product. Unit: CNY.
* @return DiscountPrice Discount price of the prepaid product. Unit: CNY.
*/
public Float getDiscountPrice() {
return this.DiscountPrice;
}
/**
* Set Discount price of the prepaid product. Unit: CNY.
* @param DiscountPrice Discount price of the prepaid product. Unit: CNY.
*/
public void setDiscountPrice(Float DiscountPrice) {
this.DiscountPrice = DiscountPrice;
}
public ItemPrice() {
}
/**
* 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 ItemPrice(ItemPrice source) {
if (source.UnitPrice != null) {
this.UnitPrice = new Float(source.UnitPrice);
}
if (source.ChargeUnit != null) {
this.ChargeUnit = new String(source.ChargeUnit);
}
if (source.OriginalPrice != null) {
this.OriginalPrice = new Float(source.OriginalPrice);
}
if (source.DiscountPrice != null) {
this.DiscountPrice = new Float(source.DiscountPrice);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "UnitPrice", this.UnitPrice);
this.setParamSimple(map, prefix + "ChargeUnit", this.ChargeUnit);
this.setParamSimple(map, prefix + "OriginalPrice", this.OriginalPrice);
this.setParamSimple(map, prefix + "DiscountPrice", this.DiscountPrice);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy