com.tencentcloudapi.mariadb.v20170312.models.DescribeUpgradePriceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-mariadb Show documentation
Show all versions of tencentcloud-sdk-java-mariadb 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.mariadb.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 DescribeUpgradePriceRequest extends AbstractModel {
/**
* 待升级的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 内存大小,单位:GB,可以通过 DescribeDBInstanceSpecs
查询实例规格获得。
*/
@SerializedName("Memory")
@Expose
private Long Memory;
/**
* 存储空间大小,单位:GB,可以通过 DescribeDBInstanceSpecs
查询实例规格获得不同内存大小对应的磁盘规格下限和上限。
*/
@SerializedName("Storage")
@Expose
private Long Storage;
/**
* 新节点数,传0表示节点数不变
*/
@SerializedName("NodeCount")
@Expose
private Long NodeCount;
/**
* 价格金额单位,不传默认单位为分,取值:
* pent:分
* microPent:微分
*/
@SerializedName("AmountUnit")
@Expose
private String AmountUnit;
/**
* Get 待升级的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
* @return InstanceId 待升级的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 待升级的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
* @param InstanceId 待升级的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 内存大小,单位:GB,可以通过 DescribeDBInstanceSpecs
查询实例规格获得。
* @return Memory 内存大小,单位:GB,可以通过 DescribeDBInstanceSpecs
查询实例规格获得。
*/
public Long getMemory() {
return this.Memory;
}
/**
* Set 内存大小,单位:GB,可以通过 DescribeDBInstanceSpecs
查询实例规格获得。
* @param Memory 内存大小,单位:GB,可以通过 DescribeDBInstanceSpecs
查询实例规格获得。
*/
public void setMemory(Long Memory) {
this.Memory = Memory;
}
/**
* Get 存储空间大小,单位:GB,可以通过 DescribeDBInstanceSpecs
查询实例规格获得不同内存大小对应的磁盘规格下限和上限。
* @return Storage 存储空间大小,单位:GB,可以通过 DescribeDBInstanceSpecs
查询实例规格获得不同内存大小对应的磁盘规格下限和上限。
*/
public Long getStorage() {
return this.Storage;
}
/**
* Set 存储空间大小,单位:GB,可以通过 DescribeDBInstanceSpecs
查询实例规格获得不同内存大小对应的磁盘规格下限和上限。
* @param Storage 存储空间大小,单位:GB,可以通过 DescribeDBInstanceSpecs
查询实例规格获得不同内存大小对应的磁盘规格下限和上限。
*/
public void setStorage(Long Storage) {
this.Storage = Storage;
}
/**
* Get 新节点数,传0表示节点数不变
* @return NodeCount 新节点数,传0表示节点数不变
*/
public Long getNodeCount() {
return this.NodeCount;
}
/**
* Set 新节点数,传0表示节点数不变
* @param NodeCount 新节点数,传0表示节点数不变
*/
public void setNodeCount(Long NodeCount) {
this.NodeCount = NodeCount;
}
/**
* Get 价格金额单位,不传默认单位为分,取值:
* pent:分
* microPent:微分
* @return AmountUnit 价格金额单位,不传默认单位为分,取值:
* pent:分
* microPent:微分
*/
public String getAmountUnit() {
return this.AmountUnit;
}
/**
* Set 价格金额单位,不传默认单位为分,取值:
* pent:分
* microPent:微分
* @param AmountUnit 价格金额单位,不传默认单位为分,取值:
* pent:分
* microPent:微分
*/
public void setAmountUnit(String AmountUnit) {
this.AmountUnit = AmountUnit;
}
public DescribeUpgradePriceRequest() {
}
/**
* 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 DescribeUpgradePriceRequest(DescribeUpgradePriceRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.Memory != null) {
this.Memory = new Long(source.Memory);
}
if (source.Storage != null) {
this.Storage = new Long(source.Storage);
}
if (source.NodeCount != null) {
this.NodeCount = new Long(source.NodeCount);
}
if (source.AmountUnit != null) {
this.AmountUnit = new String(source.AmountUnit);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "Memory", this.Memory);
this.setParamSimple(map, prefix + "Storage", this.Storage);
this.setParamSimple(map, prefix + "NodeCount", this.NodeCount);
this.setParamSimple(map, prefix + "AmountUnit", this.AmountUnit);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy