![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.cvm.v20170312.models.ReservedInstancesOffering 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.cvm.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 ReservedInstancesOffering extends AbstractModel {
/**
* The availability zones in which the Reserved Instance can be purchased, such as ap-guangzhou-1.
Valid value: Availability Zones
*/
@SerializedName("Zone")
@Expose
private String Zone;
/**
* The billing currency of the Reserved Instance you are purchasing. It's specified using ISO 4217 standard currency.
Value: USD.
*/
@SerializedName("CurrencyCode")
@Expose
private String CurrencyCode;
/**
* The **validity** of the Reserved Instance in seconds, which is the purchased usage period. For example, 31536000.
Unit: second
*/
@SerializedName("Duration")
@Expose
private Long Duration;
/**
* The purchase price of the Reserved Instance, such as 4000.0.
Unit: this field uses the currency code specified in `currencyCode`, and only supports “USD” at this time.
*/
@SerializedName("FixedPrice")
@Expose
private Float FixedPrice;
/**
* The instance model of the Reserved Instance, such as S3.MEDIUM4.
Valid values: please see Reserved Instance Types
*/
@SerializedName("InstanceType")
@Expose
private String InstanceType;
/**
* The payment term of the Reserved Instance, such as **All Upfront**.
Valid value: All Upfront.
*/
@SerializedName("OfferingType")
@Expose
private String OfferingType;
/**
* The ID of the Reserved Instance offering, such as 650c138f-ae7e-4750-952a-96841d6e9fc1.
*/
@SerializedName("ReservedInstancesOfferingId")
@Expose
private String ReservedInstancesOfferingId;
/**
* The operating system of the Reserved Instance, such as **linux**.
Valid value: linux.
*/
@SerializedName("ProductDescription")
@Expose
private String ProductDescription;
/**
* The hourly usage price of the Reserved Instance, such as 0.0.
Currently, the only supported payment mode is **All Upfront**, so the default value of `UsagePrice` is 0 USD/hr.
Unit: USD/hr. This field uses the currency code specified in `currencyCode`, and only supports “USD” at this time.
*/
@SerializedName("UsagePrice")
@Expose
private Float UsagePrice;
/**
* Get The availability zones in which the Reserved Instance can be purchased, such as ap-guangzhou-1.
Valid value: Availability Zones
* @return Zone The availability zones in which the Reserved Instance can be purchased, such as ap-guangzhou-1.
Valid value: Availability Zones
*/
public String getZone() {
return this.Zone;
}
/**
* Set The availability zones in which the Reserved Instance can be purchased, such as ap-guangzhou-1.
Valid value: Availability Zones
* @param Zone The availability zones in which the Reserved Instance can be purchased, such as ap-guangzhou-1.
Valid value: Availability Zones
*/
public void setZone(String Zone) {
this.Zone = Zone;
}
/**
* Get The billing currency of the Reserved Instance you are purchasing. It's specified using ISO 4217 standard currency.
Value: USD.
* @return CurrencyCode The billing currency of the Reserved Instance you are purchasing. It's specified using ISO 4217 standard currency.
Value: USD.
*/
public String getCurrencyCode() {
return this.CurrencyCode;
}
/**
* Set The billing currency of the Reserved Instance you are purchasing. It's specified using ISO 4217 standard currency.
Value: USD.
* @param CurrencyCode The billing currency of the Reserved Instance you are purchasing. It's specified using ISO 4217 standard currency.
Value: USD.
*/
public void setCurrencyCode(String CurrencyCode) {
this.CurrencyCode = CurrencyCode;
}
/**
* Get The **validity** of the Reserved Instance in seconds, which is the purchased usage period. For example, 31536000.
Unit: second
* @return Duration The **validity** of the Reserved Instance in seconds, which is the purchased usage period. For example, 31536000.
Unit: second
*/
public Long getDuration() {
return this.Duration;
}
/**
* Set The **validity** of the Reserved Instance in seconds, which is the purchased usage period. For example, 31536000.
Unit: second
* @param Duration The **validity** of the Reserved Instance in seconds, which is the purchased usage period. For example, 31536000.
Unit: second
*/
public void setDuration(Long Duration) {
this.Duration = Duration;
}
/**
* Get The purchase price of the Reserved Instance, such as 4000.0.
Unit: this field uses the currency code specified in `currencyCode`, and only supports “USD” at this time.
* @return FixedPrice The purchase price of the Reserved Instance, such as 4000.0.
Unit: this field uses the currency code specified in `currencyCode`, and only supports “USD” at this time.
*/
public Float getFixedPrice() {
return this.FixedPrice;
}
/**
* Set The purchase price of the Reserved Instance, such as 4000.0.
Unit: this field uses the currency code specified in `currencyCode`, and only supports “USD” at this time.
* @param FixedPrice The purchase price of the Reserved Instance, such as 4000.0.
Unit: this field uses the currency code specified in `currencyCode`, and only supports “USD” at this time.
*/
public void setFixedPrice(Float FixedPrice) {
this.FixedPrice = FixedPrice;
}
/**
* Get The instance model of the Reserved Instance, such as S3.MEDIUM4.
Valid values: please see Reserved Instance Types
* @return InstanceType The instance model of the Reserved Instance, such as S3.MEDIUM4.
Valid values: please see Reserved Instance Types
*/
public String getInstanceType() {
return this.InstanceType;
}
/**
* Set The instance model of the Reserved Instance, such as S3.MEDIUM4.
Valid values: please see Reserved Instance Types
* @param InstanceType The instance model of the Reserved Instance, such as S3.MEDIUM4.
Valid values: please see Reserved Instance Types
*/
public void setInstanceType(String InstanceType) {
this.InstanceType = InstanceType;
}
/**
* Get The payment term of the Reserved Instance, such as **All Upfront**.
Valid value: All Upfront.
* @return OfferingType The payment term of the Reserved Instance, such as **All Upfront**.
Valid value: All Upfront.
*/
public String getOfferingType() {
return this.OfferingType;
}
/**
* Set The payment term of the Reserved Instance, such as **All Upfront**.
Valid value: All Upfront.
* @param OfferingType The payment term of the Reserved Instance, such as **All Upfront**.
Valid value: All Upfront.
*/
public void setOfferingType(String OfferingType) {
this.OfferingType = OfferingType;
}
/**
* Get The ID of the Reserved Instance offering, such as 650c138f-ae7e-4750-952a-96841d6e9fc1.
* @return ReservedInstancesOfferingId The ID of the Reserved Instance offering, such as 650c138f-ae7e-4750-952a-96841d6e9fc1.
*/
public String getReservedInstancesOfferingId() {
return this.ReservedInstancesOfferingId;
}
/**
* Set The ID of the Reserved Instance offering, such as 650c138f-ae7e-4750-952a-96841d6e9fc1.
* @param ReservedInstancesOfferingId The ID of the Reserved Instance offering, such as 650c138f-ae7e-4750-952a-96841d6e9fc1.
*/
public void setReservedInstancesOfferingId(String ReservedInstancesOfferingId) {
this.ReservedInstancesOfferingId = ReservedInstancesOfferingId;
}
/**
* Get The operating system of the Reserved Instance, such as **linux**.
Valid value: linux.
* @return ProductDescription The operating system of the Reserved Instance, such as **linux**.
Valid value: linux.
*/
public String getProductDescription() {
return this.ProductDescription;
}
/**
* Set The operating system of the Reserved Instance, such as **linux**.
Valid value: linux.
* @param ProductDescription The operating system of the Reserved Instance, such as **linux**.
Valid value: linux.
*/
public void setProductDescription(String ProductDescription) {
this.ProductDescription = ProductDescription;
}
/**
* Get The hourly usage price of the Reserved Instance, such as 0.0.
Currently, the only supported payment mode is **All Upfront**, so the default value of `UsagePrice` is 0 USD/hr.
Unit: USD/hr. This field uses the currency code specified in `currencyCode`, and only supports “USD” at this time.
* @return UsagePrice The hourly usage price of the Reserved Instance, such as 0.0.
Currently, the only supported payment mode is **All Upfront**, so the default value of `UsagePrice` is 0 USD/hr.
Unit: USD/hr. This field uses the currency code specified in `currencyCode`, and only supports “USD” at this time.
*/
public Float getUsagePrice() {
return this.UsagePrice;
}
/**
* Set The hourly usage price of the Reserved Instance, such as 0.0.
Currently, the only supported payment mode is **All Upfront**, so the default value of `UsagePrice` is 0 USD/hr.
Unit: USD/hr. This field uses the currency code specified in `currencyCode`, and only supports “USD” at this time.
* @param UsagePrice The hourly usage price of the Reserved Instance, such as 0.0.
Currently, the only supported payment mode is **All Upfront**, so the default value of `UsagePrice` is 0 USD/hr.
Unit: USD/hr. This field uses the currency code specified in `currencyCode`, and only supports “USD” at this time.
*/
public void setUsagePrice(Float UsagePrice) {
this.UsagePrice = UsagePrice;
}
public ReservedInstancesOffering() {
}
/**
* 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 ReservedInstancesOffering(ReservedInstancesOffering source) {
if (source.Zone != null) {
this.Zone = new String(source.Zone);
}
if (source.CurrencyCode != null) {
this.CurrencyCode = new String(source.CurrencyCode);
}
if (source.Duration != null) {
this.Duration = new Long(source.Duration);
}
if (source.FixedPrice != null) {
this.FixedPrice = new Float(source.FixedPrice);
}
if (source.InstanceType != null) {
this.InstanceType = new String(source.InstanceType);
}
if (source.OfferingType != null) {
this.OfferingType = new String(source.OfferingType);
}
if (source.ReservedInstancesOfferingId != null) {
this.ReservedInstancesOfferingId = new String(source.ReservedInstancesOfferingId);
}
if (source.ProductDescription != null) {
this.ProductDescription = new String(source.ProductDescription);
}
if (source.UsagePrice != null) {
this.UsagePrice = new Float(source.UsagePrice);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Zone", this.Zone);
this.setParamSimple(map, prefix + "CurrencyCode", this.CurrencyCode);
this.setParamSimple(map, prefix + "Duration", this.Duration);
this.setParamSimple(map, prefix + "FixedPrice", this.FixedPrice);
this.setParamSimple(map, prefix + "InstanceType", this.InstanceType);
this.setParamSimple(map, prefix + "OfferingType", this.OfferingType);
this.setParamSimple(map, prefix + "ReservedInstancesOfferingId", this.ReservedInstancesOfferingId);
this.setParamSimple(map, prefix + "ProductDescription", this.ProductDescription);
this.setParamSimple(map, prefix + "UsagePrice", this.UsagePrice);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy