public class Route extends AbstractModel
| Constructor and Description | 
|---|
Route()  | 
Route(Route 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 | 
|---|---|
String | 
getCreatedTime()
Get Creation time of the routing policy 
 | 
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. 
 | 
Boolean | 
getPublishedToVbc()
Get Whether the routing policy is published to CCN. 
 | 
String | 
getRouteDescription()
Get The description of the routing policy. 
 | 
Long | 
getRouteId()
Get Routing policy ID. 
 | 
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 | 
setCreatedTime(String CreatedTime)
Set Creation time of the routing policy 
 | 
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 | 
setPublishedToVbc(Boolean PublishedToVbc)
Set Whether the routing policy is published to CCN. 
 | 
void | 
setRouteDescription(String RouteDescription)
Set The description of the routing policy. 
 | 
void | 
setRouteId(Long RouteId)
Set Routing policy ID. 
 | 
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 Route()
public Route(Route source)
public 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. Valid values:
`CVM`: public gateway CVM;
`VPN`: VPN gateway;
`DIRECTCONNECT`: direct connect gateway;
`PEERCONNECTION`: peering connection;
`HAVIP`: HAVIP;
`NAT`: NAT Gateway; 
`NORMAL_CVM`: normal CVM;
`EIP`: public IP address of the CVM;
`LOCAL_GATEWAY`: local gateway.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 - Routing policy ID. The IPv4 routing policy will have a meaningful value, while the IPv6 routing policy is always 0. We recommend using the unique ID `RouteItemId` for the routing policy.
This field is required when you want to delete a 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.public Boolean getPublishedToVbc()
public void setPublishedToVbc(Boolean PublishedToVbc)
PublishedToVbc - Whether the routing policy is published to CCN.
Note: this field may return `null`, indicating that no valid values can be obtained.public String getCreatedTime()
public void setCreatedTime(String CreatedTime)
CreatedTime - Creation time of the routing policyCopyright © 2022. All rights reserved.