Example usage for com.amazonaws.services.devicefarm.model ListDevicePoolsRequest ListDevicePoolsRequest

List of usage examples for com.amazonaws.services.devicefarm.model ListDevicePoolsRequest ListDevicePoolsRequest

Introduction

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

Prototype

ListDevicePoolsRequest

Source Link

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.//  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;
}