com.tencentcloudapi.postgres.v20170312.models.InquiryPriceCreateDBInstancesRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-postgres Show documentation
Show all versions of tencentcloud-sdk-java-postgres Show documentation
Tencent Cloud Open 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.postgres.v20170312.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class InquiryPriceCreateDBInstancesRequest extends AbstractModel{
/**
* 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
*/
@SerializedName("Zone")
@Expose
private String Zone;
/**
* 规格ID。该参数可以通过调用DescribeProductConfig接口的返回值中的SpecCode字段来获取。
*/
@SerializedName("SpecCode")
@Expose
private String SpecCode;
/**
* 存储容量大小,单位:GB。
*/
@SerializedName("Storage")
@Expose
private Long Storage;
/**
* 实例数量。目前最大数量不超过100,如需一次性创建更多实例,请联系客服支持。
*/
@SerializedName("InstanceCount")
@Expose
private Long InstanceCount;
/**
* 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值。
*/
@SerializedName("Period")
@Expose
private Long Period;
/**
* 计费ID。该参数可以通过调用DescribeProductConfig接口的返回值中的Pid字段来获取。
*/
@SerializedName("Pid")
@Expose
private Long Pid;
/**
* 实例计费类型。目前只支持:PREPAID(预付费,即包年包月)。
*/
@SerializedName("InstanceChargeType")
@Expose
private String InstanceChargeType;
/**
* Get 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
* @return Zone 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
*/
public String getZone() {
return this.Zone;
}
/**
* Set 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
* @param Zone 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
*/
public void setZone(String Zone) {
this.Zone = Zone;
}
/**
* Get 规格ID。该参数可以通过调用DescribeProductConfig接口的返回值中的SpecCode字段来获取。
* @return SpecCode 规格ID。该参数可以通过调用DescribeProductConfig接口的返回值中的SpecCode字段来获取。
*/
public String getSpecCode() {
return this.SpecCode;
}
/**
* Set 规格ID。该参数可以通过调用DescribeProductConfig接口的返回值中的SpecCode字段来获取。
* @param SpecCode 规格ID。该参数可以通过调用DescribeProductConfig接口的返回值中的SpecCode字段来获取。
*/
public void setSpecCode(String SpecCode) {
this.SpecCode = SpecCode;
}
/**
* Get 存储容量大小,单位:GB。
* @return Storage 存储容量大小,单位:GB。
*/
public Long getStorage() {
return this.Storage;
}
/**
* Set 存储容量大小,单位:GB。
* @param Storage 存储容量大小,单位:GB。
*/
public void setStorage(Long Storage) {
this.Storage = Storage;
}
/**
* Get 实例数量。目前最大数量不超过100,如需一次性创建更多实例,请联系客服支持。
* @return InstanceCount 实例数量。目前最大数量不超过100,如需一次性创建更多实例,请联系客服支持。
*/
public Long getInstanceCount() {
return this.InstanceCount;
}
/**
* Set 实例数量。目前最大数量不超过100,如需一次性创建更多实例,请联系客服支持。
* @param InstanceCount 实例数量。目前最大数量不超过100,如需一次性创建更多实例,请联系客服支持。
*/
public void setInstanceCount(Long InstanceCount) {
this.InstanceCount = InstanceCount;
}
/**
* Get 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值。
* @return Period 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值。
*/
public Long getPeriod() {
return this.Period;
}
/**
* Set 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值。
* @param Period 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值。
*/
public void setPeriod(Long Period) {
this.Period = Period;
}
/**
* Get 计费ID。该参数可以通过调用DescribeProductConfig接口的返回值中的Pid字段来获取。
* @return Pid 计费ID。该参数可以通过调用DescribeProductConfig接口的返回值中的Pid字段来获取。
*/
public Long getPid() {
return this.Pid;
}
/**
* Set 计费ID。该参数可以通过调用DescribeProductConfig接口的返回值中的Pid字段来获取。
* @param Pid 计费ID。该参数可以通过调用DescribeProductConfig接口的返回值中的Pid字段来获取。
*/
public void setPid(Long Pid) {
this.Pid = Pid;
}
/**
* Get 实例计费类型。目前只支持:PREPAID(预付费,即包年包月)。
* @return InstanceChargeType 实例计费类型。目前只支持:PREPAID(预付费,即包年包月)。
*/
public String getInstanceChargeType() {
return this.InstanceChargeType;
}
/**
* Set 实例计费类型。目前只支持:PREPAID(预付费,即包年包月)。
* @param InstanceChargeType 实例计费类型。目前只支持:PREPAID(预付费,即包年包月)。
*/
public void setInstanceChargeType(String InstanceChargeType) {
this.InstanceChargeType = InstanceChargeType;
}
public InquiryPriceCreateDBInstancesRequest() {
}
/**
* 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 InquiryPriceCreateDBInstancesRequest(InquiryPriceCreateDBInstancesRequest source) {
if (source.Zone != null) {
this.Zone = new String(source.Zone);
}
if (source.SpecCode != null) {
this.SpecCode = new String(source.SpecCode);
}
if (source.Storage != null) {
this.Storage = new Long(source.Storage);
}
if (source.InstanceCount != null) {
this.InstanceCount = new Long(source.InstanceCount);
}
if (source.Period != null) {
this.Period = new Long(source.Period);
}
if (source.Pid != null) {
this.Pid = new Long(source.Pid);
}
if (source.InstanceChargeType != null) {
this.InstanceChargeType = new String(source.InstanceChargeType);
}
}
/**
* 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 + "SpecCode", this.SpecCode);
this.setParamSimple(map, prefix + "Storage", this.Storage);
this.setParamSimple(map, prefix + "InstanceCount", this.InstanceCount);
this.setParamSimple(map, prefix + "Period", this.Period);
this.setParamSimple(map, prefix + "Pid", this.Pid);
this.setParamSimple(map, prefix + "InstanceChargeType", this.InstanceChargeType);
}
}