类 RouteClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.route.RouteClient
-
public class RouteClient extends AbstractBceClient
Created by zhangjing60 on 17/8/2.
-
-
字段概要
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 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.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CreateRouteResponsecreateRoute(CreateRouteRequest request)Create a route with the specified options.voiddeleteRouteRule(DeleteRouteRequest deleteRouteRequest)Delete the specific route rulevoiddeleteRouteRule(String routeRuleId)Delete the specific route ruleGetRouteResponsegetRoute(String routeTableId, String vpcId)Get the detail information of route table for specific route table or/and vpc-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
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 timevpcId- 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.
-
-