class RDSRaiderImpl implements RDSRaider {

    @Override
    public void stopInstances(List<String> dbNames) {
        if (dbNames.isEmpty()) {
            throw new InvalidInputDataException("Empty dbNames list");
        }

        for (String dbName : dbNames) {
            DBInstance dbInstance = rdsDelegator.getAmazonRds().stopDBInstance(
                    new StopDBInstanceRequest().withDBInstanceIdentifier(dbName));

            if (dbInstance == null) {
                throw new com.intuit.cloudraider.exceptions.ResourceNotFoundException("Unable to stop DB instance: " + dbName);
            }
        }
    }

    public  RDSRaiderImpl();

}