public class CreateSpotDeviceRequest extends AbstractModel
Constructor and Description |
---|
CreateSpotDeviceRequest() |
CreateSpotDeviceRequest(CreateSpotDeviceRequest 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 |
---|---|
String |
getComputeType()
Get 计算单元类型, 如v3.c2.medium,更详细的ComputeType参考[竞价实例产品文档](https://cloud.tencent.com/document/product/386/30256)
|
Long |
getGoodsNum()
Get 购买的计算单元个数
|
Long |
getOsTypeId()
Get 操作系统类型ID
|
String |
getPasswd()
Get 设置竞价实例密码。可选参数,没有指定会生成随机密码
|
Float |
getSpotPriceLimit()
Get 用户设置的价格。当为SpotWithPriceLimit竞价策略时有效
|
String |
getSpotStrategy()
Get 出价策略。可取值为SpotWithPriceLimit和SpotAsPriceGo。SpotWithPriceLimit,用户设置价格上限,需要传SpotPriceLimit参数, 如果市场价高于用户的指定价格,则购买不成功; SpotAsPriceGo 是随市场价的策略。
|
String |
getSubnetId()
Get 子网ID
|
String |
getVpcId()
Get 私有网络ID
|
String |
getZone()
Get 可用区名称。如ap-guangzhou-bls-1, 通过DescribeRegions获取
|
void |
setComputeType(String ComputeType)
Set 计算单元类型, 如v3.c2.medium,更详细的ComputeType参考[竞价实例产品文档](https://cloud.tencent.com/document/product/386/30256)
|
void |
setGoodsNum(Long GoodsNum)
Set 购买的计算单元个数
|
void |
setOsTypeId(Long OsTypeId)
Set 操作系统类型ID
|
void |
setPasswd(String Passwd)
Set 设置竞价实例密码。可选参数,没有指定会生成随机密码
|
void |
setSpotPriceLimit(Float SpotPriceLimit)
Set 用户设置的价格。当为SpotWithPriceLimit竞价策略时有效
|
void |
setSpotStrategy(String SpotStrategy)
Set 出价策略。可取值为SpotWithPriceLimit和SpotAsPriceGo。SpotWithPriceLimit,用户设置价格上限,需要传SpotPriceLimit参数, 如果市场价高于用户的指定价格,则购买不成功; SpotAsPriceGo 是随市场价的策略。
|
void |
setSubnetId(String SubnetId)
Set 子网ID
|
void |
setVpcId(String VpcId)
Set 私有网络ID
|
void |
setZone(String Zone)
Set 可用区名称。如ap-guangzhou-bls-1, 通过DescribeRegions获取
|
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 CreateSpotDeviceRequest()
public CreateSpotDeviceRequest(CreateSpotDeviceRequest source)
public String getZone()
public void setZone(String Zone)
Zone
- 可用区名称。如ap-guangzhou-bls-1, 通过DescribeRegions获取public String getComputeType()
public void setComputeType(String ComputeType)
ComputeType
- 计算单元类型, 如v3.c2.medium,更详细的ComputeType参考[竞价实例产品文档](https://cloud.tencent.com/document/product/386/30256)public Long getOsTypeId()
public void setOsTypeId(Long OsTypeId)
OsTypeId
- 操作系统类型IDpublic String getVpcId()
public void setVpcId(String VpcId)
VpcId
- 私有网络IDpublic String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- 子网IDpublic Long getGoodsNum()
public void setGoodsNum(Long GoodsNum)
GoodsNum
- 购买的计算单元个数public String getSpotStrategy()
public void setSpotStrategy(String SpotStrategy)
SpotStrategy
- 出价策略。可取值为SpotWithPriceLimit和SpotAsPriceGo。SpotWithPriceLimit,用户设置价格上限,需要传SpotPriceLimit参数, 如果市场价高于用户的指定价格,则购买不成功; SpotAsPriceGo 是随市场价的策略。public Float getSpotPriceLimit()
public void setSpotPriceLimit(Float SpotPriceLimit)
SpotPriceLimit
- 用户设置的价格。当为SpotWithPriceLimit竞价策略时有效public String getPasswd()
public void setPasswd(String Passwd)
Passwd
- 设置竞价实例密码。可选参数,没有指定会生成随机密码Copyright © 2021. All rights reserved.