public class Placement extends AbstractModel
Constructor and Description |
---|
Placement() |
Modifier and Type | Method and Description |
---|---|
String |
getHostId()
Get
|
String[] |
getHostIds()
Get ID list of CDHs from which the instance can be created.
|
String[] |
getHostIps()
Get Master host IP used to create the CVM
|
Long |
getProjectId()
Get ID of the project to which the instance belongs.
|
String |
getZone()
Get The ID of [availability zone](https://cloud.tencent.com/document/product/213/15753#ZoneInfo) where the instance locates.
|
void |
setHostId(String HostId)
Set
|
void |
setHostIds(String[] HostIds)
Set ID list of CDHs from which the instance can be created.
|
void |
setHostIps(String[] HostIps)
Set Master host IP used to create the CVM
|
void |
setProjectId(Long ProjectId)
Set ID of the project to which the instance belongs.
|
void |
setZone(String Zone)
Set The ID of [availability zone](https://cloud.tencent.com/document/product/213/15753#ZoneInfo) where the instance locates.
|
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 String getZone()
public void setZone(String Zone)
Zone
- The ID of [availability zone](https://cloud.tencent.com/document/product/213/15753#ZoneInfo) where the instance locates. It can obtained in the `Zone` field returned by [DescribeZones](https://cloud.tencent.com/document/213/15707) API.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- ID of the project to which the instance belongs. To obtain the project IDs, you can call [DescribeProject](/document/api/378/4400) and look for the `projectId` fields in the response. If this parameter is not specified, the default project will be 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
- Master host IP used to create the CVMpublic String getHostId()
public void setHostId(String HostId)
HostId
- Copyright © 2020. All rights reserved.