public class UpgradeInstanceVersionRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
UpgradeInstanceVersionRequest() |
UpgradeInstanceVersionRequest(UpgradeInstanceVersionRequest 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 |
getInstanceId()
Get ID of the specified instance, such as `crs-xjhsdj****`.
|
Long |
getSwitchOption()
Get Switch time.
|
String |
getTargetInstanceType()
Get Target instance type after the change, which is the same as the `TypeId` of the [CreateInstances](https://intl.cloud.tencent.com/document/api/239/20026?from_cn_redirect=1) API.
|
void |
setInstanceId(String InstanceId)
Set ID of the specified instance, such as `crs-xjhsdj****`.
|
void |
setSwitchOption(Long SwitchOption)
Set Switch time.
|
void |
setTargetInstanceType(String TargetInstanceType)
Set Target instance type after the change, which is the same as the `TypeId` of the [CreateInstances](https://intl.cloud.tencent.com/document/api/239/20026?from_cn_redirect=1) API.
|
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 UpgradeInstanceVersionRequest()
public UpgradeInstanceVersionRequest(UpgradeInstanceVersionRequest source)
public String getTargetInstanceType()
public void setTargetInstanceType(String TargetInstanceType)
TargetInstanceType
- Target instance type after the change, which is the same as the `TypeId` of the [CreateInstances](https://intl.cloud.tencent.com/document/api/239/20026?from_cn_redirect=1) API.
- For Redis 4.0 or later, a standard architecture instance can be upgraded to a cluster architecture instance on the same version; for example, you can upgrade from Redis 4.0 Standard Architecture to Redis 4.0 Cluster Architecture.
- Cross-version architecture upgrade is not supported; for example, you cannot upgrade from Redis 4.0 Standard Architecture to Redis 5.0 Cluster Architecture.
- The architecture of Redis 2.8 cannot be upgraded.
- Cluster architecture cannot be downgraded to standard architecture.public Long getSwitchOption()
public void setSwitchOption(Long SwitchOption)
SwitchOption
- Switch time. Valid values:
- `1`: Switch in the maintenance time.
- `2` (default value): Switch now.public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- ID of the specified instance, such as `crs-xjhsdj****`. Log in to the [Redis console](https://console.cloud.tencent.com/redis#/), and copy it in the instance list.Copyright © 2024. All rights reserved.