public class Spec extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
Spec()  | 
Spec(Spec 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 | 
|---|---|
Float | 
getCpuLimit()
Get Maximum number of CPU cores. 
 | 
Long | 
getDiskLimit()
Get Maximum number of disks (Gi). 
 | 
Float | 
getMemoryLimit()
Get Maximum memory size (Gi). 
 | 
Long | 
getPayMode()
Get 1: yearly/monthly subscription; 2: bill by hour. 
 | 
Long | 
getReplicas()
Get Number of business nodes. 
 | 
Long | 
getRequestUnit()
Get Request unit. 
 | 
Long | 
getShards()
Get Number of business shards. 
 | 
void | 
setCpuLimit(Float CpuLimit)
Set Maximum number of CPU cores. 
 | 
void | 
setDiskLimit(Long DiskLimit)
Set Maximum number of disks (Gi). 
 | 
void | 
setMemoryLimit(Float MemoryLimit)
Set Maximum memory size (Gi). 
 | 
void | 
setPayMode(Long PayMode)
Set 1: yearly/monthly subscription; 2: bill by hour. 
 | 
void | 
setReplicas(Long Replicas)
Set Number of business nodes. 
 | 
void | 
setRequestUnit(Long RequestUnit)
Set Request unit. 
 | 
void | 
setShards(Long Shards)
Set Number of business shards. 
 | 
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 Spec()
public Spec(Spec source)
public Long getPayMode()
public void setPayMode(Long PayMode)
PayMode - 1: yearly/monthly subscription; 2: bill by hour.
Note: This field may return null, indicating that no valid values can be obtained.public Long getRequestUnit()
public void setRequestUnit(Long RequestUnit)
RequestUnit - Request unit. 0 indicates following the resource configuration.
Note: This field may return null, indicating that no valid values can be obtained.public Float getCpuLimit()
public void setCpuLimit(Float CpuLimit)
CpuLimit - Maximum number of CPU cores.
Note: This field may return null, indicating that no valid values can be obtained.public Float getMemoryLimit()
public void setMemoryLimit(Float MemoryLimit)
MemoryLimit - Maximum memory size (Gi).
Note: This field may return null, indicating that no valid values can be obtained.public Long getDiskLimit()
public void setDiskLimit(Long DiskLimit)
DiskLimit - Maximum number of disks (Gi).
Note: This field may return null, indicating that no valid values can be obtained.public Long getShards()
public void setShards(Long Shards)
Shards - Number of business shards.
Note: This field may return null, indicating that no valid values can be obtained.public Long getReplicas()
public void setReplicas(Long Replicas)
Replicas - Number of business nodes.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2025. All rights reserved.