Class NatPoolServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.gbp.internal.NatPoolServiceImpl
-
- All Implemented Interfaces:
NatPoolService
public class NatPoolServiceImpl extends BaseNetworkingServices implements NatPoolService
Nat Pool API Implementation- Author:
- vinod borole
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description NatPoolServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NatPoolcreate(NatPool natpool)Create a new nat poolActionResponsedelete(String id)Delete of the nat poolNatPoolget(String id)Get the specified nat pool by IDList<? extends NatPool>list()List all nat poolList<? extends NatPool>list(Map<String,String> filteringParams)Returns list of nat pool filtered by parameters.NatPoolupdate(String natpoolId, NatPool natpool)Updates an existing nat pool-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends NatPool> list()
List all nat pool- Specified by:
listin interfaceNatPoolService- Returns:
- List of nat pool
-
list
public List<? extends NatPool> list(Map<String,String> filteringParams)
Returns list of nat pool filtered by parameters.- Specified by:
listin interfaceNatPoolService- Parameters:
filteringParams- map (name, value) of filtering parameters
-
get
public NatPool get(String id)
Get the specified nat pool by ID- Specified by:
getin interfaceNatPoolService- Parameters:
id- the nat pool id- Returns:
- nat pool or null if not found
-
delete
public ActionResponse delete(String id)
Delete of the nat pool- Specified by:
deletein interfaceNatPoolService- Parameters:
id- the nat pool id- Returns:
- the action response
-
create
public NatPool create(NatPool natpool)
Create a new nat pool- Specified by:
createin interfaceNatPoolService- Returns:
- the newly created nat pool
-
update
public NatPool update(String natpoolId, NatPool natpool)
Updates an existing nat pool- Specified by:
updatein interfaceNatPoolService- Returns:
- the updated nat pool
-
-