public class UpgradeInstanceRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
UpgradeInstanceRequest() |
UpgradeInstanceRequest(UpgradeInstanceRequest 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 instance whose configuration is to be modified.
|
Long |
getMemSize()
Get New memory size of an instance shard.
|
RedisNodeInfo[] |
getNodeSet()
Get Node information set when you add a replica for multi-AZ instances, including the ID and AZ information of the replica.
|
Long |
getRedisReplicasNum()
Get New replica quantity.
|
Long |
getRedisShardNum()
Get New number of instance shards.
|
Long |
getSwitchOption()
Get Switch time.
|
void |
setInstanceId(String InstanceId)
Set ID of the instance whose configuration is to be modified.
|
void |
setMemSize(Long MemSize)
Set New memory size of an instance shard.
|
void |
setNodeSet(RedisNodeInfo[] NodeSet)
Set Node information set when you add a replica for multi-AZ instances, including the ID and AZ information of the replica.
|
void |
setRedisReplicasNum(Long RedisReplicasNum)
Set New replica quantity.
|
void |
setRedisShardNum(Long RedisShardNum)
Set New number of instance shards.
|
void |
setSwitchOption(Long SwitchOption)
Set Switch time.
|
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 UpgradeInstanceRequest()
public UpgradeInstanceRequest(UpgradeInstanceRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- ID of the instance whose configuration is to be modified. Log in to the [TencentDB for Redis® console](https://console.cloud.tencent.com/Redis/instance/list) and copy the instance ID from the instance list.public Long getMemSize()
public void setMemSize(Long MemSize)
MemSize
- New memory size of an instance shard. public Long getRedisShardNum()
public void setRedisShardNum(Long RedisShardNum)
RedisShardNum
- New number of instance shards. public Long getRedisReplicasNum()
public void setRedisReplicasNum(Long RedisReplicasNum)
RedisReplicasNum
- New replica quantity. public RedisNodeInfo[] getNodeSet()
public void setNodeSet(RedisNodeInfo[] NodeSet)
NodeSet
- Node information set when you add a replica for multi-AZ instances, including the ID and AZ information of the replica. This parameter is not required for non-multi-AZ instances.public Long getSwitchOption()
public void setSwitchOption(Long SwitchOption)
SwitchOption
- Switch time.
- 1: Perform the operation within the maintenance window: Specification upgrade is executed within the set maintenance window. Use the API [DescribeMaintenanceWindow](https://intl.cloud.tencent.com/document/product/239/46336?from_cn_redirect=1) to query the time period of the set maintenance window. Replica addition/removal, shard addition/removal, and memory capacity expansion/shrinkage are supported within the maintenance window. Specification upgrade within the maintenance window is being gradually tested and published by region. It is already supported in some regions. For urgent integration in regions that do not support it, [submit a ticket](https://console.cloud.tencent.com/workorder/category) to apply for an allowlist.
-2: Perform the operation immediately: The operation will be performed immediately, without the need to wait for the maintenance window. Operations will be performed immediately by default for the system.Copyright © 2025. All rights reserved.