public class UpgradeDBInstanceMajorVersionRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
UpgradeDBInstanceMajorVersionRequest() |
UpgradeDBInstanceMajorVersionRequest(UpgradeDBInstanceMajorVersionRequest 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 |
---|---|
Boolean |
getBackupBeforeUpgrade()
Get Pre-upgrade backup option: True means a full backup is required before upgrade, and False means a full backup is not required before upgrade.
|
String |
getDBInstanceId()
Get Instance ID.
|
Long |
getExtensionUpgradeOption()
Get Plugin upgrade option.
|
Long |
getStatisticsRefreshOption()
Get Statistics collection option, which is used to run ANALYZE on the primary instance to update system statistics after the upgrade.
|
String |
getTargetDBKernelVersion()
Get Target kernel version number, where upgradeable target kernel version numbers can be acquired through API DescribeDBVersions.
|
Boolean |
getUpgradeCheck()
Get Whether it is verification mode: if UpgradeCheck is True, it means only kernel version compatibility check will be conducted, without actual upgrade operations, and there will be no affect on the original instance.
|
String |
getUpgradeTimeBegin()
Get Upgrade window start time, and the time format is HH:MM:SS, for example: 01:00:00.
|
String |
getUpgradeTimeEnd()
Get Upgrade window end time, and the time format is HH:MM:SS, for example: 2:00:00 AM.
|
Long |
getUpgradeTimeOption()
Get Upgrade time option.
|
void |
setBackupBeforeUpgrade(Boolean BackupBeforeUpgrade)
Set Pre-upgrade backup option: True means a full backup is required before upgrade, and False means a full backup is not required before upgrade.
|
void |
setDBInstanceId(String DBInstanceId)
Set Instance ID.
|
void |
setExtensionUpgradeOption(Long ExtensionUpgradeOption)
Set Plugin upgrade option.
|
void |
setStatisticsRefreshOption(Long StatisticsRefreshOption)
Set Statistics collection option, which is used to run ANALYZE on the primary instance to update system statistics after the upgrade.
|
void |
setTargetDBKernelVersion(String TargetDBKernelVersion)
Set Target kernel version number, where upgradeable target kernel version numbers can be acquired through API DescribeDBVersions.
|
void |
setUpgradeCheck(Boolean UpgradeCheck)
Set Whether it is verification mode: if UpgradeCheck is True, it means only kernel version compatibility check will be conducted, without actual upgrade operations, and there will be no affect on the original instance.
|
void |
setUpgradeTimeBegin(String UpgradeTimeBegin)
Set Upgrade window start time, and the time format is HH:MM:SS, for example: 01:00:00.
|
void |
setUpgradeTimeEnd(String UpgradeTimeEnd)
Set Upgrade window end time, and the time format is HH:MM:SS, for example: 2:00:00 AM.
|
void |
setUpgradeTimeOption(Long UpgradeTimeOption)
Set Upgrade time option.
|
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 UpgradeDBInstanceMajorVersionRequest()
public UpgradeDBInstanceMajorVersionRequest(UpgradeDBInstanceMajorVersionRequest source)
public String getDBInstanceId()
public void setDBInstanceId(String DBInstanceId)
DBInstanceId
- Instance ID.public String getTargetDBKernelVersion()
public void setTargetDBKernelVersion(String TargetDBKernelVersion)
TargetDBKernelVersion
- Target kernel version number, where upgradeable target kernel version numbers can be acquired through API DescribeDBVersions.public Boolean getUpgradeCheck()
public void setUpgradeCheck(Boolean UpgradeCheck)
UpgradeCheck
- Whether it is verification mode: if UpgradeCheck is True, it means only kernel version compatibility check will be conducted, without actual upgrade operations, and there will be no affect on the original instance. The check results can be viewed through the upgrade logs.public Boolean getBackupBeforeUpgrade()
public void setBackupBeforeUpgrade(Boolean BackupBeforeUpgrade)
BackupBeforeUpgrade
- Pre-upgrade backup option: True means a full backup is required before upgrade, and False means a full backup is not required before upgrade. If there is an existing backup set that can restore the instance to its pre-upgrade state, False can be selected; otherwise, True should be specified. This parameter is invalid when UpgradeCheck is True.public Long getStatisticsRefreshOption()
public void setStatisticsRefreshOption(Long StatisticsRefreshOption)
StatisticsRefreshOption
- Statistics collection option, which is used to run ANALYZE on the primary instance to update system statistics after the upgrade. Valid values include:
0: No statistics collection required;
1: Collect statistics before instance recovery write;
3: Collect statistics after instance recovery write.
This parameter is invalid when UpgradeCheck is True.public Long getExtensionUpgradeOption()
public void setExtensionUpgradeOption(Long ExtensionUpgradeOption)
ExtensionUpgradeOption
- Plugin upgrade option. pg_upgrade does not upgrade any plugins, and "ALTER EXTENSION UPDATE" needs to be executed on the database where the plugins were created after the upgrade. When initiating a major version upgrade of an instance, you can specify whether the upgrade task automatically upgrades the plugin version before/after the instance recovery write. Valid values include:
0: No automatic plugin upgrade required;
1: Upgrade plugins before recovery write;
2: Upgrade plugins after recovery write.
This parameter is invalid when UpgradeCheck is True.public Long getUpgradeTimeOption()
public void setUpgradeTimeOption(Long UpgradeTimeOption)
UpgradeTimeOption
- Upgrade time option. During the upgrade process, there will be a period when the instance is read-only, and there will be a second-level flash disconnection. When initiating an upgrade, you need to choose the time window for this impact. Valid values include:
0: Execute automatically, no specific time window required;
1: Specify the time window for this upgrade task, which is set via UpgradeTimeBegin and UpgradeTimeEnd parameters;
2: Execute during the instance operation and maintenance time window.
This parameter is invalid when UpgradeCheck is True.public String getUpgradeTimeBegin()
public void setUpgradeTimeBegin(String UpgradeTimeBegin)
UpgradeTimeBegin
- Upgrade window start time, and the time format is HH:MM:SS, for example: 01:00:00. This parameter is valid when UpgradeTimeOption is set to `1`.
This parameter is invalid when UpgradeCheck is True.public String getUpgradeTimeEnd()
public void setUpgradeTimeEnd(String UpgradeTimeEnd)
UpgradeTimeEnd
- Upgrade window end time, and the time format is HH:MM:SS, for example: 2:00:00 AM. This parameter is valid when UpgradeTimeOption is set to `1`.
This parameter is invalid when UpgradeCheck is True.Copyright © 2025. All rights reserved.