public Integer getMaxDevices() {
        return this.maxDevices;
    }
<p>
The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available
and that meet the criteria that you assign for the <code>rules</code> parameter. Depending on how many devices
meet these constraints, your device pool might contain fewer devices than the value for this parameter.
</p>
<p>
By specifying the maximum number of devices, you can control the costs that you incur by running tests.
</p>
<p>
If you use this parameter in your request, you cannot use the <code>clearMaxDevices</code> parameter in the same
request.
</p>

@return The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are
        available and that meet the criteria that you assign for the <code>rules</code> parameter. Depending on
        how many devices meet these constraints, your device pool might contain fewer devices than the value for
        this parameter.</p>
        <p>
        By specifying the maximum number of devices, you can control the costs that you incur by running tests.
        </p>
        <p>
        If you use this parameter in your request, you cannot use the <code>clearMaxDevices</code> parameter in
        the same request.
aws-java-sdk-devicefarm/src/main/java/com/amazonaws/services/devicefarm/model/UpdateDevicePoolRequest.java