public class AddNodeList extends AbstractModel
header, skipSign
Constructor and Description |
---|
AddNodeList() |
AddNodeList(AddNodeList 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 |
---|---|
String |
getRole()
Get Roles of nodes to be added.
|
String |
getZone()
Get AZs corresponding to the nodes.
|
void |
setRole(String Role)
Set Roles of nodes to be added.
|
void |
setZone(String Zone)
Set AZs corresponding to the nodes.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public AddNodeList()
public AddNodeList(AddNodeList source)
public String getRole()
public void setRole(String Role)
Role
- Roles of nodes to be added.
- SECONDARY: Mongod node.
- READONLY: read-only node.
- MONGOS: Mongos node.public String getZone()
public void setZone(String Zone)
Zone
- AZs corresponding to the nodes.
- Single AZ: All nodes are in the same AZ.
- Multiple AZs: The current standard specification involves three AZs. The primary and secondary nodes are not in the same AZ. Note: AZs corresponding to the nodes to be added should be specified. After addition, the number of nodes in any two AZs should be larger than that in the third AZ.Copyright © 2025. All rights reserved.