public class Resource extends AbstractModel
Constructor and Description |
---|
Resource() |
Resource(Resource 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 CPU cores
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getDiskNum()
Get Number of disks
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getDiskSize()
Get Data disk capacity
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getDiskType()
Get Disk type
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getInstanceType()
Get Specification type
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getLocalDiskNum()
Get Number of local disks
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getMemSize()
Get Memory capacity in MB
Note: this field may return null, indicating that no valid values can be obtained.
|
MultiDisk[] |
getMultiDisks()
Get List of cloud disks.
|
Long |
getRootSize()
Get System disk capacity
Note: this field may return null, indicating that no valid values can be obtained.
|
String |
getSpec()
Get Node specification description
Note: this field may return null, indicating that no valid values can be obtained.
|
Long |
getStorageType()
Get Storage class
Note: this field may return null, indicating that no valid values can be obtained.
|
Tag[] |
getTags()
Get List of tags to be bound
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setCpu(Long Cpu)
Set Number of CPU cores
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setDiskNum(Long DiskNum)
Set Number of disks
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setDiskSize(Long DiskSize)
Set Data disk capacity
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setDiskType(String DiskType)
Set Disk type
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setInstanceType(String InstanceType)
Set Specification type
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setLocalDiskNum(Long LocalDiskNum)
Set Number of local disks
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setMemSize(Long MemSize)
Set Memory capacity in MB
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setMultiDisks(MultiDisk[] MultiDisks)
Set List of cloud disks.
|
void |
setRootSize(Long RootSize)
Set System disk capacity
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setSpec(String Spec)
Set Node specification description
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setStorageType(Long StorageType)
Set Storage class
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setTags(Tag[] Tags)
Set List of tags to be bound
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 Resource()
public Resource(Resource source)
public String getSpec()
public void setSpec(String Spec)
Spec
- Node specification description
Note: this field may return null, indicating that no valid values can be obtained.public Long getStorageType()
public void setStorageType(Long StorageType)
StorageType
- Storage class
Note: this field may return null, indicating that no valid values can be obtained.public String getDiskType()
public void setDiskType(String DiskType)
DiskType
- Disk type
Note: this field may return null, indicating that no valid values can be obtained.public Long getMemSize()
public void setMemSize(Long MemSize)
MemSize
- Memory capacity in MB
Note: this field may return null, indicating that no valid values can be obtained.public Long getCpu()
public void setCpu(Long Cpu)
Cpu
- Number of CPU cores
Note: this field may return null, indicating that no valid values can be obtained.public Long getDiskSize()
public void setDiskSize(Long DiskSize)
DiskSize
- Data disk capacity
Note: this field may return null, indicating that no valid values can be obtained.public Long getRootSize()
public void setRootSize(Long RootSize)
RootSize
- System disk capacity
Note: this field may return null, indicating that no valid values can be obtained.public MultiDisk[] getMultiDisks()
public void setMultiDisks(MultiDisk[] MultiDisks)
MultiDisks
- List of cloud disks. When the data disk is a cloud disk, `DiskType` and `DiskSize` are used directly; `MultiDisks` will be used for the excessive part
Note: this field may return null, indicating that no valid values can be obtained.public Tag[] getTags()
public void setTags(Tag[] Tags)
Tags
- List of tags to be bound
Note: this field may return null, indicating that no valid values can be obtained.public String getInstanceType()
public void setInstanceType(String InstanceType)
InstanceType
- Specification type
Note: this field may return null, indicating that no valid values can be obtained.public Long getLocalDiskNum()
public void setLocalDiskNum(Long LocalDiskNum)
LocalDiskNum
- Number of local disks
Note: this field may return null, indicating that no valid values can be obtained.public Long getDiskNum()
public void setDiskNum(Long DiskNum)
DiskNum
- Number of disks
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2021. All rights reserved.