public class InstanceSpec extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
InstanceSpec()  | 
InstanceSpec(InstanceSpec 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 | 
getCpu()
Get Number of instance CPU cores 
 | 
Boolean | 
getHasStock()
Get Whether there is an inventory. 
 | 
String | 
getMachineType()
Get Machine type 
 | 
Long | 
getMaxIoBandWidth()
Get Maximum bandwidth 
 | 
Long | 
getMaxIops()
Get Maximum IOPS 
 | 
Long | 
getMaxStorageSize()
Get Maximum instance storage capacity GB 
 | 
Long | 
getMemory()
Get Instance memory in GB 
 | 
Long | 
getMinStorageSize()
Get Minimum instance storage capacity GB 
 | 
Long | 
getStockCount()
Get Inventory quantity. 
 | 
ZoneStockInfo[] | 
getZoneStockInfos()
Get Regional inventory information. 
 | 
void | 
setCpu(Long Cpu)
Set Number of instance CPU cores 
 | 
void | 
setHasStock(Boolean HasStock)
Set Whether there is an inventory. 
 | 
void | 
setMachineType(String MachineType)
Set Machine type 
 | 
void | 
setMaxIoBandWidth(Long MaxIoBandWidth)
Set Maximum bandwidth 
 | 
void | 
setMaxIops(Long MaxIops)
Set Maximum IOPS 
 | 
void | 
setMaxStorageSize(Long MaxStorageSize)
Set Maximum instance storage capacity GB 
 | 
void | 
setMemory(Long Memory)
Set Instance memory in GB 
 | 
void | 
setMinStorageSize(Long MinStorageSize)
Set Minimum instance storage capacity GB 
 | 
void | 
setStockCount(Long StockCount)
Set Inventory quantity. 
 | 
void | 
setZoneStockInfos(ZoneStockInfo[] ZoneStockInfos)
Set Regional inventory information. 
 | 
void | 
toMap(HashMap<String,String> map,
     String prefix)
Internal implementation, normal users should not use it. 
 | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic InstanceSpec()
public InstanceSpec(InstanceSpec source)
public Long getCpu()
public void setCpu(Long Cpu)
Cpu - Number of instance CPU corespublic Long getMemory()
public void setMemory(Long Memory)
Memory - Instance memory in GBpublic Long getMaxStorageSize()
public void setMaxStorageSize(Long MaxStorageSize)
MaxStorageSize - Maximum instance storage capacity GBpublic Long getMinStorageSize()
public void setMinStorageSize(Long MinStorageSize)
MinStorageSize - Minimum instance storage capacity GBpublic Boolean getHasStock()
public void setHasStock(Boolean HasStock)
HasStock - Whether there is an inventory.public String getMachineType()
public void setMachineType(String MachineType)
MachineType - Machine typepublic Long getMaxIops()
public void setMaxIops(Long MaxIops)
MaxIops - Maximum IOPSpublic Long getMaxIoBandWidth()
public void setMaxIoBandWidth(Long MaxIoBandWidth)
MaxIoBandWidth - Maximum bandwidthpublic ZoneStockInfo[] getZoneStockInfos()
public void setZoneStockInfos(ZoneStockInfo[] ZoneStockInfos)
ZoneStockInfos - Regional inventory information.public Long getStockCount()
public void setStockCount(Long StockCount)
StockCount - Inventory quantity.Copyright © 2025. All rights reserved.