in rackspace-autoscale/src/main/java/org/jclouds/rackspace/autoscale/v1/domain/GroupConfiguration.java [47:61]
protected GroupConfiguration(String name, int cooldown, int minEntities, int maxEntities, Map<String, String> metadata) {
this.name = checkNotNull(name, "name required");
checkArgument(cooldown >= 0, "cooldown should be non-negative");
checkArgument(minEntities >= 0, "minEntities should be non-negative");
checkArgument(maxEntities >= 0, "maxEntities should be non-negative");
this.cooldown = cooldown;
this.minEntities = minEntities;
this.maxEntities = maxEntities;
if (metadata == null) {
this.metadata = ImmutableMap.of();
} else {
this.metadata = ImmutableMap.copyOf(metadata);
}
}