Class ReservedInstancesOffering
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.cvm.v20170312.models.ReservedInstancesOffering
-
public class ReservedInstancesOffering extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description ReservedInstancesOffering()ReservedInstancesOffering(ReservedInstancesOffering source)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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCurrencyCode()Get 可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。 返回项:USD(美元)。LonggetDuration()Get 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。 计量单位:秒FloatgetFixedPrice()Get 预留实例计费的购买价格。形如:4000.0。 计量单位:与 currencyCode 一致,目前支持 USD(美元)StringgetInstanceType()Get 预留实例计费的实例类型。形如:S3.MEDIUM4。 返回项:预留实例计费类型列表StringgetOfferingType()Get 预留实例计费的付款类型。形如:All Upfront。 返回项: All Upfront (预付全部费用)。StringgetProductDescription()Get 预留实例计费的平台描述(即操作系统)。形如:linux。 返回项: linux 。StringgetReservedInstancesOfferingId()Get 可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。FloatgetUsagePrice()Get 扣除预付费之后的使用价格 (按小时计费)。形如:0.0。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)StringgetZone()Get 预留实例计费可购买的可用区。形如:ap-guangzhou-1。 返回项:可用区列表voidsetCurrencyCode(String CurrencyCode)Set 可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。 返回项:USD(美元)。voidsetDuration(Long Duration)Set 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。 计量单位:秒voidsetFixedPrice(Float FixedPrice)Set 预留实例计费的购买价格。形如:4000.0。 计量单位:与 currencyCode 一致,目前支持 USD(美元)voidsetInstanceType(String InstanceType)Set 预留实例计费的实例类型。形如:S3.MEDIUM4。 返回项:预留实例计费类型列表voidsetOfferingType(String OfferingType)Set 预留实例计费的付款类型。形如:All Upfront。 返回项: All Upfront (预付全部费用)。voidsetProductDescription(String ProductDescription)Set 预留实例计费的平台描述(即操作系统)。形如:linux。 返回项: linux 。voidsetReservedInstancesOfferingId(String ReservedInstancesOfferingId)Set 可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。voidsetUsagePrice(Float UsagePrice)Set 扣除预付费之后的使用价格 (按小时计费)。形如:0.0。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)voidsetZone(String Zone)Set 预留实例计费可购买的可用区。形如:ap-guangzhou-1。 返回项:可用区列表voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
ReservedInstancesOffering
public ReservedInstancesOffering()
-
ReservedInstancesOffering
public ReservedInstancesOffering(ReservedInstancesOffering source)
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.
-
-
Method Detail
-
getZone
public String getZone()
Get 预留实例计费可购买的可用区。形如:ap-guangzhou-1。 返回项:可用区列表- Returns:
- Zone 预留实例计费可购买的可用区。形如:ap-guangzhou-1。 返回项:可用区列表
-
setZone
public void setZone(String Zone)
Set 预留实例计费可购买的可用区。形如:ap-guangzhou-1。 返回项:可用区列表- Parameters:
Zone- 预留实例计费可购买的可用区。形如:ap-guangzhou-1。 返回项:可用区列表
-
getCurrencyCode
public String getCurrencyCode()
Get 可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。 返回项:USD(美元)。- Returns:
- CurrencyCode 可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。 返回项:USD(美元)。
-
setCurrencyCode
public void setCurrencyCode(String CurrencyCode)
Set 可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。 返回项:USD(美元)。- Parameters:
CurrencyCode- 可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。 返回项:USD(美元)。
-
getDuration
public Long getDuration()
Get 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。 计量单位:秒- Returns:
- Duration 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。 计量单位:秒
-
setDuration
public void setDuration(Long Duration)
Set 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。 计量单位:秒- Parameters:
Duration- 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。 计量单位:秒
-
getFixedPrice
public Float getFixedPrice()
Get 预留实例计费的购买价格。形如:4000.0。 计量单位:与 currencyCode 一致,目前支持 USD(美元)- Returns:
- FixedPrice 预留实例计费的购买价格。形如:4000.0。 计量单位:与 currencyCode 一致,目前支持 USD(美元)
-
setFixedPrice
public void setFixedPrice(Float FixedPrice)
Set 预留实例计费的购买价格。形如:4000.0。 计量单位:与 currencyCode 一致,目前支持 USD(美元)- Parameters:
FixedPrice- 预留实例计费的购买价格。形如:4000.0。 计量单位:与 currencyCode 一致,目前支持 USD(美元)
-
getInstanceType
public String getInstanceType()
Get 预留实例计费的实例类型。形如:S3.MEDIUM4。 返回项:预留实例计费类型列表- Returns:
- InstanceType 预留实例计费的实例类型。形如:S3.MEDIUM4。 返回项:预留实例计费类型列表
-
setInstanceType
public void setInstanceType(String InstanceType)
Set 预留实例计费的实例类型。形如:S3.MEDIUM4。 返回项:预留实例计费类型列表- Parameters:
InstanceType- 预留实例计费的实例类型。形如:S3.MEDIUM4。 返回项:预留实例计费类型列表
-
getOfferingType
public String getOfferingType()
Get 预留实例计费的付款类型。形如:All Upfront。 返回项: All Upfront (预付全部费用)。- Returns:
- OfferingType 预留实例计费的付款类型。形如:All Upfront。 返回项: All Upfront (预付全部费用)。
-
setOfferingType
public void setOfferingType(String OfferingType)
Set 预留实例计费的付款类型。形如:All Upfront。 返回项: All Upfront (预付全部费用)。- Parameters:
OfferingType- 预留实例计费的付款类型。形如:All Upfront。 返回项: All Upfront (预付全部费用)。
-
getReservedInstancesOfferingId
public String getReservedInstancesOfferingId()
Get 可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。- Returns:
- ReservedInstancesOfferingId 可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。
-
setReservedInstancesOfferingId
public void setReservedInstancesOfferingId(String ReservedInstancesOfferingId)
Set 可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。- Parameters:
ReservedInstancesOfferingId- 可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。
-
getProductDescription
public String getProductDescription()
Get 预留实例计费的平台描述(即操作系统)。形如:linux。 返回项: linux 。- Returns:
- ProductDescription 预留实例计费的平台描述(即操作系统)。形如:linux。 返回项: linux 。
-
setProductDescription
public void setProductDescription(String ProductDescription)
Set 预留实例计费的平台描述(即操作系统)。形如:linux。 返回项: linux 。- Parameters:
ProductDescription- 预留实例计费的平台描述(即操作系统)。形如:linux。 返回项: linux 。
-
getUsagePrice
public Float getUsagePrice()
Get 扣除预付费之后的使用价格 (按小时计费)。形如:0.0。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)- Returns:
- UsagePrice 扣除预付费之后的使用价格 (按小时计费)。形如:0.0。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)
-
setUsagePrice
public void setUsagePrice(Float UsagePrice)
Set 扣除预付费之后的使用价格 (按小时计费)。形如:0.0。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)- Parameters:
UsagePrice- 扣除预付费之后的使用价格 (按小时计费)。形如:0.0。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)
-
-