public class Placement extends AbstractModel
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 ID list of CDHs from which the instance can be created.
|
String[] |
getHostIps()
Get IPs of the hosts to create CVMs
|
Long |
getProjectId()
Get ID of the project to which the instance belongs.
|
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 ID list of CDHs from which the instance can be created.
|
void |
setHostIps(String[] HostIps)
Set IPs of the hosts to create CVMs
|
void |
setProjectId(Long ProjectId)
Set ID of the project to which the instance belongs.
|
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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, 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
- ID of the project to which the instance belongs. This parameter can be obtained from the `projectId` returned by [DescribeProject](https://intl.cloud.tencent.com/document/api/651/78725?from_cn_redirect=1). If this is left empty, the default project is used.public String[] getHostIds()
public void setHostIds(String[] HostIds)
HostIds
- ID list of CDHs from which the instance can be created. If you have purchased CDHs and specify this parameter, the instances you purchase will be randomly deployed on the CDHs.public String[] getHostIps()
public void setHostIps(String[] HostIps)
HostIps
- IPs of the hosts to create CVMspublic 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 © 2023. All rights reserved.