public class ModifyDBInstanceSpecRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyDBInstanceSpecRequest() |
ModifyDBInstanceSpecRequest(ModifyDBInstanceSpecRequest 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.
|
Modifier and Type | Method and Description |
---|---|
AddNodeList[] |
getAddNodeList()
Get List of nodes to be added, containing the node type and AZ information.
|
Long |
getInMaintenance()
Get Switch time for instance configuration modification.
|
String |
getInstanceId()
Get Instance ID.
|
Long |
getMemory()
Get Memory size after instance configuration changes, in GB.
|
String |
getMongosMemory()
Get Memory size of the Mongos node after sharded cluster instance configuration changes, in GB.
|
Long |
getNodeNum()
Get Number of Mongod nodes after instance changes (excluding read-only nodes).
|
Long |
getOplogSize()
Deprecated.
|
RemoveNodeList[] |
getRemoveNodeList()
Get Deletes the node list.
|
Long |
getReplicateSetNum()
Get Number of shards after instance changes.
|
Long |
getVolume()
Get Hard disk size after instance configuration changes, in GB.
|
void |
setAddNodeList(AddNodeList[] AddNodeList)
Set List of nodes to be added, containing the node type and AZ information.
|
void |
setInMaintenance(Long InMaintenance)
Set Switch time for instance configuration modification.
|
void |
setInstanceId(String InstanceId)
Set Instance ID.
|
void |
setMemory(Long Memory)
Set Memory size after instance configuration changes, in GB.
|
void |
setMongosMemory(String MongosMemory)
Set Memory size of the Mongos node after sharded cluster instance configuration changes, in GB.
|
void |
setNodeNum(Long NodeNum)
Set Number of Mongod nodes after instance changes (excluding read-only nodes).
|
void |
setOplogSize(Long OplogSize)
Deprecated.
|
void |
setRemoveNodeList(RemoveNodeList[] RemoveNodeList)
Set Deletes the node list.
|
void |
setReplicateSetNum(Long ReplicateSetNum)
Set Number of shards after instance changes.
|
void |
setVolume(Long Volume)
Set Hard disk size after instance configuration changes, in GB.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ModifyDBInstanceSpecRequest()
public ModifyDBInstanceSpecRequest(ModifyDBInstanceSpecRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID. Log in to the [TencentDB for MongoDB console](https://console.cloud.tencent.com/mongodb), and copy the instance ID from the instance list.public Long getMemory()
public void setMemory(Long Memory)
Memory
- Memory size after instance configuration changes, in GB. If this parameter is left blank, the default value is the current memory size of the instance. For the currently supported memory specifications, see [Product Specifications](https://www.tencentcloud.comom/document/product/240/64125?from_cn_redirect=1).
Note**: Memory and disk configurations should be upgraded or downgraded simultaneously, meaning that Memory and Volume should be modified at the same time.public Long getVolume()
public void setVolume(Long Volume)
Volume
- Hard disk size after instance configuration changes, in GB. If this parameter is left blank, the default value is the current disk size of the instance. For the currently supported disk capacity, see [Product Specifications](https://www.tencentcloud.comom/document/product/240/64125?from_cn_redirect=1).
- Memory and disk configurations should be upgraded or downgraded at the same time, meaning that Memory and Volume should be modified at the same time.
- During configuration downgrade, the disk capacity after changes should be greater than 1.2 times the used disk capacity.@Deprecated public Long getOplogSize()
@Deprecated public void setOplogSize(Long OplogSize)
OplogSize
- (Deprecated) Use the independent API ResizeOplog.
Oplog size after instance configuration modification.
- Unit: GB.
- By default, the capacity occupied by Oplog is 10% of the disk capacity. The range of capacity occupied by Oplog supported by the system is [10%,90%] of the disk capacity.public Long getNodeNum()
public void setNodeNum(Long NodeNum)
NodeNum
- Number of Mongod nodes after instance changes (excluding read-only nodes).
- Number of replica set nodes. The value range of the number of nodes can be obtained through the response parameters MinNodeNum and MaxNodeNum of the [DescribeSpecInfo ](https://www.tencentcloud.comom/document/product/240/38567?from_cn_redirect=1) API.
- Number of nodes per shard in a sharded cluster. The value range of the number of nodes can be obtained through the response parameters MinReplicateSetNodeNum and MaxReplicateSetNodeNum of the [DescribeSpecInfo ](https://www.tencentcloud.comom/document/product/240/38567?from_cn_redirect=1) API.
Note**: When the CPU and memory specifications of Mongod or Mongos nodes are changed, this parameter is not required, or enter the current number of Mongod or Mongos nodes (excluding read-only nodes).public Long getReplicateSetNum()
public void setReplicateSetNum(Long ReplicateSetNum)
ReplicateSetNum
- Number of shards after instance changes.
- The value range for the number of instance shards can be obtained through the response parameters **MinReplicateSetNum** and **MaxReplicateSetNum** of the [DescribeSpecInfo](https://www.tencentcloud.comom/document/product/240/38567?from_cn_redirect=1) API.
- The number of instance shards can only be increased and cannot be decreased.public Long getInMaintenance()
public void setInMaintenance(Long InMaintenance)
InMaintenance
- Switch time for instance configuration modification.
- 0: Execute the configuration modification task immediately after the adjustment is completed. Default value: 0.
- 1: Execute the configuration modification task within the maintenance window.
Note**: Adjusting the number of nodes and shards is unsupported within the maintenance window.public String getMongosMemory()
public void setMongosMemory(String MongosMemory)
MongosMemory
- Memory size of the Mongos node after sharded cluster instance configuration changes, in GB. For the specifications supported by the instance, see [Product Specifications](https://www.tencentcloud.comom/document/product/240/64125?from_cn_redirect=1).public AddNodeList[] getAddNodeList()
public void setAddNodeList(AddNodeList[] AddNodeList)
AddNodeList
- List of nodes to be added, containing the node type and AZ information.public RemoveNodeList[] getRemoveNodeList()
public void setRemoveNodeList(RemoveNodeList[] RemoveNodeList)
RemoveNodeList
- Deletes the node list.
Note**: According to the consistency principle for nodes of each shard on a sharded cluster instance, specify the nodes on shard 0 for node deletion from the sharded cluster instance. For example, cmgo-9nl1czif_0-node-readonly0 will delete the first read-only node of each shard.Copyright © 2025. All rights reserved.