public class NatClient extends AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindDnatEip(BindDnatEipRequest request)
Bind eips in the specified dnat.
|
void |
bindEip(BindEipRequest request)
Binding the eips to specified nat.
|
CreateNatRuleResponse |
createDnatRule(CreateDnatRuleRequest request)
Create a dnat rule for the specified dnat.
|
CreateNatResponse |
createNat(CreateNatRequest request)
Create a nat with the specified options.
|
CreateNatRuleResponse |
createSnatRule(CreateSnatRuleRequest request)
Create a snat rule for the specified snat.
|
void |
deleteDnatRule(DeleteNatRuleRequest request)
Delete a dnat rule via the dnat rule id in the specified dnat.
|
void |
deleteSnatRule(DeleteNatRuleRequest request)
Delete a snat rule via the snat rule id in the specified snat.
|
GetNatResponse |
getNat(GetNatRequest request)
Get the detail information of specified nat.
|
GetNatResponse |
getNat(String natId)
Get the detail information of specified nat.
|
ListDnatRuleResponse |
listDnatRule(ListNatRuleRequest request)
List the information of dnat rules in one specified dnat.
|
ListDnatRuleResponse |
listDnatRule(String natId)
List the information of dnat rules in one specified dnat.
|
ListNatResponse |
listNat(ListNatRequest request)
Return a list of nats owned by the authenticated user.
|
ListSnatRuleResponse |
listSnatRule(ListNatRuleRequest request)
List the information of snat rules in one specified snat.
|
ListSnatRuleResponse |
listSnatRule(String natId)
List the information of snat rules in one specified snat.
|
void |
modifyNat(ModifyNatRequest request)
Modifying the name of the specified nat.
|
void |
purchaseReservedNat(PurchaseReservedNatRequest request)
PurchaseReserving specified nat.
|
void |
releaseNat(ReleaseNatRequest request)
Releasing specified nat.
|
void |
unbindDnatEip(BindDnatEipRequest request)
Unbind eips in the specified dnat.
|
void |
unbindEip(BindEipRequest request)
Unbinding the eips to specified nat.
|
void |
updateDnatRule(UpdateDnatRuleRequest request)
Update a dnat rule via the dnat rule id in the specified dnat.
|
void |
updateSnatRule(UpdateSnatRuleRequest request)
Update a snat rule via the snat rule id in the specified snat.
|
computeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic NatClient()
public NatClient(NatClientConfiguration clientConfiguration)
clientConfiguration - The network client configuration options controlling how this client
connects to network (e.g. proxy settings, retry counts, etc).public CreateNatResponse createNat(CreateNatRequest request)
request - The request containing all options for creating a nat.BceClientExceptionpublic ListNatResponse listNat(ListNatRequest request)
request - The request containing all options for listing own's nat.public GetNatResponse getNat(String natId)
natId - The id of the network.public GetNatResponse getNat(GetNatRequest request)
request - The request of the network.public void modifyNat(ModifyNatRequest request)
request - The request containing all options for modifying the nat name;public void bindEip(BindEipRequest request)
request - The request containing all options for binding the eips to specified nat.public void unbindEip(BindEipRequest request)
request - The request containing all options for binding the eips to specified nat.public void releaseNat(ReleaseNatRequest request)
request - The request containing all options for releasing the eips to specified nat.public void purchaseReservedNat(PurchaseReservedNatRequest request)
request - The request containing all options for purchaseReserving the eips to specified nat.public void bindDnatEip(BindDnatEipRequest request)
request - The request containing all the parameters for binding the eips in the specified dnat.public void unbindDnatEip(BindDnatEipRequest request)
request - The request containing all the parameters for unbinding the eips in the specified dnat.public CreateNatRuleResponse createSnatRule(CreateSnatRuleRequest request)
request - The request contains all parameters for creating a snat rule.public void deleteSnatRule(DeleteNatRuleRequest request)
request - The request contains the natId and ruleId for deleting a snat rule.public void updateSnatRule(UpdateSnatRuleRequest request)
request - The request contains all parameters for updating a snat rule.public ListSnatRuleResponse listSnatRule(String natId)
natId - The id of the snat.public ListSnatRuleResponse listSnatRule(ListNatRuleRequest request)
request - The request contains natId, marker and maxKeys for getting all snat rules.public CreateNatRuleResponse createDnatRule(CreateDnatRuleRequest request)
request - The request contains all parameters for creating a dnat rule.public void deleteDnatRule(DeleteNatRuleRequest request)
request - The request contains the natId and ruleId for deleting a dnat rule.public void updateDnatRule(UpdateDnatRuleRequest request)
request - The request contains all parameters for updating a dnat rule.public ListDnatRuleResponse listDnatRule(String natId)
natId - The id of the dnat.public ListDnatRuleResponse listDnatRule(ListNatRuleRequest request)
request - The request contains natId, marker and maxKeys for getting all dnat rules.Copyright © 2022. All rights reserved.