public void setAffectedSubnets(java.util.Collection<String> affectedSubnets) {
        if (affectedSubnets == null) {
            this.affectedSubnets = null;
            return;
        }

        this.affectedSubnets = new java.util.ArrayList<String>(affectedSubnets);
    }
<p>
The subnets that are affected.
</p>

@param affectedSubnets
       The subnets that are affected.
aws-java-sdk-fms/src/main/java/com/amazonaws/services/fms/model/NetworkFirewallInvalidRouteConfigurationViolation.java