public class RouteClient extends AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
RouteClient()
Constructs a new client to invoke service methods on network.
|
RouteClient(BceClientConfiguration clientConfiguration)
Constructs a new network client using the client configuration to access network.
|
| Modifier and Type | Method and Description |
|---|---|
CreateRouteResponse |
createRoute(CreateRouteRequest request)
Create a route with the specified options.
|
void |
deleteRouteRule(DeleteRouteRequest deleteRouteRequest)
Delete the specific route rule
|
void |
deleteRouteRule(String routeRuleId)
Delete the specific route rule
|
GetRouteResponse |
getRoute(String routeTableId,
String vpcId)
Get the detail information of route table for specific route table or/and vpc
|
ListRouteRuleResponse |
listRouteRule(ListRouteRuleReq listRouteRuleReq)
list route by marker & maxKeys param
the method is high performance
|
void |
switchRouteHa(String ruleId)
The method is used to switch routeHA
|
void |
switchRouteHa(SwitchRouteHaRequest switchRouteHaRequest) |
void |
updateRouteRule(UpdateRouteRuleRequest updateRouteRuleRequest)
update route rule info
|
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic RouteClient()
public RouteClient(BceClientConfiguration clientConfiguration)
clientConfiguration - The network client configuration options controlling how this client
connects to network (e.g. proxy settings, retry counts, etc).public CreateRouteResponse createRoute(CreateRouteRequest request) throws BceClientException
request - The request containing all options for creating subnet.BceClientExceptionpublic GetRouteResponse getRoute(String routeTableId, String vpcId)
routeTableId - id of route table, routeTableId and vpcId cannot be empty at the same timevpcId - vpcId, routeTableId and vpcId cannot be empty at the same timepublic void deleteRouteRule(String routeRuleId)
routeRuleId - public void deleteRouteRule(DeleteRouteRequest deleteRouteRequest)
deleteRouteRequest - the request containing all options for deleting route rule.public void updateRouteRule(UpdateRouteRuleRequest updateRouteRuleRequest)
updateRouteRuleRequest - public ListRouteRuleResponse listRouteRule(ListRouteRuleReq listRouteRuleReq)
listRouteRuleReq - public void switchRouteHa(String ruleId)
ruleId - public void switchRouteHa(SwitchRouteHaRequest switchRouteHaRequest)
Copyright © 2024. All rights reserved.