类 CreateInstanceRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bcc.model.instance.CreateInstanceRequest
-
public class CreateInstanceRequest extends AbstractBceRequest
The request for creating a newly instance.
-
-
构造器概要
构造器 构造器 说明 CreateInstanceRequest()
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 StringgetAdminPass()StringgetAspId()intgetAutoRenewTime()StringgetAutoRenewTimeUnit()StringgetBidModel()StringgetBidPrice()BillinggetBilling()intgetCardCount()StringgetClientToken()intgetCpuCount()List<CreateCdsModel>getCreateCdsList()StringgetDedicatedHostId()StringgetDeployId()List<EphemeralDisk>getEphemeralDisks()FpgaCardTypegetFpgaCard()GpuCardTypegetGpuCard()StringgetHostname()StringgetImageId()StringgetInstanceType()StringgetInternetChargeType()StringgetKeypairId()intgetLocalDiskSizeInGB()已过时。intgetMemoryCapacityInGB()StringgetName()intgetNetworkCapacityInMbps()intgetPurchaseCount()intgetRootDiskSizeInGb()StringgetRootDiskStorageType()StringgetSecurityGroupId()StringgetSpec()StringgetSubnetId()List<TagModel>getTags()StringgetZoneName()booleanisAutoSeqSuffix()booleanisCdsAutoRenew()booleanisRelationTag()voidsetAdminPass(String adminPass)voidsetAspId(String aspId)voidsetAutoRenewTime(int autoRenewTime)voidsetAutoRenewTimeUnit(String autoRenewTimeUnit)voidsetAutoSeqSuffix(boolean autoSeqSuffix)voidsetBidModel(String bidModel)voidsetBidPrice(String bidPrice)voidsetBilling(Billing billing)voidsetCardCount(int cardCount)voidsetCdsAutoRenew(boolean cdsAutoRenew)voidsetClientToken(String clientToken)voidsetCpuCount(int cpuCount)voidsetCreateCdsList(List<CreateCdsModel> createCdsList)voidsetDedicatedHostId(String dedicatedHostId)voidsetDeployId(String deployId)voidsetEphemeralDisks(List<EphemeralDisk> ephemeralDisks)voidsetFpgaCard(FpgaCardType fpgaCard)voidsetGpuCard(GpuCardType gpuCard)voidsetHostname(String hostname)voidsetImageId(String imageId)voidsetInstanceType(String instanceType)voidsetInternetChargeType(String internetChargeType)voidsetKeypairId(String keypairId)voidsetLocalDiskSizeInGB(int localDiskSizeInGB)已过时。voidsetMemoryCapacityInGB(int memoryCapacityInGB)voidsetName(String name)voidsetNetworkCapacityInMbps(int networkCapacityInMbps)voidsetPurchaseCount(int purchaseCount)voidsetRelationTag(boolean relationTag)voidsetRootDiskSizeInGb(int rootDiskSizeInGb)voidsetRootDiskStorageType(String rootDiskStorageType)voidsetSecurityGroupId(String securityGroupId)voidsetSpec(String spec)voidsetSubnetId(String subnetId)voidsetTags(List<TagModel> tags)voidsetZoneName(String zoneName)CreateInstanceRequestwithAdminPass(String adminPass)Configure adminPass for the request.CreateInstanceRequestwithAspId(String aspId)Configure the aspId for the requestCreateInstanceRequestwithAutoRenewTime(int autoRenewTime)Configure the autoRenewTime for the requestCreateInstanceRequestwithAutoRenewTimeUnit(String autoRenewTimeUnit)Configure the autoRenewTimeUnit for the requestCreateInstanceRequestwithAutoSeqSuffix(boolean autoSeqSuffix)CreateInstanceRequestwithBidModel(String bidModel)Configure the bidModel for the requestCreateInstanceRequestwithBidPrice(String bidPrice)Configure the bidPrice for the requestCreateInstanceRequestwithBilling(Billing billing)Configure billing for the request.CreateInstanceRequestwithCardCount(int cardCount)Configure the card count of gpuCardType or gpgaCardType for the request, if creating gpu / fpga instance, one or more card count must be specified.CreateInstanceRequestwithCdsAutoRenew(boolean cdsAutoRenew)Configure the cdsAutoRenew for the requestCreateInstanceRequestwithClientToken(String clientToken)Configure optional client token for the request.CreateInstanceRequestwithCpuCount(int cpuCount)CreateInstanceRequestwithCreateCdsList(List<CreateCdsModel> createCdsList)Configure createCdsList for the request.CreateInstanceRequestwithDedicatedHostId(String dedicatedHostId)CreateInstanceRequestwithDeployId(String deployId)Configure the deployId for the requestCreateInstanceRequestwithEphemeralDisks(List<EphemeralDisk> ephemeralDisks)CreateInstanceRequestwithFpgaCard(FpgaCardType fpgaCard)Configure the fpgaCard for the request, see all of supported fpga card type inFpgaCardTypeCreateInstanceRequestwithGpuCard(GpuCardType gpuCard)Configure the gpuCard for the request, see all of supported gpu card type inGpuCardTypeCreateInstanceRequestwithHostname(String hostname)CreateInstanceRequestwithImageId(String imageId)Configure imageId for the request.CreateInstanceRequestwithInstanceType(String instanceType)Configure instanceType for the request.CreateInstanceRequestwithInternetChargeType(String internetChargeType)Configure the internetChargeType for the requestCreateInstanceRequestwithKeypairId(String keypairId)Configure the keypairId for the requestCreateInstanceRequestwithLocalDiskSizeInGB(int localDiskSizeInGB)已过时。CreateInstanceRequestwithMemoryCapacityInGB(int memoryCapacityInGB)CreateInstanceRequestwithName(String name)Configure name for the request.CreateInstanceRequestwithNetworkCapacityInMbps(int networkCapacityInMbps)Configure networkCapacityInMbps for the request.CreateInstanceRequestwithPurchaseCount(int purchaseCount)Configure purchaseCount for the request.CreateInstanceRequestwithRelationTag(boolean relationTag)Configure relationTag for the request.CreateInstanceRequestwithRequestCredentials(BceCredentials credentials)Configure request credential for the request.CreateInstanceRequestwithRootDiskSizeInGb(int rootDiskSizeInGb)CreateInstanceRequestwithRootDiskStorageType(String rootDiskStorageType)CreateInstanceRequestwithSecurityGroupId(String securityGroupId)Configure the securityGroupId for the requestCreateInstanceRequestwithSpec(String Spec)CreateInstanceRequestwithSubnetId(String subnetId)Configure the subnetId for the requestCreateInstanceRequestwithTags(List<TagModel> tags)Configure tags for the request.CreateInstanceRequestwithZoneName(String zoneName)Configure the zone name for the request-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
方法详细资料
-
withClientToken
public CreateInstanceRequest withClientToken(String clientToken)
Configure optional client token for the request. The request will be idempotent if client token is provided. If the clientToken is not specified by the user, a random String generated by default algorithm will be used.- 参数:
clientToken- An ASCII string whose length is less than 64. See more detail at BCE API doc- 返回:
- CreateInstanceRequest with specific clientToken
-
getClientToken
public String getClientToken()
-
setClientToken
public void setClientToken(String clientToken)
-
withInstanceType
public CreateInstanceRequest withInstanceType(String instanceType)
Configure instanceType for the request.- 参数:
instanceType- The specified Specification to create the instance. See more detail on BCE API doc- 返回:
- CreateInstanceRequest with specific instanceType
-
getInstanceType
public String getInstanceType()
-
setInstanceType
public void setInstanceType(String instanceType)
-
withSpec
public CreateInstanceRequest withSpec(String Spec)
-
getSpec
public String getSpec()
-
setSpec
public void setSpec(String spec)
-
withCpuCount
public CreateInstanceRequest withCpuCount(int cpuCount)
-
getCpuCount
public int getCpuCount()
-
setCpuCount
public void setCpuCount(int cpuCount)
-
withMemoryCapacityInGB
public CreateInstanceRequest withMemoryCapacityInGB(int memoryCapacityInGB)
-
getMemoryCapacityInGB
public int getMemoryCapacityInGB()
-
setMemoryCapacityInGB
public void setMemoryCapacityInGB(int memoryCapacityInGB)
-
withEphemeralDisks
public CreateInstanceRequest withEphemeralDisks(List<EphemeralDisk> ephemeralDisks)
-
withRootDiskSizeInGb
public CreateInstanceRequest withRootDiskSizeInGb(int rootDiskSizeInGb)
-
getRootDiskSizeInGb
public int getRootDiskSizeInGb()
-
setRootDiskSizeInGb
public void setRootDiskSizeInGb(int rootDiskSizeInGb)
-
withRootDiskStorageType
public CreateInstanceRequest withRootDiskStorageType(String rootDiskStorageType)
-
getRootDiskStorageType
public String getRootDiskStorageType()
-
setRootDiskStorageType
public void setRootDiskStorageType(String rootDiskStorageType)
-
getEphemeralDisks
public List<EphemeralDisk> getEphemeralDisks()
-
setEphemeralDisks
public void setEphemeralDisks(List<EphemeralDisk> ephemeralDisks)
-
withImageId
public CreateInstanceRequest withImageId(String imageId)
Configure imageId for the request.- 参数:
imageId- The specified image id to create the instance.- 返回:
- CreateInstanceRequest with specific imageId
-
getImageId
public String getImageId()
-
setImageId
public void setImageId(String imageId)
-
getLocalDiskSizeInGB
@Deprecated public int getLocalDiskSizeInGB()
已过时。
-
setLocalDiskSizeInGB
@Deprecated public void setLocalDiskSizeInGB(int localDiskSizeInGB)
已过时。
-
withLocalDiskSizeInGB
@Deprecated public CreateInstanceRequest withLocalDiskSizeInGB(int localDiskSizeInGB)
已过时。Configure localDiskSizeInGB for the request.- 参数:
localDiskSizeInGB- The optional parameter to specify the temporary disk size in GB.- 返回:
- CreateInstanceRequest with specific localDiskSizeInGB
-
getCreateCdsList
public List<CreateCdsModel> getCreateCdsList()
-
setCreateCdsList
public void setCreateCdsList(List<CreateCdsModel> createCdsList)
-
withCreateCdsList
public CreateInstanceRequest withCreateCdsList(List<CreateCdsModel> createCdsList)
Configure createCdsList for the request.- 参数:
createCdsList- The optional list of volume detail info to create.- 返回:
- CreateInstanceRequest with specific createCdsList
-
getNetworkCapacityInMbps
public int getNetworkCapacityInMbps()
-
setNetworkCapacityInMbps
public void setNetworkCapacityInMbps(int networkCapacityInMbps)
-
withNetworkCapacityInMbps
public CreateInstanceRequest withNetworkCapacityInMbps(int networkCapacityInMbps)
Configure networkCapacityInMbps for the request.- 参数:
networkCapacityInMbps- The optional parameter to specify the bandwidth in Mbps for the new instance.- 返回:
- CreateInstanceRequest with specific networkCapacityInMbps
-
getPurchaseCount
public int getPurchaseCount()
-
setPurchaseCount
public void setPurchaseCount(int purchaseCount)
-
withPurchaseCount
public CreateInstanceRequest withPurchaseCount(int purchaseCount)
Configure purchaseCount for the request.- 参数:
purchaseCount- The number of instance to buy, the default value is 1.- 返回:
- CreateInstanceRequest with specific purchaseCount
-
getName
public String getName()
-
setName
public void setName(String name)
-
getHostname
public String getHostname()
-
setHostname
public void setHostname(String hostname)
-
withHostname
public CreateInstanceRequest withHostname(String hostname)
-
isAutoSeqSuffix
public boolean isAutoSeqSuffix()
-
setAutoSeqSuffix
public void setAutoSeqSuffix(boolean autoSeqSuffix)
-
withAutoSeqSuffix
public CreateInstanceRequest withAutoSeqSuffix(boolean autoSeqSuffix)
-
withName
public CreateInstanceRequest withName(String name)
Configure name for the request.- 参数:
name- The optional parameter to desc the instance that will be created.- 返回:
- CreateInstanceRequest with specific name
-
getAdminPass
public String getAdminPass()
-
setAdminPass
public void setAdminPass(String adminPass)
-
withAdminPass
public CreateInstanceRequest withAdminPass(String adminPass)
Configure adminPass for the request.- 参数:
adminPass- The optional parameter to specify the password for the instance. The adminPass will be encrypted in AES-128 algorithm with the substring of the former 16 characters of user SecretKey. See more detail on BCE API doc- 返回:
- CreateInstanceRequest with specific adminPass
-
getBilling
public Billing getBilling()
-
setBilling
public void setBilling(Billing billing)
-
withBilling
public CreateInstanceRequest withBilling(Billing billing)
Configure billing for the request.- 参数:
billing- The detail model to specify the billing.- 返回:
- CreateInstanceRequest with specific billing
-
isRelationTag
public boolean isRelationTag()
-
setRelationTag
public void setRelationTag(boolean relationTag)
-
withRelationTag
public CreateInstanceRequest withRelationTag(boolean relationTag)
Configure relationTag for the request.- 参数:
relationTag- Indicates whether the tag is bound to all relation instances.- 返回:
- CreateInstanceRequest with specific relationTag
-
withTags
public CreateInstanceRequest withTags(List<TagModel> tags)
Configure tags for the request.- 参数:
tags- The list of tag to be bonded.- 返回:
- CreateInstanceRequest with specific tags
-
withDedicatedHostId
public CreateInstanceRequest withDedicatedHostId(String dedicatedHostId)
-
getDedicatedHostId
public String getDedicatedHostId()
-
setDedicatedHostId
public void setDedicatedHostId(String dedicatedHostId)
-
withZoneName
public CreateInstanceRequest withZoneName(String zoneName)
Configure the zone name for the request- 参数:
zoneName-- 返回:
- CreateInstanceRequest with specified zone name
-
getZoneName
public String getZoneName()
-
setZoneName
public void setZoneName(String zoneName)
-
withSubnetId
public CreateInstanceRequest withSubnetId(String subnetId)
Configure the subnetId for the request- 参数:
subnetId-- 返回:
- CreateInstanceRequest with specified subnetId
-
getSubnetId
public String getSubnetId()
-
setSubnetId
public void setSubnetId(String subnetId)
-
withSecurityGroupId
public CreateInstanceRequest withSecurityGroupId(String securityGroupId)
Configure the securityGroupId for the request- 参数:
securityGroupId-- 返回:
- CreateInstanceRequest with specified securityGroupId
-
getSecurityGroupId
public String getSecurityGroupId()
-
setSecurityGroupId
public void setSecurityGroupId(String securityGroupId)
-
getGpuCard
public GpuCardType getGpuCard()
-
setGpuCard
public void setGpuCard(GpuCardType gpuCard)
-
withGpuCard
public CreateInstanceRequest withGpuCard(GpuCardType gpuCard)
Configure the gpuCard for the request, see all of supported gpu card type inGpuCardType- 参数:
gpuCard-- 返回:
- CreateInstanceRequest with specified gpuCard
-
getFpgaCard
public FpgaCardType getFpgaCard()
-
setFpgaCard
public void setFpgaCard(FpgaCardType fpgaCard)
-
withFpgaCard
public CreateInstanceRequest withFpgaCard(FpgaCardType fpgaCard)
Configure the fpgaCard for the request, see all of supported fpga card type inFpgaCardType- 参数:
fpgaCard-- 返回:
- CreateInstanceRequest with specified fpgaCard
-
getCardCount
public int getCardCount()
-
setCardCount
public void setCardCount(int cardCount)
-
withCardCount
public CreateInstanceRequest withCardCount(int cardCount)
Configure the card count of gpuCardType or gpgaCardType for the request, if creating gpu / fpga instance, one or more card count must be specified.- 参数:
cardCount-- 返回:
- CreateInstanceRequest with card count of gpuCardType or gpgaCardTyp.
-
getAspId
public String getAspId()
-
setAspId
public void setAspId(String aspId)
-
withAspId
public CreateInstanceRequest withAspId(String aspId)
Configure the aspId for the request- 参数:
aspId- The id of the asp.- 返回:
- CreateInstanceRequest with specified aspId
-
getAutoRenewTime
public int getAutoRenewTime()
-
setAutoRenewTime
public void setAutoRenewTime(int autoRenewTime)
-
withAutoRenewTime
public CreateInstanceRequest withAutoRenewTime(int autoRenewTime)
Configure the autoRenewTime for the request- 参数:
autoRenewTime- The specified auto renew time length.- 返回:
- CreateInstanceRequest with specified autoRenewTime
-
getAutoRenewTimeUnit
public String getAutoRenewTimeUnit()
-
setAutoRenewTimeUnit
public void setAutoRenewTimeUnit(String autoRenewTimeUnit)
-
withAutoRenewTimeUnit
public CreateInstanceRequest withAutoRenewTimeUnit(String autoRenewTimeUnit)
Configure the autoRenewTimeUnit for the request- 参数:
autoRenewTimeUnit- The specified auto renew time unit. The unit can be "month" or "year".- 返回:
- CreateInstanceRequest with specified autoRenewTimeUnit
-
isCdsAutoRenew
public boolean isCdsAutoRenew()
-
setCdsAutoRenew
public void setCdsAutoRenew(boolean cdsAutoRenew)
-
withCdsAutoRenew
public CreateInstanceRequest withCdsAutoRenew(boolean cdsAutoRenew)
Configure the cdsAutoRenew for the request- 参数:
cdsAutoRenew- The option param to indicate that whether the cds is auto renew or not. Iftrue, it means the instance is auto renew.- 返回:
- CreateInstanceRequest with specified cdsAutoRenew
-
getDeployId
public String getDeployId()
-
setDeployId
public void setDeployId(String deployId)
-
withDeployId
public CreateInstanceRequest withDeployId(String deployId)
Configure the deployId for the request- 参数:
deployId- The specified deployment set id.- 返回:
- CreateInstanceRequest with specified deployId
-
getInternetChargeType
public String getInternetChargeType()
-
setInternetChargeType
public void setInternetChargeType(String internetChargeType)
-
withInternetChargeType
public CreateInstanceRequest withInternetChargeType(String internetChargeType)
Configure the internetChargeType for the request- 参数:
internetChargeType- The specified internet charge type.- 返回:
- CreateInstanceRequest with specified internetChargeType
-
getKeypairId
public String getKeypairId()
-
setKeypairId
public void setKeypairId(String keypairId)
-
withKeypairId
public CreateInstanceRequest withKeypairId(String keypairId)
Configure the keypairId for the request- 参数:
keypairId- The specified keypair id.- 返回:
- CreateInstanceRequest with specified keypairId
-
getBidModel
public String getBidModel()
-
setBidModel
public void setBidModel(String bidModel)
-
withBidModel
public CreateInstanceRequest withBidModel(String bidModel)
Configure the bidModel for the request- 参数:
bidModel- The specified bidModel. The value can be "market" or "custom".- 返回:
- CreateInstanceRequest with specified bidModel
-
getBidPrice
public String getBidPrice()
-
setBidPrice
public void setBidPrice(String bidPrice)
-
withBidPrice
public CreateInstanceRequest withBidPrice(String bidPrice)
Configure the bidPrice for the request- 参数:
bidPrice- The specified bidPrice. Only the value of bidModel is custom, the param works.- 返回:
- CreateInstanceRequest with specified bidPrice
-
withRequestCredentials
public CreateInstanceRequest withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.- 指定者:
withRequestCredentials在类中AbstractBceRequest- 参数:
credentials- a valid instance of BceCredentials.- 返回:
- CreateInstanceRequest with credentials.
-
-