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 |
bindEip(BindEipRequest request)
Binding the eips to specified nat.
|
CreateNatResponse |
createNat(CreateNatRequest request)
Create a nat with the specified options.
|
GetNatResponse |
getNat(GetNatRequest request)
Get the detail information of specified nat.
|
GetNatResponse |
getNat(String natId)
Get the detail information of specified nat.
|
ListNatResponse |
listNat(ListNatRequest request)
Return a list of nats owned by the authenticated user.
|
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 |
unbindEip(BindEipRequest request)
Unbinding the eips to specified nat.
|
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.Copyright © 2021. All rights reserved.