public class InquiryPriceRunInstancesRequest extends AbstractModel
Constructor and Description |
---|
InquiryPriceRunInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getClientToken()
Get A string used to ensure the idempotency of the request, which is generated by the user and must be unique to each request.
|
DataDisk[] |
getDataDisks()
Get The configuration information of the instance data disk.
|
EnhancedService |
getEnhancedService()
Get Enhanced services.
|
String |
getHostName()
Get Host name of the CVM.
|
String |
getHpcClusterId()
Get HPC cluster ID.
|
String |
getImageId()
Get [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`.
|
InstanceChargePrepaid |
getInstanceChargePrepaid()
Get Configuration of prepaid instances.
|
String |
getInstanceChargeType()
Get The instance [billing method](https://intl.cloud.tencent.com/document/product/213/2180?from_cn_redirect=1).
POSTPAID_BY_HOUR: hourly, pay-as-you-go Default value: POSTPAID_BY_HOUR. |
Long |
getInstanceCount()
Get Number of instances to be purchased.
|
InstanceMarketOptionsRequest |
getInstanceMarketOptions()
Get The market options of the instance.
|
String |
getInstanceName()
Get Instance name to be displayed.
If this parameter is not specified, "Unnamed" will be displayed by default.If you purchase multiple instances at the same time and specify a pattern string `{R:x}`, numbers `[x, x+n-1]` will be generated, where `n` represents the number of instances purchased. |
String |
getInstanceType()
Get The instance model.
|
InternetAccessible |
getInternetAccessible()
Get Configuration of public network bandwidth.
|
LoginSettings |
getLoginSettings()
Get Login settings of the instance.
|
Placement |
getPlacement()
Get Location of the instance.
|
String[] |
getSecurityGroupIds()
Get Security groups to which the instance belongs.
|
SystemDisk |
getSystemDisk()
Get System disk configuration of the instance.
|
TagSpecification[] |
getTagSpecification()
Get The tag description list.
|
VirtualPrivateCloud |
getVirtualPrivateCloud()
Get VPC configurations.
|
void |
setClientToken(String ClientToken)
Set A string used to ensure the idempotency of the request, which is generated by the user and must be unique to each request.
|
void |
setDataDisks(DataDisk[] DataDisks)
Set The configuration information of the instance data disk.
|
void |
setEnhancedService(EnhancedService EnhancedService)
Set Enhanced services.
|
void |
setHostName(String HostName)
Set Host name of the CVM.
|
void |
setHpcClusterId(String HpcClusterId)
Set HPC cluster ID.
|
void |
setImageId(String ImageId)
Set [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`.
|
void |
setInstanceChargePrepaid(InstanceChargePrepaid InstanceChargePrepaid)
Set Configuration of prepaid instances.
|
void |
setInstanceChargeType(String InstanceChargeType)
Set The instance [billing method](https://intl.cloud.tencent.com/document/product/213/2180?from_cn_redirect=1).
POSTPAID_BY_HOUR: hourly, pay-as-you-go Default value: POSTPAID_BY_HOUR. |
void |
setInstanceCount(Long InstanceCount)
Set Number of instances to be purchased.
|
void |
setInstanceMarketOptions(InstanceMarketOptionsRequest InstanceMarketOptions)
Set The market options of the instance.
|
void |
setInstanceName(String InstanceName)
Set Instance name to be displayed.
If this parameter is not specified, "Unnamed" will be displayed by default.If you purchase multiple instances at the same time and specify a pattern string `{R:x}`, numbers `[x, x+n-1]` will be generated, where `n` represents the number of instances purchased. |
void |
setInstanceType(String InstanceType)
Set The instance model.
|
void |
setInternetAccessible(InternetAccessible InternetAccessible)
Set Configuration of public network bandwidth.
|
void |
setLoginSettings(LoginSettings LoginSettings)
Set Login settings of the instance.
|
void |
setPlacement(Placement Placement)
Set Location of the instance.
|
void |
setSecurityGroupIds(String[] SecurityGroupIds)
Set Security groups to which the instance belongs.
|
void |
setSystemDisk(SystemDisk SystemDisk)
Set System disk configuration of the instance.
|
void |
setTagSpecification(TagSpecification[] TagSpecification)
Set The tag description list.
|
void |
setVirtualPrivateCloud(VirtualPrivateCloud VirtualPrivateCloud)
Set VPC configurations.
|
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 Placement getPlacement()
public void setPlacement(Placement Placement)
Placement
- Location of the instance. You can use this parameter to specify the attributes of the instance, such as its availability zone and project.public String getImageId()
public void setImageId(String ImageId)
ImageId
- [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are four types of images: public String getInstanceChargeType()
public void setInstanceChargeType(String InstanceChargeType)
InstanceChargeType
- The instance [billing method](https://intl.cloud.tencent.com/document/product/213/2180?from_cn_redirect=1).public InstanceChargePrepaid getInstanceChargePrepaid()
public void setInstanceChargePrepaid(InstanceChargePrepaid InstanceChargePrepaid)
InstanceChargePrepaid
- Configuration of prepaid instances. You can use the parameter to specify the attributes of prepaid instances, such as the subscription period and the auto-renewal plan. This parameter is required for prepaid instances.public String getInstanceType()
public void setInstanceType(String InstanceType)
InstanceType
- The instance model. Different resource specifications are specified for different models. For specific values, call [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) to retrieve the latest specification list or refer to [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). If the parameter is not specified, `S1.SMALL1` will be used by default.public SystemDisk getSystemDisk()
public void setSystemDisk(SystemDisk SystemDisk)
SystemDisk
- System disk configuration of the instance. If this parameter is not specified, the default value will be used.public DataDisk[] getDataDisks()
public void setDataDisks(DataDisk[] DataDisks)
DataDisks
- The configuration information of the instance data disk. If this parameter is not specified, no data disk will be purchased by default. When purchasing, you can specify 21 data disks, which can contain at most 1 LOCAL_BASIC data disk or LOCAL_SSD data disk, and at most 20 CLOUD_BASIC data disks, CLOUD_PREMIUM data disks, or CLOUD_SSD data disks.public VirtualPrivateCloud getVirtualPrivateCloud()
public void setVirtualPrivateCloud(VirtualPrivateCloud VirtualPrivateCloud)
VirtualPrivateCloud
- VPC configurations. You can use this parameter to specify the VPC ID, subnet ID, etc. If this parameter is not specified, the basic network will be used by default. If a VPC IP is specified in this parameter, the `InstanceCount` parameter can only be 1.public InternetAccessible getInternetAccessible()
public void setInternetAccessible(InternetAccessible InternetAccessible)
InternetAccessible
- Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default.public Long getInstanceCount()
public void setInstanceCount(Long InstanceCount)
InstanceCount
- Number of instances to be purchased. Value range: [1, 100]; default value: 1. The specified number of instances to be purchased cannot exceed the remaining quota allowed for the user. For more information on quota, see [CVM instance purchase limit](https://intl.cloud.tencent.com/document/product/213/2664).public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Instance name to be displayed.public LoginSettings getLoginSettings()
public void setLoginSettings(LoginSettings LoginSettings)
LoginSettings
- Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center.public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds
- Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response. If this parameter is not specified, the instance will not be associated with any security group by default.public EnhancedService getEnhancedService()
public void setEnhancedService(EnhancedService EnhancedService)
EnhancedService
- Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Monitor and Cloud Security. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default.public String getClientToken()
public void setClientToken(String ClientToken)
ClientToken
- A string used to ensure the idempotency of the request, which is generated by the user and must be unique to each request. The maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed. public String getHostName()
public void setHostName(String HostName)
HostName
- Host name of the CVM. public TagSpecification[] getTagSpecification()
public void setTagSpecification(TagSpecification[] TagSpecification)
TagSpecification
- The tag description list. This parameter is used to bind a tag to a resource instance. A tag can only be bound to CVM instances.public InstanceMarketOptionsRequest getInstanceMarketOptions()
public void setInstanceMarketOptions(InstanceMarketOptionsRequest InstanceMarketOptions)
InstanceMarketOptions
- The market options of the instance.public String getHpcClusterId()
public void setHpcClusterId(String HpcClusterId)
HpcClusterId
- HPC cluster ID.Copyright © 2020. All rights reserved.