public class ModifyReadOnlyGroupDetailsRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyReadOnlyGroupDetailsRequest() |
ModifyReadOnlyGroupDetailsRequest(ModifyReadOnlyGroupDetailsRequest 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 |
getAutoWeight()
Get 0 - user-defined weight (adjust according to WeightPairs); 1 - automatically assigned weight by the system (invalid WeightPairs).
|
Long |
getBalanceWeight()
Get 0 - not rebalance the load; 1 - rebalance the load.
|
String |
getInstanceId()
Get Primary instance ID, in the format of mssql-3l3fgqn7.
|
Long |
getIsOfflineDelay()
Get Whether to enable the delayed read-only instance removal feature.
|
Long |
getMinReadOnlyInGroup()
Get Minimum number of retained read-only replicas in the read-only group, after the delayed read-only instance removal feature is enabled.
|
String |
getReadOnlyGroupId()
Get Read-only group ID.
|
String |
getReadOnlyGroupName()
Get Read-only group name.
|
Long |
getReadOnlyMaxDelayTime()
Get Timeout threshold used after the delayed read-only instance removal feature is enabled.
|
ReadOnlyInstanceWeightPair[] |
getWeightPairs()
Get Collection of read-only group instance weight modification.
|
void |
setAutoWeight(Long AutoWeight)
Set 0 - user-defined weight (adjust according to WeightPairs); 1 - automatically assigned weight by the system (invalid WeightPairs).
|
void |
setBalanceWeight(Long BalanceWeight)
Set 0 - not rebalance the load; 1 - rebalance the load.
|
void |
setInstanceId(String InstanceId)
Set Primary instance ID, in the format of mssql-3l3fgqn7.
|
void |
setIsOfflineDelay(Long IsOfflineDelay)
Set Whether to enable the delayed read-only instance removal feature.
|
void |
setMinReadOnlyInGroup(Long MinReadOnlyInGroup)
Set Minimum number of retained read-only replicas in the read-only group, after the delayed read-only instance removal feature is enabled.
|
void |
setReadOnlyGroupId(String ReadOnlyGroupId)
Set Read-only group ID.
|
void |
setReadOnlyGroupName(String ReadOnlyGroupName)
Set Read-only group name.
|
void |
setReadOnlyMaxDelayTime(Long ReadOnlyMaxDelayTime)
Set Timeout threshold used after the delayed read-only instance removal feature is enabled.
|
void |
setWeightPairs(ReadOnlyInstanceWeightPair[] WeightPairs)
Set Collection of read-only group instance weight modification.
|
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 ModifyReadOnlyGroupDetailsRequest()
public ModifyReadOnlyGroupDetailsRequest(ModifyReadOnlyGroupDetailsRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Primary instance ID, in the format of mssql-3l3fgqn7.public String getReadOnlyGroupId()
public void setReadOnlyGroupId(String ReadOnlyGroupId)
ReadOnlyGroupId
- Read-only group ID.public String getReadOnlyGroupName()
public void setReadOnlyGroupName(String ReadOnlyGroupName)
ReadOnlyGroupName
- Read-only group name. The modification is not performed if this parameter is left unspecified.public Long getIsOfflineDelay()
public void setIsOfflineDelay(Long IsOfflineDelay)
IsOfflineDelay
- Whether to enable the delayed read-only instance removal feature. 0 - disabled; 1 - enabled. The modification is not performed if this parameter is left unspecified.public Long getReadOnlyMaxDelayTime()
public void setReadOnlyMaxDelayTime(Long ReadOnlyMaxDelayTime)
ReadOnlyMaxDelayTime
- Timeout threshold used after the delayed read-only instance removal feature is enabled. The modification is not performed if this parameter is left unspecified.public Long getMinReadOnlyInGroup()
public void setMinReadOnlyInGroup(Long MinReadOnlyInGroup)
MinReadOnlyInGroup
- Minimum number of retained read-only replicas in the read-only group, after the delayed read-only instance removal feature is enabled. The modification is not performed if this parameter is left unspecified.public ReadOnlyInstanceWeightPair[] getWeightPairs()
public void setWeightPairs(ReadOnlyInstanceWeightPair[] WeightPairs)
WeightPairs
- Collection of read-only group instance weight modification. The modification is not performed if this parameter is left unspecified.public Long getAutoWeight()
public void setAutoWeight(Long AutoWeight)
AutoWeight
- 0 - user-defined weight (adjust according to WeightPairs); 1 - automatically assigned weight by the system (invalid WeightPairs). The default value is 0.public Long getBalanceWeight()
public void setBalanceWeight(Long BalanceWeight)
BalanceWeight
- 0 - not rebalance the load; 1 - rebalance the load. The default value is 0.Copyright © 2025. All rights reserved.