List of usage examples for com.amazonaws.services.devicefarm.model Project getName
public String getName()
The project's name.
From source file:org.jenkinsci.plugins.awsdevicefarm.AWSDeviceFarm.java
License:Open Source License
/** * Get Device Farm project by name.// w w w . jav a2 s. c o m * * @param projectName String name of the Device Farm project. * @return The Device Farm project. * @throws AWSDeviceFarmException */ public Project getProject(String projectName) throws AWSDeviceFarmException { for (Project p : getProjects()) { if (p.getName().equals(projectName)) { return p; } } throw new AWSDeviceFarmException(String.format("Project '%s' not found.", projectName)); }