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 it is used 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 form of `subnet-xxx`.
|
String |
getVpcId()
Get vpc ID, such as `vpc-xxx`.
|
void |
setAsVpcGateway(Boolean AsVpcGateway)
Set Whether it is used 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 form of `subnet-xxx`.
|
void |
setVpcId(String VpcId)
Set vpc ID, such as `vpc-xxx`.
|
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 VirtualPrivateCloud()
public VirtualPrivateCloud(VirtualPrivateCloud source)
public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- vpc ID, such as `vpc-xxx`. valid vpc ids can be queried by logging in to the console (https://console.cloud.tencent.com/vpc/vpc?rid=1) or by calling the API [DescribeVpcs](https://www.tencentcloud.comom/document/product/215/15778?from_cn_redirect=1) and obtaining the `VpcId` field from the API response. if both VpcId and SubnetId are input as `DEFAULT` when creating an instance, the DEFAULT vpc network will be forcibly used.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- vpc subnet ID, in the form of `subnet-xxx`. valid vpc subnet ids can be queried by logging in to the console (https://console.cloud.tencent.com/vpc/subnet?rid=1); or they can be obtained from the `SubnetId` field in the API response by calling the DescribeSubnets API (https://intl.cloud.tencent.com/document/product/215/15784?from_cn_redirect=1). if SubnetId and VpcId are both input as `DEFAULT` when creating an instance, the DEFAULT vpc network will be forcibly used.public Boolean getAsVpcGateway()
public void setAsVpcGateway(Boolean AsVpcGateway)
AsVpcGateway
- Whether it is used as a public gateway. A public gateway can only be used normally when an instance has a public IP address and is 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.
If IPv6AddressType is specified under InternetAccessible, this parameter must not be set to 0.Copyright © 2025. All rights reserved.