public void setRules(java.util.Collection<Rule> rules) {
        if (rules == null) {
            this.rules = null;
            return;
        }

        this.rules = new java.util.ArrayList<Rule>(rules);
    }
<p>
Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your
request, the update replaces the existing rules.
</p>

@param rules
       Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for
       your request, the update replaces the existing rules.
aws-java-sdk-devicefarm/src/main/java/com/amazonaws/services/devicefarm/model/UpdateDevicePoolRequest.java