com.baidubce.services.route
Class RouteClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.route.RouteClient

public class RouteClient
extends AbstractBceClient

Created by zhangjing60 on 17/8/2.


Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
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.
 
Method Summary
 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
 
Methods inherited from class com.baidubce.AbstractBceClient
getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Parameters:
clientConfiguration - The network client configuration options controlling how this client connects to network (e.g. proxy settings, retry counts, etc).
Method Detail

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.

Parameters:
request - The request containing all options for creating subnet.
Returns:
List of subnetId newly created
Throws:
BceClientException

getRoute

public GetRouteResponse getRoute(String routeTableId,
                                 String vpcId)
Get the detail information of route table for specific route table or/and vpc

Parameters:
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
Returns:
A route table detail model for the specific route table or/and vpc

deleteRouteRule

public void deleteRouteRule(String routeRuleId)
Delete the specific route rule

Parameters:
routeRuleId -

deleteRouteRule

public void deleteRouteRule(DeleteRouteRequest deleteRouteRequest)
Delete the specific route rule

Parameters:
deleteRouteRequest - the request containing all options for deleting route rule.


Copyright © 2018. All rights reserved.