public static class CreateAutoProvisioningGroupRequest.CreateAutoProvisioningGroupRequestLaunchTemplateConfig
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
List<String> |
architectures |
String |
burstablePerformance |
List<Integer> |
cores |
List<String> |
excludedInstanceTypes |
String |
instanceFamilyLevel |
String |
instanceType
The instance type in extended configuration N.
|
Double |
maxPrice
The maximum price of preemptible instances in extended configuration N.
|
Integer |
maxQuantity |
List<Float> |
memories |
Integer |
priority
The priority of extended configuration N.
|
String |
vSwitchId
The ID of the vSwitch in extended configuration N.
|
Double |
weightedCapacity
The weight of the instance type specified in extended configuration N.
|
构造器和说明 |
---|
CreateAutoProvisioningGroupRequestLaunchTemplateConfig() |
@NameInMap(value="BurstablePerformance") public String burstablePerformance
@NameInMap(value="ExcludedInstanceTypes") public List<String> excludedInstanceTypes
@NameInMap(value="InstanceFamilyLevel") public String instanceFamilyLevel
@NameInMap(value="InstanceType") public String instanceType
The instance type in extended configuration N. Valid values of N: 1 to 20. For more information about the valid values of this parameter, see [Instance families](~~25378~~).
@NameInMap(value="MaxPrice") public Double maxPrice
The maximum price of preemptible instances in extended configuration N.
> If you set one or more other `LaunchTemplateConfig.N.*` parameters, you must also set the `LaunchTemplateConfig.N.MaxPrice` parameter.
@NameInMap(value="MaxQuantity") public Integer maxQuantity
@NameInMap(value="Priority") public Integer priority
The priority of extended configuration N. A value of 0 indicates the highest priority. Valid values: 0 to ∞.
@NameInMap(value="VSwitchId") public String vSwitchId
The ID of the vSwitch in extended configuration N. The zone of the ECS instances created from the extended configuration is determined by the vSwitch.
> If you set one or more other `LaunchTemplateConfig.N.*` parameters, you must also set the `LaunchTemplateConfig.N.VSwitchId` parameter.
@NameInMap(value="WeightedCapacity") public Double weightedCapacity
The weight of the instance type specified in extended configuration N. A greater weight indicates that a single instance has more computing power and that fewer instances are required. The value must be greater than 0.
The weight is calculated based on the computing power of the instance type and the minimum computing power of a single instance in the cluster to be created by the auto provisioning group. For example, assume that the minimum computing power of a single instance is 8 vCPUs and 60 GiB of memory.
* For an instance type with 8 vCPUs and 60 GiB of memory, you can set the weight to 1.
* For an instance type with 16 vCPUs and 120 GiB of memory, you can set the weight to 2.
public CreateAutoProvisioningGroupRequestLaunchTemplateConfig()
public static CreateAutoProvisioningGroupRequest.CreateAutoProvisioningGroupRequestLaunchTemplateConfig build(Map<String,?> map) throws Exception
Exception
public CreateAutoProvisioningGroupRequest.CreateAutoProvisioningGroupRequestLaunchTemplateConfig setArchitectures(List<String> architectures)
public CreateAutoProvisioningGroupRequest.CreateAutoProvisioningGroupRequestLaunchTemplateConfig setBurstablePerformance(String burstablePerformance)
public String getBurstablePerformance()
public CreateAutoProvisioningGroupRequest.CreateAutoProvisioningGroupRequestLaunchTemplateConfig setCores(List<Integer> cores)
public CreateAutoProvisioningGroupRequest.CreateAutoProvisioningGroupRequestLaunchTemplateConfig setExcludedInstanceTypes(List<String> excludedInstanceTypes)
public CreateAutoProvisioningGroupRequest.CreateAutoProvisioningGroupRequestLaunchTemplateConfig setInstanceFamilyLevel(String instanceFamilyLevel)
public String getInstanceFamilyLevel()
public CreateAutoProvisioningGroupRequest.CreateAutoProvisioningGroupRequestLaunchTemplateConfig setInstanceType(String instanceType)
public String getInstanceType()
public CreateAutoProvisioningGroupRequest.CreateAutoProvisioningGroupRequestLaunchTemplateConfig setMaxPrice(Double maxPrice)
public Double getMaxPrice()
public CreateAutoProvisioningGroupRequest.CreateAutoProvisioningGroupRequestLaunchTemplateConfig setMaxQuantity(Integer maxQuantity)
public Integer getMaxQuantity()
public CreateAutoProvisioningGroupRequest.CreateAutoProvisioningGroupRequestLaunchTemplateConfig setMemories(List<Float> memories)
public CreateAutoProvisioningGroupRequest.CreateAutoProvisioningGroupRequestLaunchTemplateConfig setPriority(Integer priority)
public Integer getPriority()
public CreateAutoProvisioningGroupRequest.CreateAutoProvisioningGroupRequestLaunchTemplateConfig setVSwitchId(String vSwitchId)
public String getVSwitchId()
public CreateAutoProvisioningGroupRequest.CreateAutoProvisioningGroupRequestLaunchTemplateConfig setWeightedCapacity(Double weightedCapacity)
public Double getWeightedCapacity()
Copyright © 2023. All rights reserved.