List of usage examples for com.amazonaws.services.devicefarm.model DevicePool getName
public String getName()
The device pool's name.
From source file:org.jenkinsci.plugins.awsdevicefarm.AWSDeviceFarm.java
License:Open Source License
/** * Get Device Farm device pool by Device Farm project and device pool name. * * @param project The Device Farm project. * @param devicePoolName String name of the device pool. * @return The Device Farm device pool.//from w w w . j av a 2 s .c o m * @throws AWSDeviceFarmException */ public DevicePool getDevicePool(Project project, String devicePoolName) throws AWSDeviceFarmException { List<DevicePool> pools = getDevicePools(project); for (DevicePool dp : pools) { if (dp.getName().equals(devicePoolName)) { return dp; } } throw new AWSDeviceFarmException(String.format("DevicePool '%s' not found.", devicePoolName)); }