Example usage for com.amazonaws.services.devicefarm.model ListDevicePoolsResult getDevicePools

List of usage examples for com.amazonaws.services.devicefarm.model ListDevicePoolsResult getDevicePools

Introduction

In this page you can find the example usage for com.amazonaws.services.devicefarm.model ListDevicePoolsResult getDevicePools.

Prototype


public java.util.List<DevicePool> getDevicePools() 

Source Link

Document

Information about the device pools.

Usage

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./*from  ww w .  jav  a2  s  . c om*/
 * @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;
}