public class SpotStockPreview
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Integer |
availableQuantity |
String |
clusterId |
String |
instanceType
example:
ml.gu8xf.8xlarge-gu108
|
Float |
spotDiscount
example:
0.1
|
String |
stockStatus
example:
WithStock
|
| 构造器和说明 |
|---|
SpotStockPreview() |
| 限定符和类型 | 方法和说明 |
|---|---|
static SpotStockPreview |
build(Map<String,?> map) |
Integer |
getAvailableQuantity() |
String |
getClusterId() |
String |
getInstanceType() |
Float |
getSpotDiscount() |
String |
getStockStatus() |
SpotStockPreview |
setAvailableQuantity(Integer availableQuantity) |
SpotStockPreview |
setClusterId(String clusterId) |
SpotStockPreview |
setInstanceType(String instanceType) |
SpotStockPreview |
setSpotDiscount(Float spotDiscount) |
SpotStockPreview |
setStockStatus(String stockStatus) |
@NameInMap(value="AvailableQuantity") public Integer availableQuantity
@NameInMap(value="ClusterId") public String clusterId
@NameInMap(value="InstanceType") public String instanceType
ml.gu8xf.8xlarge-gu108
@NameInMap(value="SpotDiscount") public Float spotDiscount
0.1
@NameInMap(value="StockStatus") public String stockStatus
WithStock
public static SpotStockPreview build(Map<String,?> map) throws Exception
Exceptionpublic SpotStockPreview setAvailableQuantity(Integer availableQuantity)
public Integer getAvailableQuantity()
public SpotStockPreview setClusterId(String clusterId)
public String getClusterId()
public SpotStockPreview setInstanceType(String instanceType)
public String getInstanceType()
public SpotStockPreview setSpotDiscount(Float spotDiscount)
public Float getSpotDiscount()
public SpotStockPreview setStockStatus(String stockStatus)
public String getStockStatus()
Copyright © 2026. All rights reserved.