public class Instance extends AbstractModel
Constructor and Description |
---|
Instance() |
Instance(Instance 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 |
getCreateTime()
Get Instance creation time.
|
DiskInfo[] |
getDataDisks()
Get Data disk information
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getDataDiskSize()
Get Data disk size in GB.
|
String |
getExpireState()
Get Expiration status.
|
String |
getExpireTime()
Get Expiration time in the format of `yyyy-mm-dd HH:mm:ss`.
|
Image |
getImage()
Get Information of the image currently used by the instance.
|
String |
getInstanceId()
Get Instance ID.
|
String |
getInstanceName()
Get Instance name, such as `ens-34241f3s`.
|
String |
getInstanceState()
Get Instance status.
|
InstanceTypeConfig |
getInstanceTypeConfig()
Get Configuration information of the instance.
|
Internet |
getInternet()
Get Network information of the instance.
|
String |
getIsolatedTime()
Get Isolation time in the format of `yyyy-mm-dd HH:mm:ss`.
|
String |
getISP()
Get ISP field of the instance.
|
String |
getLatestOperation()
Get Last operation on the instance.
|
String |
getLatestOperationState()
Get Result of the last operation on the instance.
|
Long |
getNewFlag()
Get New instance flag
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getPayMode()
Get Billing mode.
|
PhysicalPosition |
getPhysicalPosition()
Get Physical location information.
|
Position |
getPosition()
Get Location information of the instance.
|
Long |
getRenewFlag()
Get Auto-Renewal flag.
|
String |
getRestrictState()
Get Instance business status.
|
String[] |
getSecurityGroupIds()
Get Security group of the instance, which can be obtained from the `sgId` field in the returned value of the `DescribeSecurityGroups` API.
|
SimpleModule |
getSimpleModule()
Get Basic information of the current module of the instance.
|
DiskInfo |
getSystemDisk()
Get System disk information
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getSystemDiskSize()
Get System disk size in GB.
|
Tag[] |
getTagSet()
Get Instance tag information.
|
String |
getUUID()
Get Instance UUID
Note: this field may return null, indicating that no valid values can be obtained.
|
VirtualPrivateCloud |
getVirtualPrivateCloud()
Get VPC attribute
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setCreateTime(String CreateTime)
Set Instance creation time.
|
void |
setDataDisks(DiskInfo[] DataDisks)
Set Data disk information
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setDataDiskSize(Long DataDiskSize)
Set Data disk size in GB.
|
void |
setExpireState(String ExpireState)
Set Expiration status.
|
void |
setExpireTime(String ExpireTime)
Set Expiration time in the format of `yyyy-mm-dd HH:mm:ss`.
|
void |
setImage(Image Image)
Set Information of the image currently used by the instance.
|
void |
setInstanceId(String InstanceId)
Set Instance ID.
|
void |
setInstanceName(String InstanceName)
Set Instance name, such as `ens-34241f3s`.
|
void |
setInstanceState(String InstanceState)
Set Instance status.
|
void |
setInstanceTypeConfig(InstanceTypeConfig InstanceTypeConfig)
Set Configuration information of the instance.
|
void |
setInternet(Internet Internet)
Set Network information of the instance.
|
void |
setIsolatedTime(String IsolatedTime)
Set Isolation time in the format of `yyyy-mm-dd HH:mm:ss`.
|
void |
setISP(String ISP)
Set ISP field of the instance.
|
void |
setLatestOperation(String LatestOperation)
Set Last operation on the instance.
|
void |
setLatestOperationState(String LatestOperationState)
Set Result of the last operation on the instance.
|
void |
setNewFlag(Long NewFlag)
Set New instance flag
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setPayMode(Long PayMode)
Set Billing mode.
|
void |
setPhysicalPosition(PhysicalPosition PhysicalPosition)
Set Physical location information.
|
void |
setPosition(Position Position)
Set Location information of the instance.
|
void |
setRenewFlag(Long RenewFlag)
Set Auto-Renewal flag.
|
void |
setRestrictState(String RestrictState)
Set Instance business status.
|
void |
setSecurityGroupIds(String[] SecurityGroupIds)
Set Security group of the instance, which can be obtained from the `sgId` field in the returned value of the `DescribeSecurityGroups` API.
|
void |
setSimpleModule(SimpleModule SimpleModule)
Set Basic information of the current module of the instance.
|
void |
setSystemDisk(DiskInfo SystemDisk)
Set System disk information
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setSystemDiskSize(Long SystemDiskSize)
Set System disk size in GB.
|
void |
setTagSet(Tag[] TagSet)
Set Instance tag information.
|
void |
setUUID(String UUID)
Set Instance UUID
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setVirtualPrivateCloud(VirtualPrivateCloud VirtualPrivateCloud)
Set VPC attribute
Note: this field may return null, indicating that no valid values can be obtained.
|
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 Instance()
public Instance(Instance source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID.public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Instance name, such as `ens-34241f3s`.
Note: this field may return null, indicating that no valid values can be obtained.public String getInstanceState()
public void setInstanceState(String InstanceState)
InstanceState
- Instance status. Valid values:
PENDING: creating
LAUNCH_FAILED: failed to create
RUNNING: running
STOPPED: shut down
STARTING: starting
STOPPING: shutting down
REBOOTING: restarting
SHUTDOWN: to be terminated
TERMINATING: terminating.public Image getImage()
public void setImage(Image Image)
Image
- Information of the image currently used by the instance.
Note: this field may return null, indicating that no valid values can be obtained.public SimpleModule getSimpleModule()
public void setSimpleModule(SimpleModule SimpleModule)
SimpleModule
- Basic information of the current module of the instance.
Note: this field may return null, indicating that no valid values can be obtained.public Position getPosition()
public void setPosition(Position Position)
Position
- Location information of the instance.
Note: this field may return null, indicating that no valid values can be obtained.public Internet getInternet()
public void setInternet(Internet Internet)
Internet
- Network information of the instance.
Note: this field may return null, indicating that no valid values can be obtained.public InstanceTypeConfig getInstanceTypeConfig()
public void setInstanceTypeConfig(InstanceTypeConfig InstanceTypeConfig)
InstanceTypeConfig
- Configuration information of the instance.
Note: this field may return null, indicating that no valid values can be obtained.public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime
- Instance creation time.
Note: this field may return null, indicating that no valid values can be obtained.public Tag[] getTagSet()
public void setTagSet(Tag[] TagSet)
TagSet
- Instance tag information.
Note: this field may return null, indicating that no valid values can be obtained.public String getLatestOperation()
public void setLatestOperation(String LatestOperation)
LatestOperation
- Last operation on the instance.
Note: this field may return null, indicating that no valid values can be obtained.public String getLatestOperationState()
public void setLatestOperationState(String LatestOperationState)
LatestOperationState
- Result of the last operation on the instance.
Note: this field may return null, indicating that no valid values can be obtained.public String getRestrictState()
public void setRestrictState(String RestrictState)
RestrictState
- Instance business status. Valid values:
NORMAL: normal
EXPIRED: expired
PROTECTIVELY_ISOLATED: isolated.
Note: this field may return null, indicating that no valid values can be obtained.public Long getSystemDiskSize()
public void setSystemDiskSize(Long SystemDiskSize)
SystemDiskSize
- System disk size in GB.
Note: this field may return null, indicating that no valid values can be obtained.public Long getDataDiskSize()
public void setDataDiskSize(Long DataDiskSize)
DataDiskSize
- Data disk size in GB.
Note: this field may return null, indicating that no valid values can be obtained.public String getUUID()
public void setUUID(String UUID)
UUID
- Instance UUID
Note: this field may return null, indicating that no valid values can be obtained.public Long getPayMode()
public void setPayMode(Long PayMode)
PayMode
- Billing mode.
0: postpaid.
1: prepaid.
Note: this field may return null, indicating that no valid values can be obtained.public String getExpireTime()
public void setExpireTime(String ExpireTime)
ExpireTime
- Expiration time in the format of `yyyy-mm-dd HH:mm:ss`.
Note: this field may return null, indicating that no valid values can be obtained.public String getIsolatedTime()
public void setIsolatedTime(String IsolatedTime)
IsolatedTime
- Isolation time in the format of `yyyy-mm-dd HH:mm:ss`.
Note: this field may return null, indicating that no valid values can be obtained.public Long getRenewFlag()
public void setRenewFlag(Long RenewFlag)
RenewFlag
- Auto-Renewal flag.
0: no.
1: yes.
Note: this field may return null, indicating that no valid values can be obtained.public String getExpireState()
public void setExpireState(String ExpireState)
ExpireState
- Expiration status.
NORMAL: normal.
WILL_EXPIRE: about to expire.
EXPIRED: expired.
Note: this field may return null, indicating that no valid values can be obtained.public DiskInfo getSystemDisk()
public void setSystemDisk(DiskInfo SystemDisk)
SystemDisk
- System disk information
Note: this field may return null, indicating that no valid values can be obtained.public DiskInfo[] getDataDisks()
public void setDataDisks(DiskInfo[] DataDisks)
DataDisks
- Data disk information
Note: this field may return null, indicating that no valid values can be obtained.public Long getNewFlag()
public void setNewFlag(Long NewFlag)
NewFlag
- New instance flag
Note: this field may return null, indicating that no valid values can be obtained.public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds
- Security group of the instance, which can be obtained from the `sgId` field in the returned value of the `DescribeSecurityGroups` API.
Note: this field may return null, indicating that no valid values can be obtained.public VirtualPrivateCloud getVirtualPrivateCloud()
public void setVirtualPrivateCloud(VirtualPrivateCloud VirtualPrivateCloud)
VirtualPrivateCloud
- VPC attribute
Note: this field may return null, indicating that no valid values can be obtained.public String getISP()
public void setISP(String ISP)
ISP
- ISP field of the instance.
Note: this field may return null, indicating that no valid values can be obtained.public PhysicalPosition getPhysicalPosition()
public void setPhysicalPosition(PhysicalPosition PhysicalPosition)
PhysicalPosition
- Physical location information. Note that this field is currently a reserved field and null.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.