public class Instance extends AbstractModel
| 构造器和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCamRoleName()
Get CAM role name.
|
Long |
getCPU()
Get Number of CPU cores of the instance; unit: core
|
String |
getCreatedTime()
Get Creation time following the `ISO8601` standard and using `UTC` time in the format of `YYYY-MM-DDThh:mm:ssZ`.
|
DataDisk[] |
getDataDisks()
Get Information of the instance data disks.
|
String |
getDisasterRecoverGroupId()
Get ID of a spread placement group.
|
String |
getExpiredTime()
Get Expiration time in UTC format following the `ISO8601` standard: `YYYY-MM-DDThh:mm:ssZ`.
|
GPUInfo |
getGPUInfo()
Get GPU information.
|
String |
getHpcClusterId()
Get HPC cluster ID.
|
String |
getImageId()
Get `ID` of the image used to create the instance.
|
String |
getInstanceChargeType()
Get Instance billing plan.
|
String |
getInstanceId()
Get Instance `ID`
|
String |
getInstanceName()
Get Instance name
|
String |
getInstanceState()
Get Instance state.
|
String |
getInstanceType()
Get Instance model
|
InternetAccessible |
getInternetAccessible()
Get Information on instance bandwidth.
|
String[] |
getIPv6Addresses()
Get IPv6 address of the instance.
|
String |
getIsolatedSource()
Get The isolation status of the instance.
|
String |
getLatestOperation()
Get Last operation of the instance, such as StopInstances or ResetInstance.
|
String |
getLatestOperationRequestId()
Get Unique request ID for the last operation of the instance.
|
String |
getLatestOperationState()
Get The latest operation status of the instance.
|
String |
getLicenseType()
Get Instance OS license type.
|
LoginSettings |
getLoginSettings()
Get Login settings of the instance.
|
Long |
getMemory()
Get Memory capacity; unit: `GB`.
|
String |
getOsName()
Get Operating system name.
|
Placement |
getPlacement()
Get Location of the instance
|
String[] |
getPrivateIpAddresses()
Get List of private IPs of the instance's primary ENI.
|
String[] |
getPublicIpAddresses()
Get List of public IPs of the instance's primary ENI.
|
String[] |
getRdmaIpAddresses()
Get IP list of HPC cluster.
|
String |
getRenewFlag()
Get Auto renewal flag.
|
String |
getRestrictState()
Get Instance status.
|
String[] |
getSecurityGroupIds()
Get Security groups to which the instance belongs.
|
String |
getStopChargingMode()
Get Instance billing method after shutdown.
|
SystemDisk |
getSystemDisk()
Get Information on the system disk of the instance
|
Tag[] |
getTags()
Get List of tags associated with the instance.
|
String |
getUuid()
Get Globally unique ID of the instance.
|
VirtualPrivateCloud |
getVirtualPrivateCloud()
Get Information on the VPC where the instance resides.
|
void |
setCamRoleName(String CamRoleName)
Set CAM role name.
|
void |
setCPU(Long CPU)
Set Number of CPU cores of the instance; unit: core
|
void |
setCreatedTime(String CreatedTime)
Set Creation time following the `ISO8601` standard and using `UTC` time in the format of `YYYY-MM-DDThh:mm:ssZ`.
|
void |
setDataDisks(DataDisk[] DataDisks)
Set Information of the instance data disks.
|
void |
setDisasterRecoverGroupId(String DisasterRecoverGroupId)
Set ID of a spread placement group.
|
void |
setExpiredTime(String ExpiredTime)
Set Expiration time in UTC format following the `ISO8601` standard: `YYYY-MM-DDThh:mm:ssZ`.
|
void |
setGPUInfo(GPUInfo GPUInfo)
Set GPU information.
|
void |
setHpcClusterId(String HpcClusterId)
Set HPC cluster ID.
|
void |
setImageId(String ImageId)
Set `ID` of the image used to create the instance.
|
void |
setInstanceChargeType(String InstanceChargeType)
Set Instance billing plan.
|
void |
setInstanceId(String InstanceId)
Set Instance `ID`
|
void |
setInstanceName(String InstanceName)
Set Instance name
|
void |
setInstanceState(String InstanceState)
Set Instance state.
|
void |
setInstanceType(String InstanceType)
Set Instance model
|
void |
setInternetAccessible(InternetAccessible InternetAccessible)
Set Information on instance bandwidth.
|
void |
setIPv6Addresses(String[] IPv6Addresses)
Set IPv6 address of the instance.
|
void |
setIsolatedSource(String IsolatedSource)
Set The isolation status of the instance.
|
void |
setLatestOperation(String LatestOperation)
Set Last operation of the instance, such as StopInstances or ResetInstance.
|
void |
setLatestOperationRequestId(String LatestOperationRequestId)
Set Unique request ID for the last operation of the instance.
|
void |
setLatestOperationState(String LatestOperationState)
Set The latest operation status of the instance.
|
void |
setLicenseType(String LicenseType)
Set Instance OS license type.
|
void |
setLoginSettings(LoginSettings LoginSettings)
Set Login settings of the instance.
|
void |
setMemory(Long Memory)
Set Memory capacity; unit: `GB`.
|
void |
setOsName(String OsName)
Set Operating system name.
|
void |
setPlacement(Placement Placement)
Set Location of the instance
|
void |
setPrivateIpAddresses(String[] PrivateIpAddresses)
Set List of private IPs of the instance's primary ENI.
|
void |
setPublicIpAddresses(String[] PublicIpAddresses)
Set List of public IPs of the instance's primary ENI.
|
void |
setRdmaIpAddresses(String[] RdmaIpAddresses)
Set IP list of HPC cluster.
|
void |
setRenewFlag(String RenewFlag)
Set Auto renewal flag.
|
void |
setRestrictState(String RestrictState)
Set Instance status.
|
void |
setSecurityGroupIds(String[] SecurityGroupIds)
Set Security groups to which the instance belongs.
|
void |
setStopChargingMode(String StopChargingMode)
Set Instance billing method after shutdown.
|
void |
setSystemDisk(SystemDisk SystemDisk)
Set Information on the system disk of the instance
|
void |
setTags(Tag[] Tags)
Set List of tags associated with the instance.
|
void |
setUuid(String Uuid)
Set Globally unique ID of the instance.
|
void |
setVirtualPrivateCloud(VirtualPrivateCloud VirtualPrivateCloud)
Set Information on the VPC where the instance resides.
|
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, toJsonStringpublic Instance()
public Instance(Instance source)
public Placement getPlacement()
public void setPlacement(Placement Placement)
Placement - Location of the instancepublic String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - Instance `ID`public String getInstanceType()
public void setInstanceType(String InstanceType)
InstanceType - Instance modelpublic Long getCPU()
public void setCPU(Long CPU)
CPU - Number of CPU cores of the instance; unit: corepublic Long getMemory()
public void setMemory(Long Memory)
Memory - Memory capacity; unit: `GB`.public String getRestrictState()
public void setRestrictState(String RestrictState)
RestrictState - Instance status. Valid values: public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName - Instance namepublic String getInstanceChargeType()
public void setInstanceChargeType(String InstanceChargeType)
InstanceChargeType - Instance billing plan. Valid values:public SystemDisk getSystemDisk()
public void setSystemDisk(SystemDisk SystemDisk)
SystemDisk - Information on the system disk of the instancepublic DataDisk[] getDataDisks()
public void setDataDisks(DataDisk[] DataDisks)
DataDisks - Information of the instance data disks.public String[] getPrivateIpAddresses()
public void setPrivateIpAddresses(String[] PrivateIpAddresses)
PrivateIpAddresses - List of private IPs of the instance's primary ENI.public String[] getPublicIpAddresses()
public void setPublicIpAddresses(String[] PublicIpAddresses)
PublicIpAddresses - List of public IPs of the instance's primary ENI.
Note: This field may return null, indicating that no valid value is found.public InternetAccessible getInternetAccessible()
public void setInternetAccessible(InternetAccessible InternetAccessible)
InternetAccessible - Information on instance bandwidth.public VirtualPrivateCloud getVirtualPrivateCloud()
public void setVirtualPrivateCloud(VirtualPrivateCloud VirtualPrivateCloud)
VirtualPrivateCloud - Information on the VPC where the instance resides.public String getImageId()
public void setImageId(String ImageId)
ImageId - `ID` of the image used to create the instance.public String getRenewFlag()
public void setRenewFlag(String RenewFlag)
RenewFlag - Auto renewal flag. Valid values: public String getCreatedTime()
public void setCreatedTime(String CreatedTime)
CreatedTime - Creation time following the `ISO8601` standard and using `UTC` time in the format of `YYYY-MM-DDThh:mm:ssZ`.public String getExpiredTime()
public void setExpiredTime(String ExpiredTime)
ExpiredTime - Expiration time in UTC format following the `ISO8601` standard: `YYYY-MM-DDThh:mm:ssZ`. Note: this parameter is `null` for postpaid instances.public String getOsName()
public void setOsName(String OsName)
OsName - Operating system name.public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds - Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response.public LoginSettings getLoginSettings()
public void setLoginSettings(LoginSettings LoginSettings)
LoginSettings - Login settings of the instance. Currently only the key associated with the instance is returned.public String getInstanceState()
public void setInstanceState(String InstanceState)
InstanceState - Instance state. Valid values: public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags - List of tags associated with the instance.public String getStopChargingMode()
public void setStopChargingMode(String StopChargingMode)
StopChargingMode - Instance billing method after shutdown.
Valid values: public String getUuid()
public void setUuid(String Uuid)
Uuid - Globally unique ID of the instance.public String getLatestOperation()
public void setLatestOperation(String LatestOperation)
LatestOperation - Last operation of the instance, such as StopInstances or ResetInstance.public String getLatestOperationState()
public void setLatestOperationState(String LatestOperationState)
LatestOperationState - The latest operation status of the instance. Valid values:public String getLatestOperationRequestId()
public void setLatestOperationRequestId(String LatestOperationRequestId)
LatestOperationRequestId - Unique request ID for the last operation of the instance.public String getDisasterRecoverGroupId()
public void setDisasterRecoverGroupId(String DisasterRecoverGroupId)
DisasterRecoverGroupId - ID of a spread placement group.
Note: this field may return null, indicating that no valid value is obtained.public String[] getIPv6Addresses()
public void setIPv6Addresses(String[] IPv6Addresses)
IPv6Addresses - IPv6 address of the instance.
Note: this field may return null, indicating that no valid value is obtained.public String getCamRoleName()
public void setCamRoleName(String CamRoleName)
CamRoleName - CAM role name.
Note: this field may return null, indicating that no valid value is obtained.public String getHpcClusterId()
public void setHpcClusterId(String HpcClusterId)
HpcClusterId - HPC cluster ID.
Note: this field may return null, indicating that no valid value was found.public String[] getRdmaIpAddresses()
public void setRdmaIpAddresses(String[] RdmaIpAddresses)
RdmaIpAddresses - IP list of HPC cluster.
Note: this field may return null, indicating that no valid value was found.public String getIsolatedSource()
public void setIsolatedSource(String IsolatedSource)
IsolatedSource - The isolation status of the instance. Valid values:public GPUInfo getGPUInfo()
public void setGPUInfo(GPUInfo GPUInfo)
GPUInfo - GPU information. This field is only returned for GPU instances.
Note: this field may return null, indicating that no valid value was found.public String getLicenseType()
public void setLicenseType(String LicenseType)
LicenseType - Instance OS license type. Default value: `TencentCloud`Copyright © 2022. All rights reserved.