public class DBInfo extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| DBInfo() | 
| DBInfo(DBInfo 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 | getAccount()Get Instance account
Note: This field may return null, indicating that no valid values can be obtained. | 
| String | getAccountMode()Get The account to which the resource belongs. | 
| String | getAccountRole()Get The role used for cross-account migration, which can contain [a-zA-Z0-9\-\_]+. | 
| String | getCcnGwId()Get CCN instance ID such as `ccn-afp6kltc`
Note: This field may return null, indicating that no valid values can be obtained. | 
| String | getCvmInstanceId()Get Short CVM instance ID in the format of `ins-olgl39y8`, which is required if the access type is `cvm`. | 
| String | getDbKernel()Get Kernel version, such as the different kernel versions of MariaDB. | 
| String | getEngineVersion()Get Database version in the format of `5.6` or `5.7`, which takes effect only if the instance is an RDS instance. | 
| String | getHost()Get Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC. | 
| String | getInstanceId()Get Database instance ID in the format of `cdb-powiqx8q`, which is required if the access type is `cdb`. | 
| String | getPassword()Get Instance password
Note: This field may return null, indicating that no valid values can be obtained. | 
| Long | getPort()Get Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC. | 
| String | getRole()Get Node role in a distributed database, such as the mongos node in MongoDB. | 
| String | getSubnetId()Get ID of the subnet in the VPC in the format of `subnet-3paxmkdz`, which is required if the access type is `vpc`, `vpncloud`, `ccn`, or `dcg`. | 
| String | getTmpSecretId()Get Temporary SecretId, you can obtain the temporary key by [GetFederationToken](https://intl.cloud.tencent.com/document/product/1312/48195?from_cn_redirect=1).Note: This field may return null, indicating that no valid values can be obtained. | 
| String | getTmpSecretKey()Get Temporary SecretKey, you can obtain the temporary key by [GetFederationToken](https://intl.cloud.tencent.com/document/product/1312/48195?from_cn_redirect=1).Note: This field may return null, indicating that no valid values can be obtained. | 
| String | getTmpToken()Get Temporary token, you can obtain the temporary key by [GetFederationToken](https://intl.cloud.tencent.com/document/product/1312/48195?from_cn_redirect=1).Note: This field may return null, indicating that no valid values can be obtained. | 
| String | getUniqDcgId()Get Direct Connect gateway ID in the format of `dcg-0rxtqqxb`, which is required if the access type is `dcg`. | 
| String | getUniqVpnGwId()Get VPN gateway ID in the format of `vpngw-9ghexg7q`, which is required if the access type is `vpncloud`. | 
| String | getUser()Get Instance username
Note: This field may return null, indicating that no valid values can be obtained. | 
| String | getVpcId()Get VPC ID in the format of `vpc-92jblxto`, which is required if the access type is `vpc`, `vpncloud`, `ccn`, or `dcg`. | 
| void | setAccount(String Account)Set Instance account
Note: This field may return null, indicating that no valid values can be obtained. | 
| void | setAccountMode(String AccountMode)Set The account to which the resource belongs. | 
| void | setAccountRole(String AccountRole)Set The role used for cross-account migration, which can contain [a-zA-Z0-9\-\_]+. | 
| void | setCcnGwId(String CcnGwId)Set CCN instance ID such as `ccn-afp6kltc`
Note: This field may return null, indicating that no valid values can be obtained. | 
| void | setCvmInstanceId(String CvmInstanceId)Set Short CVM instance ID in the format of `ins-olgl39y8`, which is required if the access type is `cvm`. | 
| void | setDbKernel(String DbKernel)Set Kernel version, such as the different kernel versions of MariaDB. | 
| void | setEngineVersion(String EngineVersion)Set Database version in the format of `5.6` or `5.7`, which takes effect only if the instance is an RDS instance. | 
| void | setHost(String Host)Set Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC. | 
| void | setInstanceId(String InstanceId)Set Database instance ID in the format of `cdb-powiqx8q`, which is required if the access type is `cdb`. | 
| void | setPassword(String Password)Set Instance password
Note: This field may return null, indicating that no valid values can be obtained. | 
| void | setPort(Long Port)Set Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC. | 
| void | setRole(String Role)Set Node role in a distributed database, such as the mongos node in MongoDB. | 
| void | setSubnetId(String SubnetId)Set ID of the subnet in the VPC in the format of `subnet-3paxmkdz`, which is required if the access type is `vpc`, `vpncloud`, `ccn`, or `dcg`. | 
| void | setTmpSecretId(String TmpSecretId)Set Temporary SecretId, you can obtain the temporary key by [GetFederationToken](https://intl.cloud.tencent.com/document/product/1312/48195?from_cn_redirect=1).Note: This field may return null, indicating that no valid values can be obtained. | 
| void | setTmpSecretKey(String TmpSecretKey)Set Temporary SecretKey, you can obtain the temporary key by [GetFederationToken](https://intl.cloud.tencent.com/document/product/1312/48195?from_cn_redirect=1).Note: This field may return null, indicating that no valid values can be obtained. | 
| void | setTmpToken(String TmpToken)Set Temporary token, you can obtain the temporary key by [GetFederationToken](https://intl.cloud.tencent.com/document/product/1312/48195?from_cn_redirect=1).Note: This field may return null, indicating that no valid values can be obtained. | 
| void | setUniqDcgId(String UniqDcgId)Set Direct Connect gateway ID in the format of `dcg-0rxtqqxb`, which is required if the access type is `dcg`. | 
| void | setUniqVpnGwId(String UniqVpnGwId)Set VPN gateway ID in the format of `vpngw-9ghexg7q`, which is required if the access type is `vpncloud`. | 
| void | setUser(String User)Set Instance username
Note: This field may return null, indicating that no valid values can be obtained. | 
| void | setVpcId(String VpcId)Set VPC ID in the format of `vpc-92jblxto`, which is required if the access type is `vpc`, `vpncloud`, `ccn`, or `dcg`. | 
| 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, toJsonStringpublic DBInfo()
public DBInfo(DBInfo source)
public String getRole()
public void setRole(String Role)
Role - Node role in a distributed database, such as the mongos node in MongoDB.
Note: This field may return null, indicating that no valid values can be obtained.public String getDbKernel()
public void setDbKernel(String DbKernel)
DbKernel - Kernel version, such as the different kernel versions of MariaDB.
Note: This field may return null, indicating that no valid values can be obtained.public String getHost()
public void setHost(String Host)
Host - Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC.
Note: This field may return null, indicating that no valid values can be obtained.public Long getPort()
public void setPort(Long Port)
Port - Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC.
Note: This field may return null, indicating that no valid values can be obtained.public String getUser()
public void setUser(String User)
User - Instance username
Note: This field may return null, indicating that no valid values can be obtained.public String getPassword()
public void setPassword(String Password)
Password - Instance password
Note: This field may return null, indicating that no valid values can be obtained.public String getCvmInstanceId()
public void setCvmInstanceId(String CvmInstanceId)
CvmInstanceId - Short CVM instance ID in the format of `ins-olgl39y8`, which is required if the access type is `cvm`. It is the same as the instance ID displayed in the CVM console.
Note: This field may return null, indicating that no valid values can be obtained.public String getUniqVpnGwId()
public void setUniqVpnGwId(String UniqVpnGwId)
UniqVpnGwId - VPN gateway ID in the format of `vpngw-9ghexg7q`, which is required if the access type is `vpncloud`.
Note: This field may return null, indicating that no valid values can be obtained.public String getUniqDcgId()
public void setUniqDcgId(String UniqDcgId)
UniqDcgId - Direct Connect gateway ID in the format of `dcg-0rxtqqxb`, which is required if the access type is `dcg`.
Note: This field may return null, indicating that no valid values can be obtained.public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - Database instance ID in the format of `cdb-powiqx8q`, which is required if the access type is `cdb`.
Note: This field may return null, indicating that no valid values can be obtained.public String getCcnGwId()
public void setCcnGwId(String CcnGwId)
CcnGwId - CCN instance ID such as `ccn-afp6kltc`
Note: This field may return null, indicating that no valid values can be obtained.public String getVpcId()
public void setVpcId(String VpcId)
VpcId - VPC ID in the format of `vpc-92jblxto`, which is required if the access type is `vpc`, `vpncloud`, `ccn`, or `dcg`.
Note: This field may return null, indicating that no valid values can be obtained.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId - ID of the subnet in the VPC in the format of `subnet-3paxmkdz`, which is required if the access type is `vpc`, `vpncloud`, `ccn`, or `dcg`.
Note: This field may return null, indicating that no valid values can be obtained.public String getEngineVersion()
public void setEngineVersion(String EngineVersion)
EngineVersion - Database version in the format of `5.6` or `5.7`, which takes effect only if the instance is an RDS instance. Default value: `5.6`.
Note: This field may return null, indicating that no valid values can be obtained.public String getAccount()
public void setAccount(String Account)
Account - Instance account
Note: This field may return null, indicating that no valid values can be obtained.public String getAccountRole()
public void setAccountRole(String AccountRole)
AccountRole - The role used for cross-account migration, which can contain [a-zA-Z0-9\-\_]+.
Note: This field may return null, indicating that no valid values can be obtained.public String getAccountMode()
public void setAccountMode(String AccountMode)
AccountMode - The account to which the resource belongs. Valid values: empty or `self` (the current account); `other` (another account).
Note: This field may return null, indicating that no valid values can be obtained.public String getTmpSecretId()
public void setTmpSecretId(String TmpSecretId)
TmpSecretId - Temporary SecretId, you can obtain the temporary key by [GetFederationToken](https://intl.cloud.tencent.com/document/product/1312/48195?from_cn_redirect=1).Note: This field may return null, indicating that no valid values can be obtained.public String getTmpSecretKey()
public void setTmpSecretKey(String TmpSecretKey)
TmpSecretKey - Temporary SecretKey, you can obtain the temporary key by [GetFederationToken](https://intl.cloud.tencent.com/document/product/1312/48195?from_cn_redirect=1).Note: This field may return null, indicating that no valid values can be obtained.public String getTmpToken()
public void setTmpToken(String TmpToken)
TmpToken - Temporary token, you can obtain the temporary key by [GetFederationToken](https://intl.cloud.tencent.com/document/product/1312/48195?from_cn_redirect=1).Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2025. All rights reserved.