com.tencentcloudapi.mongodb.v20190725.models.ModifyDBInstanceSpecRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-mongodb Show documentation
Show all versions of tencentcloud-sdk-java-mongodb 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.mongodb.v20190725.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifyDBInstanceSpecRequest extends AbstractModel{
/**
* 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* 实例配置变更后的内存大小,单位:GB。内存和磁盘必须同时升配或同时降配
*/
@SerializedName("Memory")
@Expose
private Long Memory;
/**
* 实例配置变更后的硬盘大小,单位:GB。内存和磁盘必须同时升配或同时降配。降配时,新的磁盘参数必须大于已用磁盘容量的1.2倍
*/
@SerializedName("Volume")
@Expose
private Long Volume;
/**
* 实例配置变更后oplog的大小,单位:GB,默认为磁盘空间的10%,允许设置的最小值为磁盘的10%,最大值为磁盘的90%
*/
@SerializedName("OplogSize")
@Expose
private Long OplogSize;
/**
* 实例变更后的节点数,取值范围具体参照查询云数据库的售卖规格返回参数。默认为不变更节点数
*/
@SerializedName("NodeNum")
@Expose
private Long NodeNum;
/**
* 实例变更后的分片数,取值范围具体参照查询云数据库的售卖规格返回参数。只能增加不能减少,默认为不变更分片数
*/
@SerializedName("ReplicateSetNum")
@Expose
private Long ReplicateSetNum;
/**
* 实例配置变更的切换时间,参数为:0(默认)、1。0-调整完成时,1-维护时间内。注:调整节点数和分片数不支持在【维护时间内】变更。
*/
@SerializedName("InMaintenance")
@Expose
private Long InMaintenance;
/**
* Get 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
* @return InstanceId 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
* @param InstanceId 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get 实例配置变更后的内存大小,单位:GB。内存和磁盘必须同时升配或同时降配
* @return Memory 实例配置变更后的内存大小,单位:GB。内存和磁盘必须同时升配或同时降配
*/
public Long getMemory() {
return this.Memory;
}
/**
* Set 实例配置变更后的内存大小,单位:GB。内存和磁盘必须同时升配或同时降配
* @param Memory 实例配置变更后的内存大小,单位:GB。内存和磁盘必须同时升配或同时降配
*/
public void setMemory(Long Memory) {
this.Memory = Memory;
}
/**
* Get 实例配置变更后的硬盘大小,单位:GB。内存和磁盘必须同时升配或同时降配。降配时,新的磁盘参数必须大于已用磁盘容量的1.2倍
* @return Volume 实例配置变更后的硬盘大小,单位:GB。内存和磁盘必须同时升配或同时降配。降配时,新的磁盘参数必须大于已用磁盘容量的1.2倍
*/
public Long getVolume() {
return this.Volume;
}
/**
* Set 实例配置变更后的硬盘大小,单位:GB。内存和磁盘必须同时升配或同时降配。降配时,新的磁盘参数必须大于已用磁盘容量的1.2倍
* @param Volume 实例配置变更后的硬盘大小,单位:GB。内存和磁盘必须同时升配或同时降配。降配时,新的磁盘参数必须大于已用磁盘容量的1.2倍
*/
public void setVolume(Long Volume) {
this.Volume = Volume;
}
/**
* Get 实例配置变更后oplog的大小,单位:GB,默认为磁盘空间的10%,允许设置的最小值为磁盘的10%,最大值为磁盘的90%
* @return OplogSize 实例配置变更后oplog的大小,单位:GB,默认为磁盘空间的10%,允许设置的最小值为磁盘的10%,最大值为磁盘的90%
*/
public Long getOplogSize() {
return this.OplogSize;
}
/**
* Set 实例配置变更后oplog的大小,单位:GB,默认为磁盘空间的10%,允许设置的最小值为磁盘的10%,最大值为磁盘的90%
* @param OplogSize 实例配置变更后oplog的大小,单位:GB,默认为磁盘空间的10%,允许设置的最小值为磁盘的10%,最大值为磁盘的90%
*/
public void setOplogSize(Long OplogSize) {
this.OplogSize = OplogSize;
}
/**
* Get 实例变更后的节点数,取值范围具体参照查询云数据库的售卖规格返回参数。默认为不变更节点数
* @return NodeNum 实例变更后的节点数,取值范围具体参照查询云数据库的售卖规格返回参数。默认为不变更节点数
*/
public Long getNodeNum() {
return this.NodeNum;
}
/**
* Set 实例变更后的节点数,取值范围具体参照查询云数据库的售卖规格返回参数。默认为不变更节点数
* @param NodeNum 实例变更后的节点数,取值范围具体参照查询云数据库的售卖规格返回参数。默认为不变更节点数
*/
public void setNodeNum(Long NodeNum) {
this.NodeNum = NodeNum;
}
/**
* Get 实例变更后的分片数,取值范围具体参照查询云数据库的售卖规格返回参数。只能增加不能减少,默认为不变更分片数
* @return ReplicateSetNum 实例变更后的分片数,取值范围具体参照查询云数据库的售卖规格返回参数。只能增加不能减少,默认为不变更分片数
*/
public Long getReplicateSetNum() {
return this.ReplicateSetNum;
}
/**
* Set 实例变更后的分片数,取值范围具体参照查询云数据库的售卖规格返回参数。只能增加不能减少,默认为不变更分片数
* @param ReplicateSetNum 实例变更后的分片数,取值范围具体参照查询云数据库的售卖规格返回参数。只能增加不能减少,默认为不变更分片数
*/
public void setReplicateSetNum(Long ReplicateSetNum) {
this.ReplicateSetNum = ReplicateSetNum;
}
/**
* Get 实例配置变更的切换时间,参数为:0(默认)、1。0-调整完成时,1-维护时间内。注:调整节点数和分片数不支持在【维护时间内】变更。
* @return InMaintenance 实例配置变更的切换时间,参数为:0(默认)、1。0-调整完成时,1-维护时间内。注:调整节点数和分片数不支持在【维护时间内】变更。
*/
public Long getInMaintenance() {
return this.InMaintenance;
}
/**
* Set 实例配置变更的切换时间,参数为:0(默认)、1。0-调整完成时,1-维护时间内。注:调整节点数和分片数不支持在【维护时间内】变更。
* @param InMaintenance 实例配置变更的切换时间,参数为:0(默认)、1。0-调整完成时,1-维护时间内。注:调整节点数和分片数不支持在【维护时间内】变更。
*/
public void setInMaintenance(Long InMaintenance) {
this.InMaintenance = InMaintenance;
}
public ModifyDBInstanceSpecRequest() {
}
/**
* 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 ModifyDBInstanceSpecRequest(ModifyDBInstanceSpecRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.Memory != null) {
this.Memory = new Long(source.Memory);
}
if (source.Volume != null) {
this.Volume = new Long(source.Volume);
}
if (source.OplogSize != null) {
this.OplogSize = new Long(source.OplogSize);
}
if (source.NodeNum != null) {
this.NodeNum = new Long(source.NodeNum);
}
if (source.ReplicateSetNum != null) {
this.ReplicateSetNum = new Long(source.ReplicateSetNum);
}
if (source.InMaintenance != null) {
this.InMaintenance = new Long(source.InMaintenance);
}
}
/**
* 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 + "Volume", this.Volume);
this.setParamSimple(map, prefix + "OplogSize", this.OplogSize);
this.setParamSimple(map, prefix + "NodeNum", this.NodeNum);
this.setParamSimple(map, prefix + "ReplicateSetNum", this.ReplicateSetNum);
this.setParamSimple(map, prefix + "InMaintenance", this.InMaintenance);
}
}