com.baidubce.services.nat
Class NatClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.nat.NatClient

public class NatClient
extends AbstractBceClient

Provides the client for accessing the Baidu Cloud network Service nat part.


Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class com.baidubce.AbstractBceClient
getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Parameters:
clientConfiguration - The network client configuration options controlling how this client connects to network (e.g. proxy settings, retry counts, etc).
Method Detail

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.

Parameters:
request - The request containing all options for creating a nat.
Returns:
nat id newly created
Throws:
BceClientException

listNat

public ListNatResponse listNat(ListNatRequest request)
Return a list of nats owned by the authenticated user.

Parameters:
request - The request containing all options for listing own's nat.
Returns:
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.

Parameters:
natId - The id of the network.
Returns:
A nat detail model for the natId.

getNat

public GetNatResponse getNat(GetNatRequest request)
Get the detail information of specified nat.

Parameters:
request - The request of the network.
Returns:
A nat detail model for the request.

modifyNat

public void modifyNat(ModifyNatRequest request)
Modifying the name of the specified nat.

Parameters:
request - The request containing all options for modifying the nat name;

bindEip

public void bindEip(BindEipRequest request)
Binding the eips to specified nat.

Parameters:
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.

Parameters:
request - The request containing all options for binding the eips to specified nat.

releaseNat

public void releaseNat(ReleaseNatRequest request)
Releasing specified nat.

Parameters:
request - The request containing all options for releasing the eips to specified nat.

purchaseReservedNat

public void purchaseReservedNat(PurchaseReservedNatRequest request)
PurchaseReserving specified nat.

Parameters:
request - The request containing all options for purchaseReserving the eips to specified nat.


Copyright © 2018. All rights reserved.