public class AllocateHostsRequest extends AbstractModel
| Constructor and Description | 
|---|
AllocateHostsRequest()  | 
AllocateHostsRequest(AllocateHostsRequest 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 | 
getClientToken()
Get A string used to ensure the idempotency of the request. 
 | 
ChargePrepaid | 
getHostChargePrepaid()
Get Configuration of prepaid instances. 
 | 
String | 
getHostChargeType()
Get Instance billing model, only monthly or yearly subscription supported. 
 | 
Long | 
getHostCount()
Get Quantity of CDH instances purchased. 
 | 
String | 
getHostType()
Get CDH instance model. 
 | 
Placement | 
getPlacement()
Get Instance location. 
 | 
TagSpecification[] | 
getTagSpecification()
Get Tag description. 
 | 
void | 
setClientToken(String ClientToken)
Set A string used to ensure the idempotency of the request. 
 | 
void | 
setHostChargePrepaid(ChargePrepaid HostChargePrepaid)
Set Configuration of prepaid instances. 
 | 
void | 
setHostChargeType(String HostChargeType)
Set Instance billing model, only monthly or yearly subscription supported. 
 | 
void | 
setHostCount(Long HostCount)
Set Quantity of CDH instances purchased. 
 | 
void | 
setHostType(String HostType)
Set CDH instance model. 
 | 
void | 
setPlacement(Placement Placement)
Set Instance location. 
 | 
void | 
setTagSpecification(TagSpecification[] TagSpecification)
Set Tag description. 
 | 
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, toJsonStringpublic AllocateHostsRequest()
public AllocateHostsRequest(AllocateHostsRequest source)
public Placement getPlacement()
public void setPlacement(Placement Placement)
Placement - Instance location. This parameter is used to specify the attributes of an instance, such as its availability zone and project.public String getClientToken()
public void setClientToken(String ClientToken)
ClientToken - A string used to ensure the idempotency of the request.public ChargePrepaid getHostChargePrepaid()
public void setHostChargePrepaid(ChargePrepaid HostChargePrepaid)
HostChargePrepaid - 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 getHostChargeType()
public void setHostChargeType(String HostChargeType)
HostChargeType - Instance billing model, only monthly or yearly subscription supported. Default value: `PREPAID'.public String getHostType()
public void setHostType(String HostType)
HostType - CDH instance model. Default value: `HS1`.public Long getHostCount()
public void setHostCount(Long HostCount)
HostCount - Quantity of CDH instances purchased. Default value: 1.public TagSpecification[] getTagSpecification()
public void setTagSpecification(TagSpecification[] TagSpecification)
TagSpecification - Tag description. You can specify the parameter to associate a tag with an instance.Copyright © 2021. All rights reserved.