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 |
---|---|
String |
getBlueprintId()
Get ID of the Lighthouse image
|
String |
getBundleId()
Get ID of the Lighthouse package
|
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 Lighthouse instances to purchase.
|
String |
getInstanceName()
Get The display name of the Lighthouse instance
|
LoginConfiguration |
getLoginConfiguration()
Get Login password of the instance.
|
String[] |
getZones()
Get List of availability zones.
|
void |
setBlueprintId(String BlueprintId)
Set ID of the Lighthouse image
|
void |
setBundleId(String BundleId)
Set ID of the Lighthouse package
|
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 Lighthouse instances to purchase.
|
void |
setInstanceName(String InstanceName)
Set The display name of the Lighthouse instance
|
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
- ID of the Lighthouse packagepublic String getBlueprintId()
public void setBlueprintId(String BlueprintId)
BlueprintId
- ID of the Lighthouse imagepublic 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
- The display name of the Lighthouse instancepublic Long getInstanceCount()
public void setInstanceCount(Long InstanceCount)
InstanceCount
- Number of the Lighthouse 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 createCopyright © 2022. All rights reserved.