public static final class ModifyCenRouteMapRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
ModifyCenRouteMapRequest.Builder |
asPathMatchMode(String asPathMatchMode)
The match method that is used to match routes based on the AS path.
|
ModifyCenRouteMapRequest |
build() |
ModifyCenRouteMapRequest.Builder |
cenId(String cenId)
The ID of the CEN instance.
|
ModifyCenRouteMapRequest.Builder |
cenRegionId(String cenRegionId)
The ID of the region in which the routing policy is applied.
|
ModifyCenRouteMapRequest.Builder |
cidrMatchMode(String cidrMatchMode)
The match method that is used to match routes against the prefix list.
|
ModifyCenRouteMapRequest.Builder |
communityMatchMode(String communityMatchMode)
The match method that is used to match routes based on the community.
|
ModifyCenRouteMapRequest.Builder |
communityOperateMode(String communityOperateMode)
The action to be performed on the community.
|
ModifyCenRouteMapRequest.Builder |
description(String description)
The description of the routing policy.
|
ModifyCenRouteMapRequest.Builder |
destinationChildInstanceTypes(List<String> destinationChildInstanceTypes)
The types of destination network instance to which the routes belong.
|
ModifyCenRouteMapRequest.Builder |
destinationCidrBlocks(List<String> destinationCidrBlocks)
The prefix list against which routes are matched.
|
ModifyCenRouteMapRequest.Builder |
destinationInstanceIds(List<String> destinationInstanceIds)
The IDs of the destination network instances to which the routes belong.
|
ModifyCenRouteMapRequest.Builder |
destinationInstanceIdsReverseMatch(Boolean destinationInstanceIdsReverseMatch)
Specifies whether to exclude destination instance IDs.
|
ModifyCenRouteMapRequest.Builder |
destinationRegionIds(List<String> destinationRegionIds)
The destination region IDs of the route.
|
ModifyCenRouteMapRequest.Builder |
destinationRouteTableIds(List<String> destinationRouteTableIds)
The IDs of the destination route tables to which the routes belong.
|
ModifyCenRouteMapRequest.Builder |
mapResult(String mapResult)
The action to be performed on a route that meets all the match conditions.
|
ModifyCenRouteMapRequest.Builder |
matchAddressType(String matchAddressType)
The type of IP address in the match condition.
|
ModifyCenRouteMapRequest.Builder |
matchAsns(List<Integer> matchAsns)
The AS paths against which routes are matched.
|
ModifyCenRouteMapRequest.Builder |
matchCommunitySet(List<String> matchCommunitySet)
The community against which routes are matched.
|
ModifyCenRouteMapRequest.Builder |
nextPriority(Integer nextPriority)
The priority of the routing policy that you want to associate with the current one.
|
ModifyCenRouteMapRequest.Builder |
operateCommunitySet(List<String> operateCommunitySet)
The community set on which actions are performed.
|
ModifyCenRouteMapRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
ModifyCenRouteMapRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ModifyCenRouteMapRequest.Builder |
preference(Integer preference)
The new priority of the route.
|
ModifyCenRouteMapRequest.Builder |
prependAsPath(List<Long> prependAsPath)
The AS paths that are prepended by using an action statement when regional gateways receive or advertise routes.
|
ModifyCenRouteMapRequest.Builder |
priority(Integer priority)
The priority of the routing policy.
|
ModifyCenRouteMapRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ModifyCenRouteMapRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
ModifyCenRouteMapRequest.Builder |
routeMapId(String routeMapId)
The ID of the routing policy.
|
ModifyCenRouteMapRequest.Builder |
routeTypes(List<String> routeTypes)
The type of route to be matched against the match condition.
|
ModifyCenRouteMapRequest.Builder |
sourceChildInstanceTypes(List<String> sourceChildInstanceTypes)
The types of source network instance to which the routes belong.
|
ModifyCenRouteMapRequest.Builder |
sourceInstanceIds(List<String> sourceInstanceIds)
The IDs of the source network instances to which the routes belong.
|
ModifyCenRouteMapRequest.Builder |
sourceInstanceIdsReverseMatch(Boolean sourceInstanceIdsReverseMatch)
Specifies whether to exclude source instance IDs.
|
ModifyCenRouteMapRequest.Builder |
sourceRegionIds(List<String> sourceRegionIds)
The IDs of the source regions to which the routes belong.
|
ModifyCenRouteMapRequest.Builder |
sourceRouteTableIds(List<String> sourceRouteTableIds)
The IDs of the source route tables to which the routes belong.
|
public ModifyCenRouteMapRequest.Builder asPathMatchMode(String asPathMatchMode)
The match method that is used to match routes based on the AS path. Valid values:
Include
public ModifyCenRouteMapRequest.Builder cenId(String cenId)
The ID of the CEN instance.
This parameter is required.
example:cen-7qthudw0ll6jmc****
public ModifyCenRouteMapRequest.Builder cenRegionId(String cenRegionId)
The ID of the region in which the routing policy is applied.
You can call the DescribeChildInstanceRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
public ModifyCenRouteMapRequest.Builder cidrMatchMode(String cidrMatchMode)
The match method that is used to match routes against the prefix list. Valid values:
For example, if you set the match condition to 10.10.0.0/16 and fuzzy match is applied, the route whose prefix is 10.10.1.0/24 meets the match condition.
For example, if you set the match condition to 10.10.0.0/16 and exact match is applied, only the route whose prefix is 10.10.0.0/16 meets the match condition.
example:Include
public ModifyCenRouteMapRequest.Builder communityMatchMode(String communityMatchMode)
The match method that is used to match routes based on the community. Valid values:
Include
public ModifyCenRouteMapRequest.Builder communityOperateMode(String communityOperateMode)
The action to be performed on the community. Valid values:
This parameter specifies the action to be performed when a route meets the match condition.
example:Additive
public ModifyCenRouteMapRequest.Builder description(String description)
The description of the routing policy.
This parameter is optional. If you enter a description, it must be 1 to 256 characters in length and cannot start with http:// or https://.
example:desctest
public ModifyCenRouteMapRequest.Builder destinationChildInstanceTypes(List<String> destinationChildInstanceTypes)
The types of destination network instance to which the routes belong. The following types of network instances are supported:
VPC: VPC
VBR: VBR
CCN: CCN instance
VPN: IPsec connection
This parameter does not take effect if the IPsec-VPN connection or SSL client is associated with a transit router through a VPN gateway and a VPC. This parameter takes effect only if the IPsec connection is directly connected to the transit router.
The destination network instance types are valid only if the routing policy is applied to scenarios where routes are advertised from the gateway in the current region to network instances in the current region.
example:VPC
public ModifyCenRouteMapRequest.Builder destinationCidrBlocks(List<String> destinationCidrBlocks)
The prefix list against which routes are matched.
You must specify the IP addresses in CIDR notation. You can enter at most 32 CIDR blocks.
example:10.10.10.0/24
public ModifyCenRouteMapRequest.Builder destinationInstanceIds(List<String> destinationInstanceIds)
The IDs of the destination network instances to which the routes belong. The following network instance types are supported:
You can enter at most 32 IDs.
example:The destination instance IDs take effect only when Direction is set to Export from Regional Gateway and the destination instances are deployed in the current region.
vpc-avcdsg34ds****
public ModifyCenRouteMapRequest.Builder destinationInstanceIdsReverseMatch(Boolean destinationInstanceIdsReverseMatch)
Specifies whether to exclude destination instance IDs. Valid values:
false
public ModifyCenRouteMapRequest.Builder destinationRegionIds(List<String> destinationRegionIds)
The destination region IDs of the route. You can specify at most 32 region IDs.
public ModifyCenRouteMapRequest.Builder destinationRouteTableIds(List<String> destinationRouteTableIds)
The IDs of the destination route tables to which the routes belong. You can enter at most 32 route table IDs.
example:The destination route table IDs take effect only when Direction is set to Export from Regional Gateway and the destination route tables belong to network instances deployed in the current region.
vtb-adfg53c322v****
public ModifyCenRouteMapRequest.Builder mapResult(String mapResult)
The action to be performed on a route that meets all the match conditions. Valid values:
This parameter is required.
example:Permit
public ModifyCenRouteMapRequest.Builder matchAddressType(String matchAddressType)
The type of IP address in the match condition. Valid values:
This parameter can be empty. If no value is specified, all types of IP address are a match.
example:IPv4
public ModifyCenRouteMapRequest.Builder matchAsns(List<Integer> matchAsns)
The AS paths against which routes are matched.
example:Only the AS-SEQUENCE parameter is supported. The AS-SET, AS-CONFED-SEQUENCE, and AS-CONFED-SET parameters are not supported. In other words, only the AS number list is supported. Sets and sub-lists are not supported.
65501
public ModifyCenRouteMapRequest.Builder matchCommunitySet(List<String> matchCommunitySet)
The community against which routes are matched.
Specify the community in the format of n:m. Valid values of n and m: 1 to 65535. Each community must comply with the RFC 1997 standard. The RFC 8092 standard that defines BGP large communities is not supported.
You can specify at most 32 communities.
example:If the configurations of the communities are incorrect, routes may fail to be advertised to your data center.
65501:1
public ModifyCenRouteMapRequest.Builder nextPriority(Integer nextPriority)
The priority of the routing policy that you want to associate with the current one.
20
public ModifyCenRouteMapRequest.Builder operateCommunitySet(List<String> operateCommunitySet)
The community set on which actions are performed.
Specify the community in the format of n:m. Valid values of n and m: 1 to 65535. Each community must comply with RFC 1997. The RFC 8092 standard that defines BGP large communities is not supported.
You can specify at most 32 communities.
example:If the configurations of the communities are incorrect, routes may fail to be advertised to your data center.
65501:1
public ModifyCenRouteMapRequest.Builder ownerAccount(String ownerAccount)
public ModifyCenRouteMapRequest.Builder ownerId(Long ownerId)
public ModifyCenRouteMapRequest.Builder preference(Integer preference)
The new priority of the route.
Valid values: 1 to 100. The default priority is 50. A smaller value indicates a higher priority.
This parameter specifies the action to be performed when a route meets the match condition.
example:22
public ModifyCenRouteMapRequest.Builder prependAsPath(List<Long> prependAsPath)
The AS paths that are prepended by using an action statement when regional gateways receive or advertise routes.
The AS paths vary based on the direction in which the routing policy is applied:
This parameter specifies the action to be performed when a route meets the match condition.
example:65501
public ModifyCenRouteMapRequest.Builder priority(Integer priority)
The priority of the routing policy. Valid values: 1 to 100. A smaller value indicates a higher priority.
You cannot specify the same priority for routing policies that apply in the same region and direction. The system matches routes against the match conditions of routing policies in descending order of priority. A smaller value indicates a higher priority. You must set the priorities to proper values.
This parameter is required.
example:10
public ModifyCenRouteMapRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyCenRouteMapRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyCenRouteMapRequest.Builder routeMapId(String routeMapId)
The ID of the routing policy.
This parameter is required.
example:cenrmap-abcdedfghij****
public ModifyCenRouteMapRequest.Builder routeTypes(List<String> routeTypes)
The type of route to be matched against the match condition. The following route types are supported:
System
public ModifyCenRouteMapRequest.Builder sourceChildInstanceTypes(List<String> sourceChildInstanceTypes)
The types of source network instance to which the routes belong. The following types of network instances are supported:
VPC: VPC
VBR: VBR
CCN: CCN instance
VPN :VPN gateway or IPsec-VPN connection
VPC
public ModifyCenRouteMapRequest.Builder sourceInstanceIds(List<String> sourceInstanceIds)
The IDs of the source network instances to which the routes belong. The following network instance types are supported:
You can enter at most 32 IDs.
example:vpc-afsfdf5435vcvc****
public ModifyCenRouteMapRequest.Builder sourceInstanceIdsReverseMatch(Boolean sourceInstanceIdsReverseMatch)
Specifies whether to exclude source instance IDs. Valid values:
false
public ModifyCenRouteMapRequest.Builder sourceRegionIds(List<String> sourceRegionIds)
The IDs of the source regions to which the routes belong. You can enter at most 32 region IDs.
You can call the DescribeChildInstanceRegions operation to query the most recent region list.
example:cn-beijing
public ModifyCenRouteMapRequest.Builder sourceRouteTableIds(List<String> sourceRouteTableIds)
The IDs of the source route tables to which the routes belong. You can enter at most 32 route table IDs.
example:vtb-acdbvtbr342cd****
public ModifyCenRouteMapRequest build()
Copyright © 2025. All rights reserved.