List of usage examples for com.amazonaws.services.devicefarm.model ListDevicePoolsRequest ListDevicePoolsRequest
ListDevicePoolsRequest
From source file:org.jenkinsci.plugins.awsdevicefarm.AWSDeviceFarm.java
License:Open Source License
/** * Get Device Farm device pools for a given Device Farm project. * * @param project Device Farm Project.// w w w . j a va 2s.c o m * @return A List of the Device Farm device pools. * @throws AWSDeviceFarmException */ public List<DevicePool> getDevicePools(Project project) { ListDevicePoolsResult poolsResult = api .listDevicePools(new ListDevicePoolsRequest().withArn(project.getArn())); List<DevicePool> pools = poolsResult.getDevicePools(); return pools; }