类 RouteClient


  • public class RouteClient
    extends AbstractBceClient
    Created by zhangjing60 on 17/8/2.
    • 构造器详细资料

      • RouteClient

        public RouteClient()
        Constructs a new client to invoke service methods on network.
      • RouteClient

        public RouteClient​(BceClientConfiguration clientConfiguration)
        Constructs a new network client using the client configuration to access network.
        参数:
        clientConfiguration - The network client configuration options controlling how this client connects to network (e.g. proxy settings, retry counts, etc).
    • 方法详细资料

      • createRoute

        public CreateRouteResponse createRoute​(CreateRouteRequest request)
                                        throws BceClientException
        Create a route with the specified options. You must fill the field of clientToken,which is especially for keeping idempotent.

        参数:
        request - The request containing all options for creating subnet.
        返回:
        List of subnetId newly created
        抛出:
        BceClientException
      • getRoute

        public GetRouteResponse getRoute​(String routeTableId,
                                         String vpcId)
        Get the detail information of route table for specific route table or/and vpc
        参数:
        routeTableId - id of route table, routeTableId and vpcId cannot be empty at the same time
        vpcId - vpcId, routeTableId and vpcId cannot be empty at the same time
        返回:
        A route table detail model for the specific route table or/and vpc
      • deleteRouteRule

        public void deleteRouteRule​(String routeRuleId)
        Delete the specific route rule
        参数:
        routeRuleId -
      • deleteRouteRule

        public void deleteRouteRule​(DeleteRouteRequest deleteRouteRequest)
        Delete the specific route rule
        参数:
        deleteRouteRequest - the request containing all options for deleting route rule.
      • updateRouteRule

        public void updateRouteRule​(UpdateRouteRuleRequest updateRouteRuleRequest)
        update route rule info
        参数:
        updateRouteRuleRequest -
      • listRouteRule

        public ListRouteRuleResponse listRouteRule​(ListRouteRuleReq listRouteRuleReq)
        list route by marker & maxKeys param the method is high performance
        参数:
        listRouteRuleReq -
        返回:
      • switchRouteHa

        public void switchRouteHa​(String ruleId)
        The method is used to switch routeHA
        参数:
        ruleId -