throw new EC2ServiceException(ClientError.Unsupported, "Unsupported - only description or launchPermission supported");
}
public DescribeImagesResponse describeImages(DescribeImages describeImages) {
EC2DescribeImages request = new EC2DescribeImages();
DescribeImagesType dit = describeImages.getDescribeImages();
// -> toEC2DescribeImages
DescribeImagesExecutableBySetType param1 = dit.getExecutableBySet();
if (null != param1) {
DescribeImagesExecutableByType[] items1 = param1.getItem();
if (null != items1) {
for (int i = 0; i < items1.length; i++)
request.addExecutableBySet(items1[i].getUser());
}
}
DescribeImagesInfoType param2 = dit.getImagesSet();
if (null != param2) {
DescribeImagesItemType[] items2 = param2.getItem();
if (null != items2) {
for (int i = 0; i < items2.length; i++)
request.addImageSet(items2[i].getImageId());
}
}
DescribeImagesOwnersType param3 = dit.getOwnersSet();
if (null != param3) {
DescribeImagesOwnerType[] items3 = param3.getItem();
if (null != items3) {
for (int i = 0; i < items3.length; i++)
request.addOwnersSet(items3[i].getOwner());
}
}
FilterSetType fst = dit.getFilterSet();
if (fst != null) {
request.setFilterSet(toImageFilterSet(fst));
}
return toDescribeImagesResponse(engine.describeImages(request));
}