public class Route extends AbstractModel
| Constructor and Description | 
|---|
| Route() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getDestinationCidrBlock()Get Destination IP range, such as 112.20.51.0/24. | 
| String | getDestinationIpv6CidrBlock()Get Destination IPv6 IP range, which cannot be included in VPC IP range, such as 2402:4e00:1000:810b::/64. | 
| Boolean | getEnabled()Get Whether it is enabled | 
| String | getGatewayId()Get Next hop address. | 
| String | getGatewayType()Get Type of the next hop. | 
| String | getRouteDescription()Get The description of the routing policy. | 
| Long | getRouteId()Get The ID of the routing policy. | 
| String | getRouteItemId()Get Unique routing policy ID. | 
| String | getRouteTableId()Get Route table instance ID, such as rtb-azd4dt1c. | 
| String | getRouteType()Get The route type. | 
| void | setDestinationCidrBlock(String DestinationCidrBlock)Set Destination IP range, such as 112.20.51.0/24. | 
| void | setDestinationIpv6CidrBlock(String DestinationIpv6CidrBlock)Set Destination IPv6 IP range, which cannot be included in VPC IP range, such as 2402:4e00:1000:810b::/64. | 
| void | setEnabled(Boolean Enabled)Set Whether it is enabled | 
| void | setGatewayId(String GatewayId)Set Next hop address. | 
| void | setGatewayType(String GatewayType)Set Type of the next hop. | 
| void | setRouteDescription(String RouteDescription)Set The description of the routing policy. | 
| void | setRouteId(Long RouteId)Set The ID of the routing policy. | 
| void | setRouteItemId(String RouteItemId)Set Unique routing policy ID. | 
| void | setRouteTableId(String RouteTableId)Set Route table instance ID, such as rtb-azd4dt1c. | 
| void | setRouteType(String RouteType)Set The route type. | 
| 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, toJsonStringpublic String getDestinationCidrBlock()
public void setDestinationCidrBlock(String DestinationCidrBlock)
DestinationCidrBlock - Destination IP range, such as 112.20.51.0/24. Values cannot be in the VPC IP range.public String getGatewayType()
public void setGatewayType(String GatewayType)
GatewayType - Type of the next hop. Currently supported types are:
CVM: CVM of the public gateway type;
VPN: VPN gateway;
DIRECTCONNECT: direct connect gateway;
PEERCONNECTION: peering connection;
SSLVPN: sslvpn gateway;
NAT: NAT gateway; 
NORMAL_CVM: normal CVM;
EIP: public IP address of the CVM;
CCN: Cloud Connect Network.public String getGatewayId()
public void setGatewayId(String GatewayId)
GatewayId - Next hop address. You simply need to specify the gateway ID of a different next hop type, and the system will automatically match the next hop address.
Important note: When the GatewayType is EIP, the GatewayId has a fixed value `0`public Long getRouteId()
public void setRouteId(Long RouteId)
RouteId - The ID of the routing policy.public String getRouteDescription()
public void setRouteDescription(String RouteDescription)
RouteDescription - The description of the routing policy.public Boolean getEnabled()
public void setEnabled(Boolean Enabled)
Enabled - Whether it is enabledpublic String getRouteType()
public void setRouteType(String RouteType)
RouteType - The route type. Currently, the following types are supported:
USER: User route;
NETD: Network probe route. When creating a network probe route, the system delivers by default. It cannot be edited or deleted;
CCN: CCN route. The system delivers by default. It cannot be edited or deleted.
Users can only add and operate USER-type routes.public String getRouteTableId()
public void setRouteTableId(String RouteTableId)
RouteTableId - Route table instance ID, such as rtb-azd4dt1c.public String getDestinationIpv6CidrBlock()
public void setDestinationIpv6CidrBlock(String DestinationIpv6CidrBlock)
DestinationIpv6CidrBlock - Destination IPv6 IP range, which cannot be included in VPC IP range, such as 2402:4e00:1000:810b::/64.public String getRouteItemId()
public void setRouteItemId(String RouteItemId)
RouteItemId - Unique routing policy ID.Copyright © 2020. All rights reserved.