public class DBInstance extends AbstractModel
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 |
---|---|
String |
getArchitecture()
Get Architecture type.
|
Long[] |
getBackupCycle()
Get Backup cycle
|
String |
getBackupCycleType()
Get Backup cycle type.
|
String |
getBackupModel()
Get Backup mode.
|
Long |
getBackupSaveDays()
Get Data (log) backup retention period
|
String |
getBackupTime()
Get Backup time point
|
String |
getCollation()
Get Collation of system character sets.
|
Long |
getCpu()
Get Number of CPU cores of instance
|
String |
getCreateTime()
Get Instance creation time
|
String |
getCrossBackupEnabled()
Get Cross-region backup status.
|
Long |
getCrossBackupSaveDays()
Get The retention period of cross-region backup.
|
String[] |
getCrossRegions()
Get The target region of cross-region backup.
|
String |
getDnsPodDomain()
Get Domain name of the public network address
|
String |
getEndTime()
Get Instance billing end time
|
String |
getHAFlag()
Get Disaster recovery type.
|
String |
getInstanceId()
Get Instance ID
|
String |
getInstanceNote()
Get Instance backup info
Note: This field may return `null`, indicating that no valid values can be obtained.
|
String |
getInstanceType()
Get Instance type.
|
Boolean |
getIsDrZone()
Get Whether the instance is deployed across AZs
|
String |
getIsolateOperator()
Get Instance isolation.
|
String |
getIsolateTime()
Get Instance isolation time
|
Long |
getMemory()
Get Instance memory size in GB
|
Long |
getModel()
Get High-availability instance type.
|
String |
getName()
Get Instance name
|
Long |
getPayMode()
Get Instance billing mode.
|
Long |
getPid()
Get Billing ID
|
Long |
getProjectId()
Get Project ID of instance
|
String |
getRegion()
Get Instance region name, such as ap-guangzhou
|
Long |
getRegionId()
Get Instance region ID
|
Long |
getRenewFlag()
Get Instance renewal flag
|
ResourceTag[] |
getResourceTags()
Get The list of tags associated with the instance
Note: this field may return `null`, indicating that no valid values can be obtained.
|
String |
getROFlag()
Get Read-only flag.
|
SlaveZones |
getSlaveZones()
Get Replica AZ information
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getStartTime()
Get Instance billing start time
|
Long |
getStatus()
Get Instance status.
|
Long |
getStorage()
Get Instance storage capacity in GB
|
String |
getStyle()
Get Instance type.
|
String |
getSubFlag()
Get Pub/sub flag.
|
Long |
getSubnetId()
Get Instance VPC subnet ID, which will be 0 if the basic network is used
|
Long |
getTgwWanVPort()
Get Port number of the public network
|
String |
getTimeZone()
Get System time zone.
|
String |
getType()
Get Physical server code
|
String |
getUid()
Get Instance UID
|
String |
getUniqSubnetId()
Get Unique string-type ID of instance subnet in the format of `subnet-xxx`, which is an empty string if the basic network is used
|
String |
getUniqVpcId()
Get Unique string-type ID of instance VPC in the format of `vpc-xxx`, which is an empty string if the basic network is used
|
String |
getUpdateTime()
Get Instance update time
|
Long |
getUsedStorage()
Get Used storage capacity of instance in GB
|
String |
getVersion()
Get Instance version code
|
String |
getVersionName()
Get Instance version
|
String |
getVip()
Get Instance access IP
|
Long |
getVpcId()
Get Instance VPC ID, which will be 0 if the basic network is used
|
Long |
getVport()
Get Instance access port
|
String |
getZone()
Get Instance AZ name, such as ap-guangzhou-1
|
Long |
getZoneId()
Get Instance AZ ID
|
void |
setArchitecture(String Architecture)
Set Architecture type.
|
void |
setBackupCycle(Long[] BackupCycle)
Set Backup cycle
|
void |
setBackupCycleType(String BackupCycleType)
Set Backup cycle type.
|
void |
setBackupModel(String BackupModel)
Set Backup mode.
|
void |
setBackupSaveDays(Long BackupSaveDays)
Set Data (log) backup retention period
|
void |
setBackupTime(String BackupTime)
Set Backup time point
|
void |
setCollation(String Collation)
Set Collation of system character sets.
|
void |
setCpu(Long Cpu)
Set Number of CPU cores of instance
|
void |
setCreateTime(String CreateTime)
Set Instance creation time
|
void |
setCrossBackupEnabled(String CrossBackupEnabled)
Set Cross-region backup status.
|
void |
setCrossBackupSaveDays(Long CrossBackupSaveDays)
Set The retention period of cross-region backup.
|
void |
setCrossRegions(String[] CrossRegions)
Set The target region of cross-region backup.
|
void |
setDnsPodDomain(String DnsPodDomain)
Set Domain name of the public network address
|
void |
setEndTime(String EndTime)
Set Instance billing end time
|
void |
setHAFlag(String HAFlag)
Set Disaster recovery type.
|
void |
setInstanceId(String InstanceId)
Set Instance ID
|
void |
setInstanceNote(String InstanceNote)
Set Instance backup info
Note: This field may return `null`, indicating that no valid values can be obtained.
|
void |
setInstanceType(String InstanceType)
Set Instance type.
|
void |
setIsDrZone(Boolean IsDrZone)
Set Whether the instance is deployed across AZs
|
void |
setIsolateOperator(String IsolateOperator)
Set Instance isolation.
|
void |
setIsolateTime(String IsolateTime)
Set Instance isolation time
|
void |
setMemory(Long Memory)
Set Instance memory size in GB
|
void |
setModel(Long Model)
Set High-availability instance type.
|
void |
setName(String Name)
Set Instance name
|
void |
setPayMode(Long PayMode)
Set Instance billing mode.
|
void |
setPid(Long Pid)
Set Billing ID
|
void |
setProjectId(Long ProjectId)
Set Project ID of instance
|
void |
setRegion(String Region)
Set Instance region name, such as ap-guangzhou
|
void |
setRegionId(Long RegionId)
Set Instance region ID
|
void |
setRenewFlag(Long RenewFlag)
Set Instance renewal flag
|
void |
setResourceTags(ResourceTag[] ResourceTags)
Set The list of tags associated with the instance
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setROFlag(String ROFlag)
Set Read-only flag.
|
void |
setSlaveZones(SlaveZones SlaveZones)
Set Replica AZ information
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setStartTime(String StartTime)
Set Instance billing start time
|
void |
setStatus(Long Status)
Set Instance status.
|
void |
setStorage(Long Storage)
Set Instance storage capacity in GB
|
void |
setStyle(String Style)
Set Instance type.
|
void |
setSubFlag(String SubFlag)
Set Pub/sub flag.
|
void |
setSubnetId(Long SubnetId)
Set Instance VPC subnet ID, which will be 0 if the basic network is used
|
void |
setTgwWanVPort(Long TgwWanVPort)
Set Port number of the public network
|
void |
setTimeZone(String TimeZone)
Set System time zone.
|
void |
setType(String Type)
Set Physical server code
|
void |
setUid(String Uid)
Set Instance UID
|
void |
setUniqSubnetId(String UniqSubnetId)
Set Unique string-type ID of instance subnet in the format of `subnet-xxx`, which is an empty string if the basic network is used
|
void |
setUniqVpcId(String UniqVpcId)
Set Unique string-type ID of instance VPC in the format of `vpc-xxx`, which is an empty string if the basic network is used
|
void |
setUpdateTime(String UpdateTime)
Set Instance update time
|
void |
setUsedStorage(Long UsedStorage)
Set Used storage capacity of instance in GB
|
void |
setVersion(String Version)
Set Instance version code
|
void |
setVersionName(String VersionName)
Set Instance version
|
void |
setVip(String Vip)
Set Instance access IP
|
void |
setVpcId(Long VpcId)
Set Instance VPC ID, which will be 0 if the basic network is used
|
void |
setVport(Long Vport)
Set Instance access port
|
void |
setZone(String Zone)
Set Instance AZ name, such as ap-guangzhou-1
|
void |
setZoneId(Long ZoneId)
Set Instance AZ ID
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public DBInstance()
public DBInstance(DBInstance source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance IDpublic String getName()
public void setName(String Name)
Name
- Instance namepublic Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID of instancepublic Long getRegionId()
public void setRegionId(Long RegionId)
RegionId
- Instance region IDpublic Long getZoneId()
public void setZoneId(Long ZoneId)
ZoneId
- Instance AZ IDpublic Long getVpcId()
public void setVpcId(Long VpcId)
VpcId
- Instance VPC ID, which will be 0 if the basic network is usedpublic Long getSubnetId()
public void setSubnetId(Long SubnetId)
SubnetId
- Instance VPC subnet ID, which will be 0 if the basic network is usedpublic Long getStatus()
public void setStatus(Long Status)
Status
- Instance status. Valid values: public String getVip()
public void setVip(String Vip)
Vip
- Instance access IPpublic Long getVport()
public void setVport(Long Vport)
Vport
- Instance access portpublic String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- Instance creation timepublic String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime
- Instance update timepublic String getStartTime()
public void setStartTime(String StartTime)
StartTime
- Instance billing start timepublic String getEndTime()
public void setEndTime(String EndTime)
EndTime
- Instance billing end timepublic String getIsolateTime()
public void setIsolateTime(String IsolateTime)
IsolateTime
- Instance isolation timepublic Long getMemory()
public void setMemory(Long Memory)
Memory
- Instance memory size in GBpublic Long getUsedStorage()
public void setUsedStorage(Long UsedStorage)
UsedStorage
- Used storage capacity of instance in GBpublic Long getStorage()
public void setStorage(Long Storage)
Storage
- Instance storage capacity in GBpublic String getVersionName()
public void setVersionName(String VersionName)
VersionName
- Instance versionpublic Long getRenewFlag()
public void setRenewFlag(Long RenewFlag)
RenewFlag
- Instance renewal flagpublic Long getModel()
public void setModel(Long Model)
Model
- High-availability instance type. Valid values: 1 (dual-server high-availability), 2 (standalone), 3 (multi-AZ), 4 (multi-AZ cluster), 5 (cluster), 9 (private consumption)public String getRegion()
public void setRegion(String Region)
Region
- Instance region name, such as ap-guangzhoupublic String getZone()
public void setZone(String Zone)
Zone
- Instance AZ name, such as ap-guangzhou-1public String getBackupTime()
public void setBackupTime(String BackupTime)
BackupTime
- Backup time pointpublic Long getPayMode()
public void setPayMode(Long PayMode)
PayMode
- Instance billing mode. 0: pay-as-you-gopublic String getUid()
public void setUid(String Uid)
Uid
- Instance UIDpublic Long getCpu()
public void setCpu(Long Cpu)
Cpu
- Number of CPU cores of instancepublic String getVersion()
public void setVersion(String Version)
Version
- Instance version codepublic String getType()
public void setType(String Type)
Type
- Physical server codepublic Long getPid()
public void setPid(Long Pid)
Pid
- Billing IDpublic String getUniqVpcId()
public void setUniqVpcId(String UniqVpcId)
UniqVpcId
- Unique string-type ID of instance VPC in the format of `vpc-xxx`, which is an empty string if the basic network is usedpublic String getUniqSubnetId()
public void setUniqSubnetId(String UniqSubnetId)
UniqSubnetId
- Unique string-type ID of instance subnet in the format of `subnet-xxx`, which is an empty string if the basic network is usedpublic String getIsolateOperator()
public void setIsolateOperator(String IsolateOperator)
IsolateOperator
- Instance isolation.
Note: this field may return null, indicating that no valid values can be obtained.public String getSubFlag()
public void setSubFlag(String SubFlag)
SubFlag
- Pub/sub flag. Valid values: SUB (subscribe instance), PUB (publish instance). If it is left empty, it refers to a regular instance without a pub/sub design.
Note: this field may return null, indicating that no valid values can be obtained.public String getROFlag()
public void setROFlag(String ROFlag)
ROFlag
- Read-only flag. Valid values: RO (read-only instance), MASTER (primary instance with read-only instances). If it is left empty, it refers to an instance which is not read-only and has no RO group.
Note: this field may return null, indicating that no valid values can be obtained.public String getHAFlag()
public void setHAFlag(String HAFlag)
HAFlag
- Disaster recovery type. Valid values: MIRROR (image), ALWAYSON (AlwaysOn), SINGLE (singleton).
Note: this field may return null, indicating that no valid values can be obtained.public ResourceTag[] getResourceTags()
public void setResourceTags(ResourceTag[] ResourceTags)
ResourceTags
- The list of tags associated with the instance
Note: this field may return `null`, indicating that no valid values can be obtained.public String getBackupModel()
public void setBackupModel(String BackupModel)
BackupModel
- Backup mode. Valid values: `master_pkg` (archive the backup files of the primary node (default value)), `master_no_pkg` (do not archive the backup files of the primary node), `slave_pkg` (archive the backup files of the replica node (valid for Always On clusters)), `slave_no_pkg` (do not archive the backup files of the replica node (valid for Always On clusters)). This parameter is invalid for read-only instances.
Note: this field may return `null`, indicating that no valid values can be obtained.public String getInstanceNote()
public void setInstanceNote(String InstanceNote)
InstanceNote
- Instance backup info
Note: This field may return `null`, indicating that no valid values can be obtained.public Long[] getBackupCycle()
public void setBackupCycle(Long[] BackupCycle)
BackupCycle
- Backup cyclepublic String getBackupCycleType()
public void setBackupCycleType(String BackupCycleType)
BackupCycleType
- Backup cycle type. Valid values: `daily`, `weekly`, `monthly`.public Long getBackupSaveDays()
public void setBackupSaveDays(Long BackupSaveDays)
BackupSaveDays
- Data (log) backup retention periodpublic String getInstanceType()
public void setInstanceType(String InstanceType)
InstanceType
- Instance type. Valid values: `HA` (high-availability), `RO` (read-only), `SI` (basic edition), `BI` (business intelligence service).public String[] getCrossRegions()
public void setCrossRegions(String[] CrossRegions)
CrossRegions
- The target region of cross-region backup. If this parameter left empty, it indicates that cross-region backup is disabled.public String getCrossBackupEnabled()
public void setCrossBackupEnabled(String CrossBackupEnabled)
CrossBackupEnabled
- Cross-region backup status. Valid values: `enable` (enabled), `disable` (disabed)public Long getCrossBackupSaveDays()
public void setCrossBackupSaveDays(Long CrossBackupSaveDays)
CrossBackupSaveDays
- The retention period of cross-region backup. Default value: 7 dayspublic String getDnsPodDomain()
public void setDnsPodDomain(String DnsPodDomain)
DnsPodDomain
- Domain name of the public network addresspublic Long getTgwWanVPort()
public void setTgwWanVPort(Long TgwWanVPort)
TgwWanVPort
- Port number of the public networkpublic String getCollation()
public void setCollation(String Collation)
Collation
- Collation of system character sets. Default value: `Chinese_PRC_CI_AS`.public String getTimeZone()
public void setTimeZone(String TimeZone)
TimeZone
- System time zone. Default value: `China Standard Time`.public Boolean getIsDrZone()
public void setIsDrZone(Boolean IsDrZone)
IsDrZone
- Whether the instance is deployed across AZspublic SlaveZones getSlaveZones()
public void setSlaveZones(SlaveZones SlaveZones)
SlaveZones
- Replica AZ information
Note: This field may return null, indicating that no valid values can be obtained.public String getArchitecture()
public void setArchitecture(String Architecture)
Architecture
- Architecture type. Valid values: `SINGLE` (single-node), `DOUBLE` (two-node), `TRIPLE` (three-node).
Note: This field may return null, indicating that no valid values can be obtained.public String getStyle()
public void setStyle(String Style)
Style
- Instance type. Valid values: `EXCLUSIVE` (dedicated), `SHARED` (shared)
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.