}
public DescribeAvailabilityZonesResponse describeAvailabilityZones(DescribeAvailabilityZones describeAvailabilityZones) {
EC2DescribeAvailabilityZones request = new EC2DescribeAvailabilityZones();
DescribeAvailabilityZonesType dazt = describeAvailabilityZones.getDescribeAvailabilityZones();
DescribeAvailabilityZonesSetType dazs = dazt.getAvailabilityZoneSet();
DescribeAvailabilityZonesSetItemType[] items = dazs.getItem();
if (null != items) { // -> can be empty
for (int i = 0; i < items.length; i++)
request.addZone(items[i].getZoneName());
}
FilterSetType fst = dazt.getFilterSet();
if (fst != null) {
request.setFilterSet(toAvailabiltyZonesFilterSet(fst));
}
return toDescribeAvailabilityZonesResponse(engine.describeAvailabilityZones(request));