public class Subnet extends AbstractModel
Constructor and Description |
---|
Subnet() |
Subnet(Subnet 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 |
---|---|
Long |
getAvailableIpAddressCount()
Get The number of available IPv4 addresses
|
String |
getCdcId()
Get CDC instance ID
Note: this field may return `null`, indicating that no valid values can be obtained.
|
String |
getCidrBlock()
Get The `IPv4` `CIDR` of the subnet.
|
String |
getCreatedTime()
Get Creation Time.
|
Boolean |
getEnableBroadcast()
Get Whether to enable broadcast.
|
String |
getIpv6CidrBlock()
Get The `IPv6` `CIDR` of the subnet.
|
Long |
getIsCdcSubnet()
Get Whether it is a CDC subnet.
|
Boolean |
getIsDefault()
Get Whether it is the default subnet.
|
Boolean |
getIsRemoteVpcSnat()
Get Whether it is a `SNAT` address pool subnet.
|
String |
getNetworkAclId()
Get The associated `ACL`ID
|
String |
getRouteTableId()
Get The route table instance ID, such as `rtb-l2h8d7c2`.
|
String |
getSubnetId()
Get Subnet instance `ID`, such as `subnet-bthucmmy`.
|
String |
getSubnetName()
Get Subnet name.
|
Tag[] |
getTagSet()
Get Tag key-value pairs
|
Long |
getTotalIpAddressCount()
Get The total number of IPv4 addresses in the subnet.
|
String |
getVpcId()
Get The `ID` of the `VPC` instance.
|
String |
getZone()
Get Availability Zone.
|
void |
setAvailableIpAddressCount(Long AvailableIpAddressCount)
Set The number of available IPv4 addresses
|
void |
setCdcId(String CdcId)
Set CDC instance ID
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setCidrBlock(String CidrBlock)
Set The `IPv4` `CIDR` of the subnet.
|
void |
setCreatedTime(String CreatedTime)
Set Creation Time.
|
void |
setEnableBroadcast(Boolean EnableBroadcast)
Set Whether to enable broadcast.
|
void |
setIpv6CidrBlock(String Ipv6CidrBlock)
Set The `IPv6` `CIDR` of the subnet.
|
void |
setIsCdcSubnet(Long IsCdcSubnet)
Set Whether it is a CDC subnet.
|
void |
setIsDefault(Boolean IsDefault)
Set Whether it is the default subnet.
|
void |
setIsRemoteVpcSnat(Boolean IsRemoteVpcSnat)
Set Whether it is a `SNAT` address pool subnet.
|
void |
setNetworkAclId(String NetworkAclId)
Set The associated `ACL`ID
|
void |
setRouteTableId(String RouteTableId)
Set The route table instance ID, such as `rtb-l2h8d7c2`.
|
void |
setSubnetId(String SubnetId)
Set Subnet instance `ID`, such as `subnet-bthucmmy`.
|
void |
setSubnetName(String SubnetName)
Set Subnet name.
|
void |
setTagSet(Tag[] TagSet)
Set Tag key-value pairs
|
void |
setTotalIpAddressCount(Long TotalIpAddressCount)
Set The total number of IPv4 addresses in the subnet.
|
void |
setVpcId(String VpcId)
Set The `ID` of the `VPC` instance.
|
void |
setZone(String Zone)
Set Availability Zone.
|
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 Subnet()
public Subnet(Subnet source)
public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- The `ID` of the `VPC` instance.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- Subnet instance `ID`, such as `subnet-bthucmmy`.public String getSubnetName()
public void setSubnetName(String SubnetName)
SubnetName
- Subnet name.public String getCidrBlock()
public void setCidrBlock(String CidrBlock)
CidrBlock
- The `IPv4` `CIDR` of the subnet.public Boolean getIsDefault()
public void setIsDefault(Boolean IsDefault)
IsDefault
- Whether it is the default subnet.public Boolean getEnableBroadcast()
public void setEnableBroadcast(Boolean EnableBroadcast)
EnableBroadcast
- Whether to enable broadcast.public String getZone()
public void setZone(String Zone)
Zone
- Availability Zone.public String getRouteTableId()
public void setRouteTableId(String RouteTableId)
RouteTableId
- The route table instance ID, such as `rtb-l2h8d7c2`.public String getCreatedTime()
public void setCreatedTime(String CreatedTime)
CreatedTime
- Creation Time.public Long getAvailableIpAddressCount()
public void setAvailableIpAddressCount(Long AvailableIpAddressCount)
AvailableIpAddressCount
- The number of available IPv4 addressespublic String getIpv6CidrBlock()
public void setIpv6CidrBlock(String Ipv6CidrBlock)
Ipv6CidrBlock
- The `IPv6` `CIDR` of the subnet.public String getNetworkAclId()
public void setNetworkAclId(String NetworkAclId)
NetworkAclId
- The associated `ACL`IDpublic Boolean getIsRemoteVpcSnat()
public void setIsRemoteVpcSnat(Boolean IsRemoteVpcSnat)
IsRemoteVpcSnat
- Whether it is a `SNAT` address pool subnet.public Long getTotalIpAddressCount()
public void setTotalIpAddressCount(Long TotalIpAddressCount)
TotalIpAddressCount
- The total number of IPv4 addresses in the subnet.public Tag[] getTagSet()
public void setTagSet(Tag[] TagSet)
TagSet
- Tag key-value pairspublic String getCdcId()
public void setCdcId(String CdcId)
CdcId
- CDC instance ID
Note: this field may return `null`, indicating that no valid values can be obtained.public Long getIsCdcSubnet()
public void setIsCdcSubnet(Long IsCdcSubnet)
IsCdcSubnet
- Whether it is a CDC subnet. Valid values: 0: no; 1: yes
Note: this field may return `null`, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.