类 NatClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.nat.NatClient
-
public class NatClient extends AbstractBceClient
Provides the client for accessing the Baidu Cloud network Service nat part.
-
-
字段概要
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 NatClient()Constructs a new client to invoke service methods on network.NatClient(NatClientConfiguration clientConfiguration)Constructs a new network client using the client configuration to access network.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidbindDnatEip(BindDnatEipRequest request)Bind eips in the specified dnat.voidbindEip(BindEipRequest request)Binding the eips to specified nat.CreateNatRuleResponsecreateDnatRule(CreateDnatRuleRequest request)Create a dnat rule for the specified dnat.CreateNatResponsecreateNat(CreateNatRequest request)Create a nat with the specified options.CreateNatRuleResponsecreateSnatRule(CreateSnatRuleRequest request)Create a snat rule for the specified snat.voiddeleteDnatRule(DeleteNatRuleRequest request)Delete a dnat rule via the dnat rule id in the specified dnat.voiddeleteSnatRule(DeleteNatRuleRequest request)Delete a snat rule via the snat rule id in the specified snat.GetNatResponsegetNat(GetNatRequest request)Get the detail information of specified nat.GetNatResponsegetNat(String natId)Get the detail information of specified nat.ListDnatRuleResponselistDnatRule(ListNatRuleRequest request)List the information of dnat rules in one specified dnat.ListDnatRuleResponselistDnatRule(String natId)List the information of dnat rules in one specified dnat.ListNatResponselistNat(ListNatRequest request)Return a list of nats owned by the authenticated user.ListSnatRuleResponselistSnatRule(ListNatRuleRequest request)List the information of snat rules in one specified snat.ListSnatRuleResponselistSnatRule(String natId)List the information of snat rules in one specified snat.voidmodifyNat(ModifyNatRequest request)Modifying the name of the specified nat.voidpurchaseReservedNat(PurchaseReservedNatRequest request)PurchaseReserving specified nat.voidreleaseNat(ReleaseNatRequest request)Releasing specified nat.voidunbindDnatEip(BindDnatEipRequest request)Unbind eips in the specified dnat.voidunbindEip(BindEipRequest request)Unbinding the eips to specified nat.voidupdateDnatRule(UpdateDnatRuleRequest request)Update a dnat rule via the dnat rule id in the specified dnat.voidupdateSnatRule(UpdateSnatRuleRequest request)Update a snat rule via the snat rule id in the specified snat.-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
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.
-
-