public class Placement extends AbstractModel
header, skipSign
Constructor and Description |
---|
Placement() |
Placement(Placement 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 |
getHostId()
Get The ID of the CDH to which the instance belongs, only used as an output parameter.
|
String[] |
getHostIds()
Get Specifies the dedicated host ID list for instance ownership, only used for input parameters.
|
Long |
getProjectId()
Get Instance'S project ID.
|
String |
getZone()
Get ID of the availability zone where the instance resides.
|
void |
setHostId(String HostId)
Set The ID of the CDH to which the instance belongs, only used as an output parameter.
|
void |
setHostIds(String[] HostIds)
Set Specifies the dedicated host ID list for instance ownership, only used for input parameters.
|
void |
setProjectId(Long ProjectId)
Set Instance'S project ID.
|
void |
setZone(String Zone)
Set ID of the availability zone where the instance resides.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public Placement()
public Placement(Placement source)
public String getZone()
public void setZone(String Zone)
Zone
- ID of the availability zone where the instance resides. You can call the [DescribeZones](https://intl.cloud.tencent.com/document/product/213/35071) API and obtain the ID in the returned `Zone` field.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Instance'S project ID. obtain this parameter by calling the `ProjectId` field in the return value of [DescribeProject](https://www.tencentcloud.comom/document/api/651/78725?from_cn_redirect=1). default value 0 means default project.public String[] getHostIds()
public void setHostIds(String[] HostIds)
HostIds
- Specifies the dedicated host ID list for instance ownership, only used for input parameters. if you purchase a dedicated host and specify this parameter, instances you purchase will be randomly deployed on these dedicated hosts. obtain this parameter by calling the `HostId` field in the return value of [DescribeHosts](https://www.tencentcloud.comom/document/api/213/16474?from_cn_redirect=1).public String getHostId()
public void setHostId(String HostId)
HostId
- The ID of the CDH to which the instance belongs, only used as an output parameter.Copyright © 2025. All rights reserved.