com.baidubce.services.eipbp
Class EipBpClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.eipbp.EipBpClient

public class EipBpClient
extends AbstractBceClient

Provides the client for accessing the Elastic Ip Service (EIPBP).


Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
EipBpClient()
           
EipBpClient(BceClientConfiguration clientConfiguration)
          Constructs a new InstanceClient to invoke service methods on eipbp instance.
 
Method Summary
 CreateEipBpResponse createEipBp(CreateEipBpRequest request)
          Create an eipbp with the specified options.
protected  void fillPayload(InternalRequest internalRequest, AbstractBceRequest bceRequest)
          the method to fill the internalRequest's content field with bceRequest only support HttpMethodName.POST or HttpMethodName.PUT
 EipBpDetailResponse getEipBpDetail(GetEipBpRequest request)
          Get detail of the eipbp givened id.
 EipBpDetailResponse getEipBpDetail(String id)
          Get detail of the eipbp givened id.
 ListEipBpsResponse listEipBps()
          Get a list of eipbps owned by the authenticated user.
 ListEipBpsResponse listEipBps(ListEipBpsRequest request)
          Get a list of eipbps owned by the authenticated user and specified conditions.
 ListEipBpsResponse listEipBps(String id, String name, String bindType)
          Get a list of eipbps owned by the authenticated user and specified conditions.
 void releaseEipBp(ReleaseEipBpRequest request)
          release the eipbp(delete operation).
 void releaseEipBp(String id)
          release the eipbp(delete operation).
 void renameEipBp(String id, String name)
          Rename eipbp.
 void renameEipBp(UpdateEipBpNameRequest request)
          Rename eipbp.
 void resizeEipBp(ResizeEipBpRequest request)
          Resizing eipbp.
 void resizeEipBp(String id, Integer bandwidthInMbps)
          Resizing eipbp.
 void updateAutoReleaseTime(String id, String autoReleaseTime)
          Update eipbp's autoReleaseTime.
 void updateAutoReleaseTime(UpdateEipBpAutoReleaseTimeRequest request)
          Update eipbp's autoReleaseTime.
 
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

EipBpClient

public EipBpClient()

EipBpClient

public EipBpClient(BceClientConfiguration clientConfiguration)
Constructs a new InstanceClient to invoke service methods on eipbp instance.

Parameters:
clientConfiguration - The BCE client configuration options.
Method Detail

createEipBp

public CreateEipBpResponse createEipBp(CreateEipBpRequest request)
Create an eipbp with the specified options. This is an asynchronous interface.

Parameters:
request - The request containing all options for creating an eipbp.
Returns:
created eipbp ip.

resizeEipBp

public void resizeEipBp(ResizeEipBpRequest request)
Resizing eipbp. This is an asynchronous interface.

Parameters:
request - eipbp id & newBandwidthInMbps must be provided.

resizeEipBp

public void resizeEipBp(String id,
                        Integer bandwidthInMbps)
Resizing eipbp.

Parameters:
id - eipbp id to be resized.
bandwidthInMbps - specify new bandwidth in Mbps for eipbp.

getEipBpDetail

public EipBpDetailResponse getEipBpDetail(GetEipBpRequest request)
Get detail of the eipbp givened id.

Parameters:
request - The request containing eipbp id to query.
Returns:
the eipbp detail.

getEipBpDetail

public EipBpDetailResponse getEipBpDetail(String id)
Get detail of the eipbp givened id.

Parameters:
id - The eipbp id to query.
Returns:
the eipbp detail.

listEipBps

public ListEipBpsResponse listEipBps(ListEipBpsRequest request)
Get a list of eipbps owned by the authenticated user and specified conditions.

Parameters:
request - The request containing all options for query.
Returns:
the eipbp's list.

listEipBps

public ListEipBpsResponse listEipBps()
Get a list of eipbps owned by the authenticated user.

Returns:
the eipbp's list.

listEipBps

public ListEipBpsResponse listEipBps(String id,
                                     String name,
                                     String bindType)
Get a list of eipbps owned by the authenticated user and specified conditions.

Parameters:
id - eipbp's id.
name - eipbp's name.
bindType - eipbp's bindType, eip or eipgroup.
Returns:
the eipbp's list.

renameEipBp

public void renameEipBp(UpdateEipBpNameRequest request)
Rename eipbp.

Parameters:
request - Eipbp id & name must be provided.

renameEipBp

public void renameEipBp(String id,
                        String name)
Rename eipbp.

Parameters:
id - eipbp's id.
name - eipbp's new name.

updateAutoReleaseTime

public void updateAutoReleaseTime(UpdateEipBpAutoReleaseTimeRequest request)
Update eipbp's autoReleaseTime.

Parameters:
request - Eipbp id & autoReleaseTime must be provided, the autoReleaseTime must be in UTC format.

updateAutoReleaseTime

public void updateAutoReleaseTime(String id,
                                  String autoReleaseTime)
Update eipbp's autoReleaseTime.

Parameters:
id - eipbp's id.
autoReleaseTime - eipbp's autoReleaseTime, must be in UTC format.

releaseEipBp

public void releaseEipBp(ReleaseEipBpRequest request)
release the eipbp(delete operation).

Parameters:
request - The request containing all options for releasing eipbp.

releaseEipBp

public void releaseEipBp(String id)
release the eipbp(delete operation).

Parameters:
id - The id eipbp to be released.

fillPayload

protected void fillPayload(InternalRequest internalRequest,
                           AbstractBceRequest bceRequest)
the method to fill the internalRequest's content field with bceRequest only support HttpMethodName.POST or HttpMethodName.PUT

Parameters:
internalRequest - A request object, populated with endpoint, resource path, ready for callers to populate any additional headers or parameters, and execute.
bceRequest - The original request, as created by the user.


Copyright © 2020. All rights reserved.