public class ModifyInstanceParamRequest extends AbstractModel
Constructor and Description |
---|
ModifyInstanceParamRequest() |
ModifyInstanceParamRequest(ModifyInstanceParamRequest 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[] |
getInstanceIds()
Get List of short instance IDs.
|
Boolean |
getNotSyncDr()
Get Whether to sync the parameters to disaster recovery instance of the source instance.
|
Boolean |
getNotSyncRo()
Get Whether to sync the parameters to read-only instance of the source instance.
|
Parameter[] |
getParamList()
Get List of parameters to be modified.
|
Long |
getTemplateId()
Get Template ID.
|
Long |
getWaitSwitch()
Get When to perform the parameter adjustment task.
|
void |
setInstanceIds(String[] InstanceIds)
Set List of short instance IDs.
|
void |
setNotSyncDr(Boolean NotSyncDr)
Set Whether to sync the parameters to disaster recovery instance of the source instance.
|
void |
setNotSyncRo(Boolean NotSyncRo)
Set Whether to sync the parameters to read-only instance of the source instance.
|
void |
setParamList(Parameter[] ParamList)
Set List of parameters to be modified.
|
void |
setTemplateId(Long TemplateId)
Set Template ID.
|
void |
setWaitSwitch(Long WaitSwitch)
Set When to perform the parameter adjustment task.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public ModifyInstanceParamRequest()
public ModifyInstanceParamRequest(ModifyInstanceParamRequest source)
public String[] getInstanceIds()
public void setInstanceIds(String[] InstanceIds)
InstanceIds
- List of short instance IDs.public Parameter[] getParamList()
public void setParamList(Parameter[] ParamList)
ParamList
- List of parameters to be modified. Every element is a combination of `Name` (parameter name) and `CurrentValue` (new value).public Long getTemplateId()
public void setTemplateId(Long TemplateId)
TemplateId
- Template ID. At least one of `ParamList` and `TemplateId` must be passed in.public Long getWaitSwitch()
public void setWaitSwitch(Long WaitSwitch)
WaitSwitch
- When to perform the parameter adjustment task. Default value: 0. Valid values: 0 - execute immediately, 1 - execute during window. When its value is 1, only one instance ID can be passed in (i.e., only one `InstanceIds` can be passed in).public Boolean getNotSyncRo()
public void setNotSyncRo(Boolean NotSyncRo)
NotSyncRo
- Whether to sync the parameters to read-only instance of the source instance. Valid values: `true` (not sync), `false` (sync). Default value: `false`.public Boolean getNotSyncDr()
public void setNotSyncDr(Boolean NotSyncDr)
NotSyncDr
- Whether to sync the parameters to disaster recovery instance of the source instance. Valid values: `true` (not sync), `false` (sync). Default value: `false`.Copyright © 2023. All rights reserved.