com.baidubce.services.lps
Class LpsRouteClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.lps.BaseLpsClient
          extended by com.baidubce.services.lps.LpsRouteClient

public class LpsRouteClient
extends BaseLpsClient

Lps Route Client which provides the ability to communicating with private route service.

Created by chenbo14 on 2019/11/28.


Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
LpsRouteClient()
          Construct a lps client with default settings.
LpsRouteClient(BceClientConfiguration configuration)
          Construct a lps client with customized bce client configuration.
LpsRouteClient(String accessKey, String secretKey)
          Construct a lps client access key, secret key and other default settings.
 
Method Summary
 void deleteRouteInfo(String routeId)
          delete route info
 ListRouteResponse listRouteInfo(int pageNo, int pageSize)
          List route info
 UploadRouteResponse uploadRouteInfo(UploadRouteRequest request)
          Upload the private route Info
 
Methods inherited from class com.baidubce.services.lps.BaseLpsClient
createRequest
 
Methods inherited from class com.baidubce.AbstractBceClient
computeServiceId, 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

LpsRouteClient

public LpsRouteClient()
Construct a lps client with default settings.


LpsRouteClient

public LpsRouteClient(BceClientConfiguration configuration)
Construct a lps client with customized bce client configuration.

Parameters:
configuration - BceClientConfiguration

LpsRouteClient

public LpsRouteClient(String accessKey,
                      String secretKey)
Construct a lps client access key, secret key and other default settings.

Parameters:
accessKey - access key id
secretKey - secret key
Method Detail

uploadRouteInfo

public UploadRouteResponse uploadRouteInfo(UploadRouteRequest request)
Upload the private route Info

Parameters:
request - UploadRouteRequest
Returns:
uploadRouteResponse with routeId

listRouteInfo

public ListRouteResponse listRouteInfo(int pageNo,
                                       int pageSize)
List route info

Parameters:
pageNo -
pageSize -
Returns:

deleteRouteInfo

public void deleteRouteInfo(String routeId)
delete route info

Parameters:
routeId -


Copyright © 2020. All rights reserved.