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.
|
Boolean |
getEnabled()
Get Whether it is enabled
|
String |
getGatewayId()
Get Next hop address.
|
String |
getGatewayType()
Get The type of the next hop.
|
String |
getRouteDescription()
Get The description of the routing policy.
|
Long |
getRouteId()
Get The ID of the routing policy.
|
String |
getRouteType()
Get The route type.
|
void |
setDestinationCidrBlock(String DestinationCidrBlock)
Set Destination IP range, such as 112.20.51.0/24.
|
void |
setEnabled(Boolean Enabled)
Set Whether it is enabled
|
void |
setGatewayId(String GatewayId)
Set Next hop address.
|
void |
setGatewayType(String GatewayType)
Set The 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 |
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, toJsonString
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
- The type of the next hop. Currently supported types include:
CVM: Public gateway-type CVM;
VPN: VPN gateway;
DIRECTCONNECT: Direct connect gateway;
PEERCONNECTION: Peering connection;
SSLVPN: sslvpn gateway;
NAT: NAT gateway;
NORMAL_CVM: Normal CVM;
EIP: The public IP 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.Copyright © 2020. All rights reserved.