public static class RunInstancesRequest.RunInstancesRequestCpuOptions
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Integer |
core
The number of CPU cores.
|
String |
numa
This parameter is no longer used.
|
Integer |
threadsPerCore
The number of threads per CPU core.
|
String |
topologyType
The CPU topology type of the instance.
|
构造器和说明 |
---|
RunInstancesRequestCpuOptions() |
限定符和类型 | 方法和说明 |
---|---|
static RunInstancesRequest.RunInstancesRequestCpuOptions |
build(Map<String,?> map) |
Integer |
getCore() |
String |
getNuma() |
Integer |
getThreadsPerCore() |
String |
getTopologyType() |
RunInstancesRequest.RunInstancesRequestCpuOptions |
setCore(Integer core) |
RunInstancesRequest.RunInstancesRequestCpuOptions |
setNuma(String numa) |
RunInstancesRequest.RunInstancesRequestCpuOptions |
setThreadsPerCore(Integer threadsPerCore) |
RunInstancesRequest.RunInstancesRequestCpuOptions |
setTopologyType(String topologyType) |
@NameInMap(value="Core") public Integer core
The number of CPU cores. This parameter cannot be specified but only uses its default value.
For information about the default value, see Customize CPU options.
example:2
@NameInMap(value="Numa") public String numa
This parameter is no longer used.
example:1
@NameInMap(value="ThreadsPerCore") public Integer threadsPerCore
The number of threads per CPU core. The following formula is used to calculate the number of vCPUs of the instance: CpuOptions.Core
value × CpuOptions.ThreadsPerCore
value.
CpuOptionsThreadPerCore
is set to 1, Hyper-Threading (HT) is disabled.2
@NameInMap(value="TopologyType") public String topologyType
The CPU topology type of the instance. Valid values:
This parameter is empty by default.
example:This parameter is supported only for specific instance families. For more information about the supported instance families, see View and modify the CPU topology.
DiscreteCoreToHTMapping
public static RunInstancesRequest.RunInstancesRequestCpuOptions build(Map<String,?> map) throws Exception
Exception
public RunInstancesRequest.RunInstancesRequestCpuOptions setCore(Integer core)
public Integer getCore()
public RunInstancesRequest.RunInstancesRequestCpuOptions setNuma(String numa)
public String getNuma()
public RunInstancesRequest.RunInstancesRequestCpuOptions setThreadsPerCore(Integer threadsPerCore)
public Integer getThreadsPerCore()
public RunInstancesRequest.RunInstancesRequestCpuOptions setTopologyType(String topologyType)
public String getTopologyType()
Copyright © 2024. All rights reserved.