类 EipBpClient


  • public class EipBpClient
    extends AbstractBceClient
    Provides the client for accessing the Elastic Ip Service (EIPBP).
    • 构造器详细资料

      • EipBpClient

        public EipBpClient()
      • EipBpClient

        public EipBpClient​(BceClientConfiguration clientConfiguration)
        Constructs a new InstanceClient to invoke service methods on eipbp instance.
        参数:
        clientConfiguration - The BCE client configuration options.
    • 方法详细资料

      • createEipBp

        public CreateEipBpResponse createEipBp​(CreateEipBpRequest request)
        Create an eipbp with the specified options. This is an asynchronous interface.
        参数:
        request - The request containing all options for creating an eipbp.
        返回:
        created eipbp ip.
      • resizeEipBp

        public void resizeEipBp​(ResizeEipBpRequest request)
        Resizing eipbp. This is an asynchronous interface.
        参数:
        request - eipbp id & newBandwidthInMbps must be provided.
      • resizeEipBp

        public void resizeEipBp​(String id,
                                Integer bandwidthInMbps)
        Resizing eipbp.
        参数:
        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.
        参数:
        request - The request containing eipbp id to query.
        返回:
        the eipbp detail.
      • getEipBpDetail

        public EipBpDetailResponse getEipBpDetail​(String id)
        Get detail of the eipbp givened id.
        参数:
        id - The eipbp id to query.
        返回:
        the eipbp detail.
      • listEipBps

        public ListEipBpsResponse listEipBps​(ListEipBpsRequest request)
        Get a list of eipbps owned by the authenticated user and specified conditions.
        参数:
        request - The request containing all options for query.
        返回:
        the eipbp's list.
      • listEipBps

        public ListEipBpsResponse listEipBps()
        Get a list of eipbps owned by the authenticated user.
        返回:
        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.
        参数:
        id - eipbp's id.
        name - eipbp's name.
        bindType - eipbp's bindType, eip or eipgroup.
        返回:
        the eipbp's list.
      • renameEipBp

        public void renameEipBp​(UpdateEipBpNameRequest request)
        Rename eipbp.
        参数:
        request - Eipbp id & name must be provided.
      • renameEipBp

        public void renameEipBp​(String id,
                                String name)
        Rename eipbp.
        参数:
        id - eipbp's id.
        name - eipbp's new name.
      • updateAutoReleaseTime

        public void updateAutoReleaseTime​(UpdateEipBpAutoReleaseTimeRequest request)
        Update eipbp's autoReleaseTime.
        参数:
        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.
        参数:
        id - eipbp's id.
        autoReleaseTime - eipbp's autoReleaseTime, must be in UTC format.
      • releaseEipBp

        public void releaseEipBp​(ReleaseEipBpRequest request)
        release the eipbp(delete operation).
        参数:
        request - The request containing all options for releasing eipbp.
      • releaseEipBp

        public void releaseEipBp​(String id)
        release the eipbp(delete operation).
        参数:
        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
        参数:
        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.