public class DBInstance extends AbstractModel
header, skipSign
Constructor and Description |
---|
DBInstance() |
DBInstance(DBInstance 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 |
---|---|
Long |
getAppId()
Get User `AppId`
|
Long |
getAutoRenew()
Get Whether auto-renewal is enabled.
|
String |
getCreateTime()
Get Instance creation time
|
String |
getDBCharset()
Get Instance character set.
|
String |
getDBEngine()
Get Database engines.
|
String |
getDBEngineConfig()
Get Configuration information of database engine in the following format:
{"$key1":"$value1", "$key2":"$value2"}
Valid values:
mssql_compatible engine:
`migrationMode`: Database mode.
|
String |
getDBInstanceClass()
Get Purchasable specification ID
|
Long |
getDBInstanceCpu()
Get Number of assigned CPUs
|
String |
getDBInstanceId()
Get Instance ID
|
Long |
getDBInstanceMemory()
Get Assigned instance memory size in GB
|
String |
getDBInstanceName()
Get Instance name
|
DBInstanceNetInfo[] |
getDBInstanceNetInfo()
Get Instance network connection information
|
String |
getDBInstanceStatus()
Get Instance status.
|
Long |
getDBInstanceStorage()
Get Assigned instance storage capacity in GB
|
String |
getDBInstanceType()
Get Instance type.
|
String |
getDBInstanceVersion()
Get Instance version.
|
String |
getDBKernelVersion()
Get PostgreSQL kernel version number (like v12.7_r1.8), which can be queried by the [DescribeDBVersions](https://intl.cloud.tencent.com/document/api/409/89018?from_cn_redirect=1) API.
|
String |
getDBMajorVersion()
Get The major PostgreSQL version number, which can be queried by the [DescribeDBVersions](https://intl.cloud.tencent.com/document/api/409/89018?from_cn_redirect=1) API.
|
DBNode[] |
getDBNodeSet()
Get Instance node information
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
String |
getDBVersion()
Get Number of the major PostgreSQL community version and minor version, such as 12.4, which can be queried by the [DescribeDBVersions](https://intl.cloud.tencent.com/document/api/409/89018?from_cn_redirect=1) API.
|
String |
getExpireTime()
Get Instance expiration time
|
String |
getIsolatedTime()
Get Instance isolation time
|
Long |
getIsSupportTDE()
Get Whether the instance supports TDE.
|
String |
getMasterDBInstanceId()
Get Primary instance information, which is returned only when the instance is read-only.
|
NetworkAccess[] |
getNetworkAccessList()
Get Network access list of the instance (this field has been deprecated)
Note: this field may return `null`, indicating that no valid values can be obtained.
|
String |
getOfflineTime()
Get Offline time
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
String |
getPayType()
Get Billing mode.
|
Long |
getProjectId()
Get Project ID
|
Long |
getReadOnlyInstanceNum()
Get Number of read-only instances
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
String |
getRegion()
Get Instance region such as ap-guangzhou, which corresponds to the`Region` field in `RegionSet`.
|
String |
getStatusInReadonlyGroup()
Get The status of a read-only instance in a read-only group
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
String |
getSubnetId()
Get VPC subnet ID in the format of `subnet-xxxxxxxx`, which can be obtained in the console or from the `unSubnetId` field in the return value of the [DescribeSubnets ](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API.
|
Long |
getSupportIpv6()
Get Whether the instance supports IPv6.
|
Tag[] |
getTagList()
Get The information of tags associated with instances
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
String |
getType()
Get Machine type
|
Long |
getUid()
Get Instance `Uid`
|
String |
getUpdateTime()
Get Last updated time of the instance attribute
|
String |
getVpcId()
Get VPC ID in the format of `vpc-xxxxxxx`, which can be obtained in the console or from the `unVpcId` field in the return value of the [DescribeVpcEx](https://intl.cloud.tencent.com/document/api/215/1372?from_cn_redirect=1) API.
|
String |
getZone()
Get Instance AZ such as ap-guangzhou-3, which corresponds to the `Zone` field of `ZoneSet`.
|
void |
setAppId(Long AppId)
Set User `AppId`
|
void |
setAutoRenew(Long AutoRenew)
Set Whether auto-renewal is enabled.
|
void |
setCreateTime(String CreateTime)
Set Instance creation time
|
void |
setDBCharset(String DBCharset)
Set Instance character set.
|
void |
setDBEngine(String DBEngine)
Set Database engines.
|
void |
setDBEngineConfig(String DBEngineConfig)
Set Configuration information of database engine in the following format:
{"$key1":"$value1", "$key2":"$value2"}
Valid values:
mssql_compatible engine:
`migrationMode`: Database mode.
|
void |
setDBInstanceClass(String DBInstanceClass)
Set Purchasable specification ID
|
void |
setDBInstanceCpu(Long DBInstanceCpu)
Set Number of assigned CPUs
|
void |
setDBInstanceId(String DBInstanceId)
Set Instance ID
|
void |
setDBInstanceMemory(Long DBInstanceMemory)
Set Assigned instance memory size in GB
|
void |
setDBInstanceName(String DBInstanceName)
Set Instance name
|
void |
setDBInstanceNetInfo(DBInstanceNetInfo[] DBInstanceNetInfo)
Set Instance network connection information
|
void |
setDBInstanceStatus(String DBInstanceStatus)
Set Instance status.
|
void |
setDBInstanceStorage(Long DBInstanceStorage)
Set Assigned instance storage capacity in GB
|
void |
setDBInstanceType(String DBInstanceType)
Set Instance type.
|
void |
setDBInstanceVersion(String DBInstanceVersion)
Set Instance version.
|
void |
setDBKernelVersion(String DBKernelVersion)
Set PostgreSQL kernel version number (like v12.7_r1.8), which can be queried by the [DescribeDBVersions](https://intl.cloud.tencent.com/document/api/409/89018?from_cn_redirect=1) API.
|
void |
setDBMajorVersion(String DBMajorVersion)
Set The major PostgreSQL version number, which can be queried by the [DescribeDBVersions](https://intl.cloud.tencent.com/document/api/409/89018?from_cn_redirect=1) API.
|
void |
setDBNodeSet(DBNode[] DBNodeSet)
Set Instance node information
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
void |
setDBVersion(String DBVersion)
Set Number of the major PostgreSQL community version and minor version, such as 12.4, which can be queried by the [DescribeDBVersions](https://intl.cloud.tencent.com/document/api/409/89018?from_cn_redirect=1) API.
|
void |
setExpireTime(String ExpireTime)
Set Instance expiration time
|
void |
setIsolatedTime(String IsolatedTime)
Set Instance isolation time
|
void |
setIsSupportTDE(Long IsSupportTDE)
Set Whether the instance supports TDE.
|
void |
setMasterDBInstanceId(String MasterDBInstanceId)
Set Primary instance information, which is returned only when the instance is read-only.
|
void |
setNetworkAccessList(NetworkAccess[] NetworkAccessList)
Set Network access list of the instance (this field has been deprecated)
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setOfflineTime(String OfflineTime)
Set Offline time
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
void |
setPayType(String PayType)
Set Billing mode.
|
void |
setProjectId(Long ProjectId)
Set Project ID
|
void |
setReadOnlyInstanceNum(Long ReadOnlyInstanceNum)
Set Number of read-only instances
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
void |
setRegion(String Region)
Set Instance region such as ap-guangzhou, which corresponds to the`Region` field in `RegionSet`.
|
void |
setStatusInReadonlyGroup(String StatusInReadonlyGroup)
Set The status of a read-only instance in a read-only group
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
void |
setSubnetId(String SubnetId)
Set VPC subnet ID in the format of `subnet-xxxxxxxx`, which can be obtained in the console or from the `unSubnetId` field in the return value of the [DescribeSubnets ](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API.
|
void |
setSupportIpv6(Long SupportIpv6)
Set Whether the instance supports IPv6.
|
void |
setTagList(Tag[] TagList)
Set The information of tags associated with instances
Note: u200dThis field may return null, indicating that no valid values can be obtained.
|
void |
setType(String Type)
Set Machine type
|
void |
setUid(Long Uid)
Set Instance `Uid`
|
void |
setUpdateTime(String UpdateTime)
Set Last updated time of the instance attribute
|
void |
setVpcId(String VpcId)
Set VPC ID in the format of `vpc-xxxxxxx`, which can be obtained in the console or from the `unVpcId` field in the return value of the [DescribeVpcEx](https://intl.cloud.tencent.com/document/api/215/1372?from_cn_redirect=1) API.
|
void |
setZone(String Zone)
Set Instance AZ such as ap-guangzhou-3, which corresponds to the `Zone` field of `ZoneSet`.
|
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 DBInstance()
public DBInstance(DBInstance source)
public String getRegion()
public void setRegion(String Region)
Region
- Instance region such as ap-guangzhou, which corresponds to the`Region` field in `RegionSet`.public String getZone()
public void setZone(String Zone)
Zone
- Instance AZ such as ap-guangzhou-3, which corresponds to the `Zone` field of `ZoneSet`.public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC ID in the format of `vpc-xxxxxxx`, which can be obtained in the console or from the `unVpcId` field in the return value of the [DescribeVpcEx](https://intl.cloud.tencent.com/document/api/215/1372?from_cn_redirect=1) API.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- VPC subnet ID in the format of `subnet-xxxxxxxx`, which can be obtained in the console or from the `unSubnetId` field in the return value of the [DescribeSubnets ](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) API.public String getDBInstanceId()
public void setDBInstanceId(String DBInstanceId)
DBInstanceId
- Instance IDpublic String getDBInstanceName()
public void setDBInstanceName(String DBInstanceName)
DBInstanceName
- Instance namepublic String getDBInstanceStatus()
public void setDBInstanceStatus(String DBInstanceStatus)
DBInstanceStatus
- Instance status. Valid values: `applying`, `init` (to be initialized), `initing` (initializing), `running`, `limited run`, `isolating`, `isolated`, `recycling`, `recycled`, `job running`, `offline`, `migrating`, `expanding`, `waitSwitch` (waiting for switch), `switching`, `readonly`, `restarting`, `network changing`, `upgrading` (upgrading kernel version), `audit-switching` (changing audit status), `primary-switching` (primary-standby switching).public Long getDBInstanceMemory()
public void setDBInstanceMemory(Long DBInstanceMemory)
DBInstanceMemory
- Assigned instance memory size in GBpublic Long getDBInstanceStorage()
public void setDBInstanceStorage(Long DBInstanceStorage)
DBInstanceStorage
- Assigned instance storage capacity in GBpublic Long getDBInstanceCpu()
public void setDBInstanceCpu(Long DBInstanceCpu)
DBInstanceCpu
- Number of assigned CPUspublic String getDBInstanceClass()
public void setDBInstanceClass(String DBInstanceClass)
DBInstanceClass
- Purchasable specification IDpublic String getDBMajorVersion()
public void setDBMajorVersion(String DBMajorVersion)
DBMajorVersion
- The major PostgreSQL version number, which can be queried by the [DescribeDBVersions](https://intl.cloud.tencent.com/document/api/409/89018?from_cn_redirect=1) API. Valid values: `10`, `11`, `12`, `13`, `14`, `15`.
Note: u200dThis field may return null, indicating that no valid values can be obtained.public String getDBVersion()
public void setDBVersion(String DBVersion)
DBVersion
- Number of the major PostgreSQL community version and minor version, such as 12.4, which can be queried by the [DescribeDBVersions](https://intl.cloud.tencent.com/document/api/409/89018?from_cn_redirect=1) API.public String getDBKernelVersion()
public void setDBKernelVersion(String DBKernelVersion)
DBKernelVersion
- PostgreSQL kernel version number (like v12.7_r1.8), which can be queried by the [DescribeDBVersions](https://intl.cloud.tencent.com/document/api/409/89018?from_cn_redirect=1) API.
Note: u200dThis field may return null, indicating that no valid values can be obtained.public String getDBInstanceType()
public void setDBInstanceType(String DBInstanceType)
DBInstanceType
- Instance type. Valid values:
public String getDBInstanceVersion()
public void setDBInstanceVersion(String DBInstanceVersion)
DBInstanceVersion
- Instance version. Valid value: `standard` (dual-server high-availability; one-primary-one-standby).public String getDBCharset()
public void setDBCharset(String DBCharset)
DBCharset
- Instance character set. Valid values:
public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- Instance creation timepublic String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime
- Last updated time of the instance attributepublic String getExpireTime()
public void setExpireTime(String ExpireTime)
ExpireTime
- Instance expiration timepublic String getIsolatedTime()
public void setIsolatedTime(String IsolatedTime)
IsolatedTime
- Instance isolation timepublic String getPayType()
public void setPayType(String PayType)
PayType
- Billing mode. Valid values:
public Long getAutoRenew()
public void setAutoRenew(Long AutoRenew)
AutoRenew
- Whether auto-renewal is enabled. Valid values:
public DBInstanceNetInfo[] getDBInstanceNetInfo()
public void setDBInstanceNetInfo(DBInstanceNetInfo[] DBInstanceNetInfo)
DBInstanceNetInfo
- Instance network connection informationpublic String getType()
public void setType(String Type)
Type
- Machine typepublic Long getAppId()
public void setAppId(Long AppId)
AppId
- User `AppId`public Long getUid()
public void setUid(Long Uid)
Uid
- Instance `Uid`public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project IDpublic Tag[] getTagList()
public void setTagList(Tag[] TagList)
TagList
- The information of tags associated with instances
Note: u200dThis field may return null, indicating that no valid values can be obtained.public String getMasterDBInstanceId()
public void setMasterDBInstanceId(String MasterDBInstanceId)
MasterDBInstanceId
- Primary instance information, which is returned only when the instance is read-only.
Note: u200dThis field may return null, indicating that no valid values can be obtained.public Long getReadOnlyInstanceNum()
public void setReadOnlyInstanceNum(Long ReadOnlyInstanceNum)
ReadOnlyInstanceNum
- Number of read-only instances
Note: u200dThis field may return null, indicating that no valid values can be obtained.public String getStatusInReadonlyGroup()
public void setStatusInReadonlyGroup(String StatusInReadonlyGroup)
StatusInReadonlyGroup
- The status of a read-only instance in a read-only group
Note: u200dThis field may return null, indicating that no valid values can be obtained.public String getOfflineTime()
public void setOfflineTime(String OfflineTime)
OfflineTime
- Offline time
Note: u200dThis field may return null, indicating that no valid values can be obtained.public DBNode[] getDBNodeSet()
public void setDBNodeSet(DBNode[] DBNodeSet)
DBNodeSet
- Instance node information
Note: u200dThis field may return null, indicating that no valid values can be obtained.public Long getIsSupportTDE()
public void setIsSupportTDE(Long IsSupportTDE)
IsSupportTDE
- Whether the instance supports TDE. Valid values:
public String getDBEngine()
public void setDBEngine(String DBEngine)
DBEngine
- Database engines. Valid values:
public String getDBEngineConfig()
public void setDBEngineConfig(String DBEngineConfig)
DBEngineConfig
- Configuration information of database engine in the following format:
{"$key1":"$value1", "$key2":"$value2"}
Valid values:
mssql_compatible engine:
public NetworkAccess[] getNetworkAccessList()
public void setNetworkAccessList(NetworkAccess[] NetworkAccessList)
NetworkAccessList
- Network access list of the instance (this field has been deprecated)
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getSupportIpv6()
public void setSupportIpv6(Long SupportIpv6)
SupportIpv6
- Whether the instance supports IPv6. Valid values:
Copyright © 2024. All rights reserved.