public class SpecItem extends AbstractModel
header, skipSign
Constructor and Description |
---|
SpecItem() |
SpecItem(SpecItem 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 |
---|---|
Long |
getClusterType()
Get Cluster type.
|
Long |
getConns()
Get Maximum number of connections supported for the specification.
|
Long |
getCpu()
Get Computing resource specification, indicating the number of CPU cores.
|
Long |
getDefaultStorage()
Get Default disk specification.
|
String |
getEngineName()
Get Storage engine.
|
String |
getMachineType()
Get Cluster specification type.
|
Long |
getMaxNodeNum()
Get Maximum number of nodes for each replica set.
|
Long |
getMaxReplicateSetNodeNum()
Get Maximum number of nodes for each shard.
|
Long |
getMaxReplicateSetNum()
Get Maximum number of shards.
|
Long |
getMaxStorage()
Get Maximum disk specification.
|
Long |
getMemory()
Get Memory specification.
|
Long |
getMinNodeNum()
Get Minimum number of nodes for each replica set.
|
Long |
getMinReplicateSetNodeNum()
Get Minimum number of nodes for each shard.
|
Long |
getMinReplicateSetNum()
Get Minimum number of shards.
|
Long |
getMinStorage()
Get Minimum disk specification.
|
String |
getMongoVersionCode()
Get Storage engine version information on instances.
|
Long |
getMongoVersionValue()
Get Digital version corresponding to the instance version.
|
Long |
getQps()
Get Maximum number of requests per second.
|
String |
getSpecCode()
Get Specification information identifier.
|
Long |
getStatus()
Get Saleable specification status flag.
|
String |
getVersion()
Get Instance version information.
|
void |
setClusterType(Long ClusterType)
Set Cluster type.
|
void |
setConns(Long Conns)
Set Maximum number of connections supported for the specification.
|
void |
setCpu(Long Cpu)
Set Computing resource specification, indicating the number of CPU cores.
|
void |
setDefaultStorage(Long DefaultStorage)
Set Default disk specification.
|
void |
setEngineName(String EngineName)
Set Storage engine.
|
void |
setMachineType(String MachineType)
Set Cluster specification type.
|
void |
setMaxNodeNum(Long MaxNodeNum)
Set Maximum number of nodes for each replica set.
|
void |
setMaxReplicateSetNodeNum(Long MaxReplicateSetNodeNum)
Set Maximum number of nodes for each shard.
|
void |
setMaxReplicateSetNum(Long MaxReplicateSetNum)
Set Maximum number of shards.
|
void |
setMaxStorage(Long MaxStorage)
Set Maximum disk specification.
|
void |
setMemory(Long Memory)
Set Memory specification.
|
void |
setMinNodeNum(Long MinNodeNum)
Set Minimum number of nodes for each replica set.
|
void |
setMinReplicateSetNodeNum(Long MinReplicateSetNodeNum)
Set Minimum number of nodes for each shard.
|
void |
setMinReplicateSetNum(Long MinReplicateSetNum)
Set Minimum number of shards.
|
void |
setMinStorage(Long MinStorage)
Set Minimum disk specification.
|
void |
setMongoVersionCode(String MongoVersionCode)
Set Storage engine version information on instances.
|
void |
setMongoVersionValue(Long MongoVersionValue)
Set Digital version corresponding to the instance version.
|
void |
setQps(Long Qps)
Set Maximum number of requests per second.
|
void |
setSpecCode(String SpecCode)
Set Specification information identifier.
|
void |
setStatus(Long Status)
Set Saleable specification status flag.
|
void |
setVersion(String Version)
Set Instance version information.
|
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 SpecItem()
public SpecItem(SpecItem source)
public String getSpecCode()
public void setSpecCode(String SpecCode)
SpecCode
- Specification information identifier. Format: mongo.HIO10G.128G. It consists of three parts: node type, specification type, and memory specification.
- Node types are as follows:
- mongo: Mongod node.
- mongos: Mongos node.
- cfgstr: ConfigServer node.
- Specification types are as follows:
- HIO10G: general high-I/O 10GE type.
- HCD: cloud disk type.
- Memory specifications are as follows:
- Valid values: 4, 8, 16, 32, 64, 128, 240, and 512.
- Unit: g, indicating GB. 128g means 128 GB.public Long getStatus()
public void setStatus(Long Status)
Status
- Saleable specification status flag. Valid values are as follows:
- 0: selling stopped.
- 1: available for sale.public Long getCpu()
public void setCpu(Long Cpu)
Cpu
- Computing resource specification, indicating the number of CPU cores.public Long getMemory()
public void setMemory(Long Memory)
Memory
- Memory specification. Unit: MB.public Long getDefaultStorage()
public void setDefaultStorage(Long DefaultStorage)
DefaultStorage
- Default disk specification. Unit: MB.public Long getMaxStorage()
public void setMaxStorage(Long MaxStorage)
MaxStorage
- Maximum disk specification. Unit: MB.public Long getMinStorage()
public void setMinStorage(Long MinStorage)
MinStorage
- Minimum disk specification. Unit: MB.public Long getQps()
public void setQps(Long Qps)
Qps
- Maximum number of requests per second. Unit: requests/second.public Long getConns()
public void setConns(Long Conns)
Conns
- Maximum number of connections supported for the specification.public String getMongoVersionCode()
public void setMongoVersionCode(String MongoVersionCode)
MongoVersionCode
- Storage engine version information on instances.
- MONGO_36_WT: version of the MongoDB 3.6 WiredTiger storage engine.
- MONGO_40_WT: version of the MongoDB 4.0 WiredTiger storage engine.
- MONGO_42_WT: version of the MongoDB 4.2 WiredTiger storage engine.
- MONGO_44_WT: version of the MongoDB 4.4 WiredTiger storage engine.
- MONGO_50_WT: version of the MongoDB 5.0 WiredTiger storage engine.
- MONGO_60_WT: version of the MongoDB 6.0 WiredTiger storage engine.public Long getMongoVersionValue()
public void setMongoVersionValue(Long MongoVersionValue)
MongoVersionValue
- Digital version corresponding to the instance version.public String getVersion()
public void setVersion(String Version)
Version
- Instance version information. Valid values: 3.6, 4.2, 4.4, 5.0, and 6.0.public String getEngineName()
public void setEngineName(String EngineName)
EngineName
- Storage engine.public Long getClusterType()
public void setClusterType(Long ClusterType)
ClusterType
- Cluster type. Valid values are as follows:
- 1: sharded cluster.
- 0: replica set cluster.public Long getMinNodeNum()
public void setMinNodeNum(Long MinNodeNum)
MinNodeNum
- Minimum number of nodes for each replica set.public Long getMaxNodeNum()
public void setMaxNodeNum(Long MaxNodeNum)
MaxNodeNum
- Maximum number of nodes for each replica set.public Long getMinReplicateSetNum()
public void setMinReplicateSetNum(Long MinReplicateSetNum)
MinReplicateSetNum
- Minimum number of shards.public Long getMaxReplicateSetNum()
public void setMaxReplicateSetNum(Long MaxReplicateSetNum)
MaxReplicateSetNum
- Maximum number of shards.public Long getMinReplicateSetNodeNum()
public void setMinReplicateSetNodeNum(Long MinReplicateSetNodeNum)
MinReplicateSetNodeNum
- Minimum number of nodes for each shard.public Long getMaxReplicateSetNodeNum()
public void setMaxReplicateSetNodeNum(Long MaxReplicateSetNodeNum)
MaxReplicateSetNodeNum
- Maximum number of nodes for each shard.public String getMachineType()
public void setMachineType(String MachineType)
MachineType
- Cluster specification type. Valid values are as follows:
- HIO10G: general high-I/O 10GE type.
- HCD: cloud disk type.Copyright © 2025. All rights reserved.