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 |
getDestinationCidrBlock()
Get Destination IPv4 IP range
|
Boolean |
getEnabled()
Get Whether to enable
|
String |
getGatewayId()
Get 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
When `GatewayType` is `EIP`, the value of `GatewayId` will be fixed at `0`
|
String |
getGatewayType()
Get Next hop type
NORMAL_CVM: general CVM;
|
String |
getRouteDescription()
Get Routing policy description
|
Long |
getRouteId()
Get Routing policy ID.
|
String |
getRouteItemId()
Get Unique routing policy ID
|
String |
getRouteType()
Get Route type.
|
void |
setDestinationCidrBlock(String DestinationCidrBlock)
Set Destination IPv4 IP range
|
void |
setEnabled(Boolean Enabled)
Set Whether to enable
|
void |
setGatewayId(String GatewayId)
Set 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
When `GatewayType` is `EIP`, the value of `GatewayId` will be fixed at `0`
|
void |
setGatewayType(String GatewayType)
Set Next hop type
NORMAL_CVM: general CVM;
|
void |
setRouteDescription(String RouteDescription)
Set Routing policy description
|
void |
setRouteId(Long RouteId)
Set Routing policy ID.
|
void |
setRouteItemId(String RouteItemId)
Set Unique routing policy ID
|
void |
setRouteType(String RouteType)
Set 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 Route()
public Route(Route source)
public String getDestinationCidrBlock()
public void setDestinationCidrBlock(String DestinationCidrBlock)
DestinationCidrBlock
- Destination IPv4 IP rangepublic String getGatewayType()
public void setGatewayType(String GatewayType)
GatewayType
- Next hop type
NORMAL_CVM: general CVM;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
When `GatewayType` is `EIP`, the value of `GatewayId` will be fixed at `0`public String getRouteItemId()
public void setRouteItemId(String RouteItemId)
RouteItemId
- Unique routing policy IDpublic String getRouteDescription()
public void setRouteDescription(String RouteDescription)
RouteDescription
- Routing policy descriptionpublic Boolean getEnabled()
public void setEnabled(Boolean Enabled)
Enabled
- Whether to enablepublic String getRouteType()
public void setRouteType(String RouteType)
RouteType
- Route type. Valid values:
USER: user route;
NETD: network probe route, which will be delivered by the system by default when you create a network probe instance and cannot be edited or deleted;
CCN: CCN route, which will be delivered by the system by default and cannot be edited or deleted.
You can only add and manipulate routes of `USER` type.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 you use the unique ID `RouteItemId` for the routing policyCopyright © 2023. All rights reserved.