public class InstanceInfo extends AbstractModel
Constructor and Description |
---|
InstanceInfo() |
InstanceInfo(InstanceInfo 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 |
getAutoRenew()
Get Auto-renewal flag.
|
Long |
getCdbError()
Get Whether the disk write is locked (It depends on whether the instance data in disk exceeds its quota).
|
Long |
getCpu()
Get Number of cores
|
String |
getCreateTime()
Get Instance creation time
|
String |
getDeadlineTime()
Get Instance expiration time
|
String |
getDeployGroupId()
Get Placement group ID
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getDeployMode()
Get AZ deployment mode.
|
String |
getDeviceClass()
Get Physical machine model
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getDeviceType()
Get Instance type
|
String |
getDiskType()
Get Instance disk type, which is returned only for the instances of cloud disk edition.
|
DrInfo[] |
getDrInfo()
Get Details of a disaster recovery instance
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getEngineType()
Get Engine type
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getEngineVersion()
Get Kernel version
|
Long |
getInitFlag()
Get Initialization flag.
|
String |
getInstanceId()
Get Instance ID
|
String |
getInstanceName()
Get Instance name
|
Long |
getInstanceNodes()
Get Number of nodes
|
Long |
getInstanceType()
Get Instance type.
|
MasterInfo |
getMasterInfo()
Get Details of a primary instance
Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getMaxDelayTime()
Get Maximum delay threshold
Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getMemory()
Get Memory capacity in MB
|
Long |
getPayType()
Get Billing type
|
String |
getPhysicalId()
Get Physical ID
|
Long |
getProjectId()
Get Project ID
|
Long |
getProtectMode()
Get Data replication mode.
|
Long |
getQps()
Get Queries per second
|
String |
getRegion()
Get Region information
|
RoGroup[] |
getRoGroups()
Get Details of a read-only group
Note: This field may return null, indicating that no valid values can be obtained.
|
RoVipInfo |
getRoVipInfo()
Get VIP information of a read-only instance.
|
SlaveInfo |
getSlaveInfo()
Get Information of a secondary server
Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getStatus()
Get Instance status.
|
Long |
getSubnetId()
Get Subnet ID, such as 2333
|
TagInfoItem[] |
getTagList()
Get List of tags
Note: this field may return `null`, indicating that no valid values can be obtained.
|
Long |
getTaskStatus()
Get Instance task status.
|
String |
getUniqSubnetId()
Get Subnet descriptor, such as "subnet-1typ0s7d"
|
String |
getUniqVpcId()
Get VPC descriptor, such as "vpc-5v8wn9mg"
|
String |
getVip()
Get Instance IP
|
Long |
getVolume()
Get Disk capacity in GB
|
Long |
getVpcId()
Get VPC ID, such as 51102
|
Long |
getVport()
Get Port number
|
String |
getWanDomain()
Get Public domain name
|
Long |
getWanPort()
Get Public network port number
|
Long |
getWanStatus()
Get Public network access status.
|
String |
getZone()
Get AZ information
|
Long |
getZoneId()
Get AZ ID
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getZoneName()
Get AZ name
|
void |
setAutoRenew(Long AutoRenew)
Set Auto-renewal flag.
|
void |
setCdbError(Long CdbError)
Set Whether the disk write is locked (It depends on whether the instance data in disk exceeds its quota).
|
void |
setCpu(Long Cpu)
Set Number of cores
|
void |
setCreateTime(String CreateTime)
Set Instance creation time
|
void |
setDeadlineTime(String DeadlineTime)
Set Instance expiration time
|
void |
setDeployGroupId(String DeployGroupId)
Set Placement group ID
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setDeployMode(Long DeployMode)
Set AZ deployment mode.
|
void |
setDeviceClass(String DeviceClass)
Set Physical machine model
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setDeviceType(String DeviceType)
Set Instance type
|
void |
setDiskType(String DiskType)
Set Instance disk type, which is returned only for the instances of cloud disk edition.
|
void |
setDrInfo(DrInfo[] DrInfo)
Set Details of a disaster recovery instance
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setEngineType(String EngineType)
Set Engine type
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setEngineVersion(String EngineVersion)
Set Kernel version
|
void |
setInitFlag(Long InitFlag)
Set Initialization flag.
|
void |
setInstanceId(String InstanceId)
Set Instance ID
|
void |
setInstanceName(String InstanceName)
Set Instance name
|
void |
setInstanceNodes(Long InstanceNodes)
Set Number of nodes
|
void |
setInstanceType(Long InstanceType)
Set Instance type.
|
void |
setMasterInfo(MasterInfo MasterInfo)
Set Details of a primary instance
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setMaxDelayTime(Long MaxDelayTime)
Set Maximum delay threshold
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setMemory(Long Memory)
Set Memory capacity in MB
|
void |
setPayType(Long PayType)
Set Billing type
|
void |
setPhysicalId(String PhysicalId)
Set Physical ID
|
void |
setProjectId(Long ProjectId)
Set Project ID
|
void |
setProtectMode(Long ProtectMode)
Set Data replication mode.
|
void |
setQps(Long Qps)
Set Queries per second
|
void |
setRegion(String Region)
Set Region information
|
void |
setRoGroups(RoGroup[] RoGroups)
Set Details of a read-only group
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setRoVipInfo(RoVipInfo RoVipInfo)
Set VIP information of a read-only instance.
|
void |
setSlaveInfo(SlaveInfo SlaveInfo)
Set Information of a secondary server
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setStatus(Long Status)
Set Instance status.
|
void |
setSubnetId(Long SubnetId)
Set Subnet ID, such as 2333
|
void |
setTagList(TagInfoItem[] TagList)
Set List of tags
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setTaskStatus(Long TaskStatus)
Set Instance task status.
|
void |
setUniqSubnetId(String UniqSubnetId)
Set Subnet descriptor, such as "subnet-1typ0s7d"
|
void |
setUniqVpcId(String UniqVpcId)
Set VPC descriptor, such as "vpc-5v8wn9mg"
|
void |
setVip(String Vip)
Set Instance IP
|
void |
setVolume(Long Volume)
Set Disk capacity in GB
|
void |
setVpcId(Long VpcId)
Set VPC ID, such as 51102
|
void |
setVport(Long Vport)
Set Port number
|
void |
setWanDomain(String WanDomain)
Set Public domain name
|
void |
setWanPort(Long WanPort)
Set Public network port number
|
void |
setWanStatus(Long WanStatus)
Set Public network access status.
|
void |
setZone(String Zone)
Set AZ information
|
void |
setZoneId(Long ZoneId)
Set AZ ID
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setZoneName(String ZoneName)
Set AZ name
|
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 InstanceInfo()
public InstanceInfo(InstanceInfo source)
public Long getWanStatus()
public void setWanStatus(Long WanStatus)
WanStatus
- Public network access status. Value range: 0 (not enabled), 1 (enabled), 2 (disabled)public String getZone()
public void setZone(String Zone)
Zone
- AZ informationpublic Long getInitFlag()
public void setInitFlag(Long InitFlag)
InitFlag
- Initialization flag. Value range: 0 (not initialized), 1 (initialized)public RoVipInfo getRoVipInfo()
public void setRoVipInfo(RoVipInfo RoVipInfo)
RoVipInfo
- VIP information of a read-only instance. This field is exclusive to read-only instances where read-only access is enabled separately
Note: This field may return null, indicating that no valid values can be obtained.public Long getMemory()
public void setMemory(Long Memory)
Memory
- Memory capacity in MBpublic Long getStatus()
public void setStatus(Long Status)
Status
- Instance status. Valid values: `0` (creating), `1` (running), `4` (isolating), `5` (isolated).public Long getVpcId()
public void setVpcId(Long VpcId)
VpcId
- VPC ID, such as 51102public SlaveInfo getSlaveInfo()
public void setSlaveInfo(SlaveInfo SlaveInfo)
SlaveInfo
- Information of a secondary server
Note: This field may return null, indicating that no valid values can be obtained.public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance IDpublic Long getVolume()
public void setVolume(Long Volume)
Volume
- Disk capacity in GBpublic Long getAutoRenew()
public void setAutoRenew(Long AutoRenew)
AutoRenew
- Auto-renewal flag. Value range: 0 (auto-renewal not enabled), 1 (auto-renewal enabled), 2 (auto-renewal disabled)public Long getProtectMode()
public void setProtectMode(Long ProtectMode)
ProtectMode
- Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync)public RoGroup[] getRoGroups()
public void setRoGroups(RoGroup[] RoGroups)
RoGroups
- Details of a read-only group
Note: This field may return null, indicating that no valid values can be obtained.public Long getSubnetId()
public void setSubnetId(Long SubnetId)
SubnetId
- Subnet ID, such as 2333public Long getInstanceType()
public void setInstanceType(Long InstanceType)
InstanceType
- Instance type. Value range: 1 (primary), 2 (disaster recovery), 3 (read-only)public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project IDpublic String getRegion()
public void setRegion(String Region)
Region
- Region informationpublic String getDeadlineTime()
public void setDeadlineTime(String DeadlineTime)
DeadlineTime
- Instance expiration timepublic Long getDeployMode()
public void setDeployMode(Long DeployMode)
DeployMode
- AZ deployment mode. Valid values: 0 (single-AZ), 1 (multi-AZ)public Long getTaskStatus()
public void setTaskStatus(Long TaskStatus)
TaskStatus
- Instance task status. 0 - no task; 1 - upgrading; 2 - importing data; 3 - activating secondary; 4 - enabling public network access; 5 - batch operation in progress; 6 - rolling back; 7 - disabling public network access; 8 - changing password; 9 - renaming instance; 10 - restarting; 12 - migrating self-built instance; 13 - dropping table; 14 - creating and syncing disaster recovery instance; 15 - pending upgrade and switch; 16 - upgrade and switch in progress; 17 - upgrade and switch completedpublic MasterInfo getMasterInfo()
public void setMasterInfo(MasterInfo MasterInfo)
MasterInfo
- Details of a primary instance
Note: This field may return null, indicating that no valid values can be obtained.public String getDeviceType()
public void setDeviceType(String DeviceType)
DeviceType
- Instance typepublic String getEngineVersion()
public void setEngineVersion(String EngineVersion)
EngineVersion
- Kernel versionpublic String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Instance namepublic DrInfo[] getDrInfo()
public void setDrInfo(DrInfo[] DrInfo)
DrInfo
- Details of a disaster recovery instance
Note: This field may return null, indicating that no valid values can be obtained.public String getWanDomain()
public void setWanDomain(String WanDomain)
WanDomain
- Public domain namepublic Long getWanPort()
public void setWanPort(Long WanPort)
WanPort
- Public network port numberpublic Long getPayType()
public void setPayType(Long PayType)
PayType
- Billing typepublic String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- Instance creation timepublic String getVip()
public void setVip(String Vip)
Vip
- Instance IPpublic Long getVport()
public void setVport(Long Vport)
Vport
- Port numberpublic Long getCdbError()
public void setCdbError(Long CdbError)
CdbError
- Whether the disk write is locked (It depends on whether the instance data in disk exceeds its quota). Valid values: `0` (unlocked), `1` (locked).public String getUniqVpcId()
public void setUniqVpcId(String UniqVpcId)
UniqVpcId
- VPC descriptor, such as "vpc-5v8wn9mg"public String getUniqSubnetId()
public void setUniqSubnetId(String UniqSubnetId)
UniqSubnetId
- Subnet descriptor, such as "subnet-1typ0s7d"public String getPhysicalId()
public void setPhysicalId(String PhysicalId)
PhysicalId
- Physical IDpublic Long getCpu()
public void setCpu(Long Cpu)
Cpu
- Number of corespublic Long getQps()
public void setQps(Long Qps)
Qps
- Queries per secondpublic String getZoneName()
public void setZoneName(String ZoneName)
ZoneName
- AZ namepublic String getDeviceClass()
public void setDeviceClass(String DeviceClass)
DeviceClass
- Physical machine model
Note: This field may return null, indicating that no valid values can be obtained.public String getDeployGroupId()
public void setDeployGroupId(String DeployGroupId)
DeployGroupId
- Placement group ID
Note: this field may return null, indicating that no valid values can be obtained.public Long getZoneId()
public void setZoneId(Long ZoneId)
ZoneId
- AZ ID
Note: this field may return null, indicating that no valid values can be obtained.public Long getInstanceNodes()
public void setInstanceNodes(Long InstanceNodes)
InstanceNodes
- Number of nodespublic TagInfoItem[] getTagList()
public void setTagList(TagInfoItem[] TagList)
TagList
- List of tags
Note: this field may return `null`, indicating that no valid values can be obtained.public String getEngineType()
public void setEngineType(String EngineType)
EngineType
- Engine type
Note: This field may return null, indicating that no valid values can be obtained.public Long getMaxDelayTime()
public void setMaxDelayTime(Long MaxDelayTime)
MaxDelayTime
- Maximum delay threshold
Note: This field may return null, indicating that no valid values can be obtained.public String getDiskType()
public void setDiskType(String DiskType)
DiskType
- Instance disk type, which is returned only for the instances of cloud disk edition. Valid values: `CLOUD_SSD` (SSD), `CLOUD_HSSD` (Enhanced SSD).Copyright © 2023. All rights reserved.