public class ModifyNetworkConfigRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyNetworkConfigRequest() |
ModifyNetworkConfigRequest(ModifyNetworkConfigRequest 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 Instance ID.
|
String |
getOperation()
Get Network change type.
|
Long |
getRecycle()
Get Retention duration of the original private IPv4 address.
|
String |
getSubnetId()
Get ID of the subnet to which the VPC belongs after the modification.
|
String |
getVip()
Get Private IPv4 address of the instance, which is required if `Operation` is `changeVip`.
|
String |
getVpcId()
Get VPC ID after the modification.
|
Long |
getVPort()
Get Network port after the change, which is required if `Operation` is `changeVPort` or `changeVip`.
|
void |
setInstanceId(String InstanceId)
Set Instance ID.
|
void |
setOperation(String Operation)
Set Network change type.
|
void |
setRecycle(Long Recycle)
Set Retention duration of the original private IPv4 address.
|
void |
setSubnetId(String SubnetId)
Set ID of the subnet to which the VPC belongs after the modification.
|
void |
setVip(String Vip)
Set Private IPv4 address of the instance, which is required if `Operation` is `changeVip`.
|
void |
setVpcId(String VpcId)
Set VPC ID after the modification.
|
void |
setVPort(Long VPort)
Set Network port after the change, which is required if `Operation` is `changeVPort` or `changeVip`.
|
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 ModifyNetworkConfigRequest()
public ModifyNetworkConfigRequest(ModifyNetworkConfigRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID. Log in to the [Redis console](https://console.tencentcloud.com/redis/instance) and copy it in the instance list.public String getOperation()
public void setOperation(String Operation)
Operation
- Network change type. Valid values:
- `changeVip`: VPC change, including the private IPv4 address and port.
- `changeVpc`: Subnet change.
- `changeBaseToVpc`: Change from classic network to VPC.
- `changeVPort`: Port change.public String getVip()
public void setVip(String Vip)
Vip
- Private IPv4 address of the instance, which is required if `Operation` is `changeVip`.public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC ID after the modification.
- Configure this parameter when **Operation** is set to **changeVpc** or **changeBaseToVpc**.
- Log in to the [Redis console](https://console.tencentcloud.com/redis/instance), switch to the **Instance Details** page, and click the VPC name next to the associated network in the **Network Information** area to obtain the VPC ID.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- ID of the subnet to which the VPC belongs after the modification.
- Configure this parameter when **Operation** is set to **changeVpc** or **changeBaseToVpc**.
- Log in to the [Redis console](https://console.tencentcloud.com/redis/instance), switch to the **Instance Details** page, and click the subnet name next to the associated network in the **Network Information** area to obtain the subnet ID.public Long getRecycle()
public void setRecycle(Long Recycle)
Recycle
- Retention duration of the original private IPv4 address.
- Unit: day.
- Valid values: 0, 1, 2, 3, 7, and 15.
Note**: If the retention duration is not set or set to 0, the original network address will be released immediately.public Long getVPort()
public void setVPort(Long VPort)
VPort
- Network port after the change, which is required if `Operation` is `changeVPort` or `changeVip`. Value range: [1024,65535].Copyright © 2025. All rights reserved.