public class CreateInstancesRequest extends AbstractModel
Constructor and Description |
---|
CreateInstancesRequest() |
CreateInstancesRequest(CreateInstancesRequest 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 |
---|---|
Boolean |
getAutoVoucher()
Get Whether to use the vouchers automatically.
|
String |
getBlueprintId()
Get Image ID.
|
String |
getBundleId()
Get Bundle ID.
|
String |
getClientToken()
Get A unique string supplied by the client to ensure that the request is idempotent.
|
DockerContainerConfiguration[] |
getContainers()
Get Configuration of the containers to create
|
Boolean |
getDryRun()
Get Whether the request is a dry run only.
|
InstanceChargePrepaid |
getInstanceChargePrepaid()
Get Monthly subscription information for the instance, including the purchase period, setting of auto-renewal, etc.
|
Long |
getInstanceCount()
Get Number of the instances to purchase.
|
String |
getInstanceName()
Get Instance display name.
|
LoginConfiguration |
getLoginConfiguration()
Get Login password of the instance.
|
String[] |
getZones()
Get List of availability zones.
|
void |
setAutoVoucher(Boolean AutoVoucher)
Set Whether to use the vouchers automatically.
|
void |
setBlueprintId(String BlueprintId)
Set Image ID.
|
void |
setBundleId(String BundleId)
Set Bundle ID.
|
void |
setClientToken(String ClientToken)
Set A unique string supplied by the client to ensure that the request is idempotent.
|
void |
setContainers(DockerContainerConfiguration[] Containers)
Set Configuration of the containers to create
|
void |
setDryRun(Boolean DryRun)
Set Whether the request is a dry run only.
|
void |
setInstanceChargePrepaid(InstanceChargePrepaid InstanceChargePrepaid)
Set Monthly subscription information for the instance, including the purchase period, setting of auto-renewal, etc.
|
void |
setInstanceCount(Long InstanceCount)
Set Number of the instances to purchase.
|
void |
setInstanceName(String InstanceName)
Set Instance display name.
|
void |
setLoginConfiguration(LoginConfiguration LoginConfiguration)
Set Login password of the instance.
|
void |
setZones(String[] Zones)
Set List of availability zones.
|
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 CreateInstancesRequest()
public CreateInstancesRequest(CreateInstancesRequest source)
public String getBundleId()
public void setBundleId(String BundleId)
BundleId
- Bundle ID. You can get it via the [DescribeBundles](https://intl.cloud.tencent.com/document/api/1207/47575?from_cn_redirect=1) API.public String getBlueprintId()
public void setBlueprintId(String BlueprintId)
BlueprintId
- Image ID. You can get it via the [DescribeBlueprints](https://intl.cloud.tencent.com/document/api/1207/47689?from_cn_redirect=1) API.public InstanceChargePrepaid getInstanceChargePrepaid()
public void setInstanceChargePrepaid(InstanceChargePrepaid InstanceChargePrepaid)
InstanceChargePrepaid
- Monthly subscription information for the instance, including the purchase period, setting of auto-renewal, etc.public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Instance display name.public Long getInstanceCount()
public void setInstanceCount(Long InstanceCount)
InstanceCount
- Number of the instances to purchase. For monthly subscribed instances, the value can be 1 to 30. The default value is `1`. Note that this number can not exceed the remaining quota under the current account.public String[] getZones()
public void setZones(String[] Zones)
Zones
- List of availability zones. A random AZ is selected by default.public Boolean getDryRun()
public void setDryRun(Boolean DryRun)
DryRun
- Whether the request is a dry run only.
`true`: dry run only. The request will not create instance(s). A dry run can check whether all the required parameters are specified, whether the request format is right, whether the request exceeds service limits, and whether the specified CVMs are available.
If the dry run fails, the corresponding error code will be returned.
If the dry run succeeds, the RequestId will be returned.
`false` (default value): send a normal request and create instance(s) if all the requirements are met.public String getClientToken()
public void setClientToken(String ClientToken)
ClientToken
- A unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idem-potency of the request cannot be guaranteed.public LoginConfiguration getLoginConfiguration()
public void setLoginConfiguration(LoginConfiguration LoginConfiguration)
LoginConfiguration
- Login password of the instance. It’s only available for Windows instances. If it’s not specified, it means that the user choose to set the login password after the instance creation.public DockerContainerConfiguration[] getContainers()
public void setContainers(DockerContainerConfiguration[] Containers)
Containers
- Configuration of the containers to createpublic Boolean getAutoVoucher()
public void setAutoVoucher(Boolean AutoVoucher)
AutoVoucher
- Whether to use the vouchers automatically. It defaults to No.Copyright © 2023. All rights reserved.