类 NatClient


  • public class NatClient
    extends AbstractBceClient
    Provides the client for accessing the Baidu Cloud network Service nat part.
    • 构造器详细资料

      • NatClient

        public NatClient()
        Constructs a new client to invoke service methods on network.
      • NatClient

        public NatClient​(NatClientConfiguration 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).
    • 方法详细资料

      • createNat

        public CreateNatResponse createNat​(CreateNatRequest request)
        Create a nat 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 a nat.
        返回:
        nat id newly created
        抛出:
        BceClientException
      • listNat

        public ListNatResponse listNat​(ListNatRequest request)
        Return a list of nats owned by the authenticated user.
        参数:
        request - The request containing all options for listing own's nat.
        返回:
        The response containing a list of nats owned by the authenticated user.
      • getNat

        public GetNatResponse getNat​(String natId)
        Get the detail information of specified nat.
        参数:
        natId - The id of the network.
        返回:
        A nat detail model for the natId.
      • getNat

        public GetNatResponse getNat​(GetNatRequest request)
        Get the detail information of specified nat.
        参数:
        request - The request of the network.
        返回:
        A nat detail model for the request.
      • modifyNat

        public void modifyNat​(ModifyNatRequest request)
        Modifying the name of the specified nat.
        参数:
        request - The request containing all options for modifying the nat name;
      • bindEip

        public void bindEip​(BindEipRequest request)
        Binding the eips to specified nat.
        参数:
        request - The request containing all options for binding the eips to specified nat.
      • unbindEip

        public void unbindEip​(BindEipRequest request)
        Unbinding the eips to specified nat.
        参数:
        request - The request containing all options for binding the eips to specified nat.
      • releaseNat

        public void releaseNat​(ReleaseNatRequest request)
        Releasing specified nat.
        参数:
        request - The request containing all options for releasing the eips to specified nat.
      • purchaseReservedNat

        public void purchaseReservedNat​(PurchaseReservedNatRequest request)
        PurchaseReserving specified nat.
        参数:
        request - The request containing all options for purchaseReserving the eips to specified nat.
      • bindDnatEip

        public void bindDnatEip​(BindDnatEipRequest request)
        Bind eips in the specified dnat.
        参数:
        request - The request containing all the parameters for binding the eips in the specified dnat.
      • unbindDnatEip

        public void unbindDnatEip​(BindDnatEipRequest request)
        Unbind eips in the specified dnat.
        参数:
        request - The request containing all the parameters for unbinding the eips in the specified dnat.
      • createSnatRule

        public CreateNatRuleResponse createSnatRule​(CreateSnatRuleRequest request)
        Create a snat rule for the specified snat.
        参数:
        request - The request contains all parameters for creating a snat rule.
        返回:
        the nat rule id newly created
      • deleteSnatRule

        public void deleteSnatRule​(DeleteNatRuleRequest request)
        Delete a snat rule via the snat rule id in the specified snat.
        参数:
        request - The request contains the natId and ruleId for deleting a snat rule.
      • updateSnatRule

        public void updateSnatRule​(UpdateSnatRuleRequest request)
        Update a snat rule via the snat rule id in the specified snat.
        参数:
        request - The request contains all parameters for updating a snat rule.
      • listSnatRule

        public ListSnatRuleResponse listSnatRule​(String natId)
        List the information of snat rules in one specified snat.
        参数:
        natId - The id of the snat.
        返回:
        All rule information in one specified snat.
      • listSnatRule

        public ListSnatRuleResponse listSnatRule​(ListNatRuleRequest request)
        List the information of snat rules in one specified snat.
        参数:
        request - The request contains natId, marker and maxKeys for getting all snat rules.
        返回:
        All rule information in one specified snat.
      • createDnatRule

        public CreateNatRuleResponse createDnatRule​(CreateDnatRuleRequest request)
        Create a dnat rule for the specified dnat.
        参数:
        request - The request contains all parameters for creating a dnat rule.
        返回:
        the nat rule id newly created
      • deleteDnatRule

        public void deleteDnatRule​(DeleteNatRuleRequest request)
        Delete a dnat rule via the dnat rule id in the specified dnat.
        参数:
        request - The request contains the natId and ruleId for deleting a dnat rule.
      • updateDnatRule

        public void updateDnatRule​(UpdateDnatRuleRequest request)
        Update a dnat rule via the dnat rule id in the specified dnat.
        参数:
        request - The request contains all parameters for updating a dnat rule.
      • listDnatRule

        public ListDnatRuleResponse listDnatRule​(String natId)
        List the information of dnat rules in one specified dnat.
        参数:
        natId - The id of the dnat.
        返回:
        All rule information in one specified dnat.
      • listDnatRule

        public ListDnatRuleResponse listDnatRule​(ListNatRuleRequest request)
        List the information of dnat rules in one specified dnat.
        参数:
        request - The request contains natId, marker and maxKeys for getting all dnat rules.
        返回:
        All rule information in one specified dnat.