RouteProps
Properties for defining a Route
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-route
Initializer
import com.aliyun.ros.cdk.ecs.RouteProps;
RouteProps.builder()
.destinationCidrBlock(java.lang.String)
.destinationCidrBlock(IResolvable)
.routeTableId(java.lang.String)
.routeTableId(IResolvable)
// .nextHopId(java.lang.String)
// .nextHopId(IResolvable)
// .nextHopList(IResolvable)
// .nextHopList(java.util.List<IResolvable)
// .nextHopList(NextHopListProperty>)
// .nextHopType(java.lang.String)
// .nextHopType(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
destinationCidrBlock |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property destinationCidrBlock: The RouteEntry's target network segment. |
routeTableId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property routeTableId: RouteTableId of created route entry. |
nextHopId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property nextHopId: The route entry's next hop. |
nextHopList |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property nextHopList: The route entry's next hop list. |
nextHopType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property nextHopType: The next hop type. |
destinationCidrBlock
Required
public java.lang.Object getDestinationCidrBlock();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destinationCidrBlock: The RouteEntry's target network segment.
routeTableId
Required
public java.lang.Object getRouteTableId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property routeTableId: RouteTableId of created route entry.
nextHopId
Optional
public java.lang.Object getNextHopId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property nextHopId: The route entry's next hop.
When the NextHopList is specified, the value will be ignored.
nextHopList
Optional
public java.lang.Object getNextHopList();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
NextHopListProperty>
Property nextHopList: The route entry's next hop list.
If router is virtual border router, the value will be ignore. The list should contain 2-4 next hop. NextHopId of each next hop must be RouterInterface that VRouter forwards to VBR.
nextHopType
Optional
public java.lang.Object getNextHopType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property nextHopType: The next hop type.
Now support 'Instance|HaVip|RouterInterface|NetworkInterface|VpnGateway|IPv6Gateway|NatGateway|Attachment'. The default value is Instance.When the NextHopList is specified, the value will be ignored.