public class UpgradeDBInstanceKernelVersionRequest extends AbstractModel
Constructor and Description |
---|
UpgradeDBInstanceKernelVersionRequest() |
UpgradeDBInstanceKernelVersionRequest(UpgradeDBInstanceKernelVersionRequest 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 |
getDBInstanceId()
Get Instance ID
|
Boolean |
getDryRun()
Get Whether to perform a precheck on the current operation of upgrading the instance kernel version.
|
String |
getSwitchEndTime()
Get Switch end time in the format of `HH:MM:SS`, such as 01:30:00.
|
String |
getSwitchStartTime()
Get Switch start time in the format of `HH:MM:SS`, such as 01:00:00.
|
Long |
getSwitchTag()
Get Switch time after the kernel version upgrade.
|
String |
getTargetDBKernelVersion()
Get Target kernel version, which can be obtained in the `AvailableUpgradeTarget` field returned by the `DescribeDBVersions` API.
|
void |
setDBInstanceId(String DBInstanceId)
Set Instance ID
|
void |
setDryRun(Boolean DryRun)
Set Whether to perform a precheck on the current operation of upgrading the instance kernel version.
|
void |
setSwitchEndTime(String SwitchEndTime)
Set Switch end time in the format of `HH:MM:SS`, such as 01:30:00.
|
void |
setSwitchStartTime(String SwitchStartTime)
Set Switch start time in the format of `HH:MM:SS`, such as 01:00:00.
|
void |
setSwitchTag(Long SwitchTag)
Set Switch time after the kernel version upgrade.
|
void |
setTargetDBKernelVersion(String TargetDBKernelVersion)
Set Target kernel version, which can be obtained in the `AvailableUpgradeTarget` field returned by the `DescribeDBVersions` API.
|
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 UpgradeDBInstanceKernelVersionRequest()
public UpgradeDBInstanceKernelVersionRequest(UpgradeDBInstanceKernelVersionRequest source)
public String getDBInstanceId()
public void setDBInstanceId(String DBInstanceId)
DBInstanceId
- Instance IDpublic String getTargetDBKernelVersion()
public void setTargetDBKernelVersion(String TargetDBKernelVersion)
TargetDBKernelVersion
- Target kernel version, which can be obtained in the `AvailableUpgradeTarget` field returned by the `DescribeDBVersions` API.public Long getSwitchTag()
public void setSwitchTag(Long SwitchTag)
SwitchTag
- Switch time after the kernel version upgrade. Valid values:
`0` (default value): Switch now.
`1`: Switch at the specified time.
`2`: Switch in the maintenance time.public String getSwitchStartTime()
public void setSwitchStartTime(String SwitchStartTime)
SwitchStartTime
- Switch start time in the format of `HH:MM:SS`, such as 01:00:00. When `SwitchTag` is `0` or `2`, this parameter is invalid.public String getSwitchEndTime()
public void setSwitchEndTime(String SwitchEndTime)
SwitchEndTime
- Switch end time in the format of `HH:MM:SS`, such as 01:30:00. When `SwitchTag` is `0` or `2`, this parameter is invalid. The difference between `SwitchStartTime` and `SwitchEndTime` cannot be less than 30 minutes.public Boolean getDryRun()
public void setDryRun(Boolean DryRun)
DryRun
- Whether to perform a precheck on the current operation of upgrading the instance kernel version. Valid values:
`true`: Performs a precheck without upgrading the kernel version. Check items include request parameters, kernel version compatibility, and instance parameters.
`false` (default value): Sends a normal request and upgrades the kernel version directly after the check is passed.Copyright © 2023. All rights reserved.