public class VirtualPrivateCloud extends AbstractModel
header, skipSign
Constructor and Description |
---|
VirtualPrivateCloud() |
VirtualPrivateCloud(VirtualPrivateCloud 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 |
---|---|
Boolean |
getAsVpcGateway()
Get Whether to use a CVM instance as a public gateway.
|
Long |
getIpv6AddressCount()
Get Number of IPv6 addresses randomly generated for the ENI.
|
String[] |
getPrivateIpAddresses()
Get Array of VPC subnet IPs.
|
String |
getSubnetId()
Get VPC subnet ID in the format `subnet-xxx`.
|
String |
getVpcId()
Get VPC ID in the format of `vpc-xxx`.
|
void |
setAsVpcGateway(Boolean AsVpcGateway)
Set Whether to use a CVM instance as a public gateway.
|
void |
setIpv6AddressCount(Long Ipv6AddressCount)
Set Number of IPv6 addresses randomly generated for the ENI.
|
void |
setPrivateIpAddresses(String[] PrivateIpAddresses)
Set Array of VPC subnet IPs.
|
void |
setSubnetId(String SubnetId)
Set VPC subnet ID in the format `subnet-xxx`.
|
void |
setVpcId(String VpcId)
Set VPC ID in the format of `vpc-xxx`.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public VirtualPrivateCloud()
public VirtualPrivateCloud(VirtualPrivateCloud source)
public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC ID in the format of `vpc-xxx`. To obtain valid VPC IDs, you can log in to the [console](https://console.cloud.tencent.com/vpc/vpc?rid=1) or call the [DescribeVpcEx](https://intl.cloud.tencent.com/document/api/215/1372?from_cn_redirect=1) API and look for the `unVpcId` fields in the response. If you specify `DEFAULT` for both `VpcId` and `SubnetId` when creating an instance, the default VPC will be used.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- VPC subnet ID in the format `subnet-xxx`. To obtain valid subnet IDs, you can log in to the [console](https://console.cloud.tencent.com/vpc/subnet?rid=1) or call [DescribeSubnets](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) and look for the `unSubnetId` fields in the response. If you specify `DEFAULT` for both `SubnetId` and `VpcId` when creating an instance, the default VPC will be used.public Boolean getAsVpcGateway()
public void setAsVpcGateway(Boolean AsVpcGateway)
AsVpcGateway
- Whether to use a CVM instance as a public gateway. The public gateway is only available when the instance has a public IP and resides in a VPC. Valid values: public String[] getPrivateIpAddresses()
public void setPrivateIpAddresses(String[] PrivateIpAddresses)
PrivateIpAddresses
- Array of VPC subnet IPs. You can use this parameter when creating instances or modifying VPC attributes of instances. Currently you can specify multiple IPs in one subnet only when creating multiple instances at the same time.public Long getIpv6AddressCount()
public void setIpv6AddressCount(Long Ipv6AddressCount)
Ipv6AddressCount
- Number of IPv6 addresses randomly generated for the ENI.Copyright © 2024. All rights reserved.