return response;
}
public static DescribeImagesResponse toDescribeImagesResponse(EC2DescribeImagesResponse engineResponse) {
DescribeImagesResponse response = new DescribeImagesResponse();
DescribeImagesResponseType param1 = new DescribeImagesResponseType();
DescribeImagesResponseInfoType param2 = new DescribeImagesResponseInfoType();
EC2Image[] images = engineResponse.getImageSet();
for (int i = 0; i < images.length; i++) {
String accountName = images[i].getAccountName();
String domainId = images[i].getDomainId();
String ownerId = domainId + ":" + accountName;
DescribeImagesResponseItemType param3 = new DescribeImagesResponseItemType();
param3.setImageId(images[i].getId());
param3.setImageLocation("");
param3.setImageState(images[i].getState());
param3.setImageOwnerId(ownerId);
param3.setIsPublic(images[i].getIsPublic());
ProductCodesSetType param4 = new ProductCodesSetType();
ProductCodesSetItemType param5 = new ProductCodesSetItemType();
param5.setProductCode("");
param5.setType("");
param4.addItem(param5);
param3.setProductCodes(param4);
String description = images[i].getDescription();
param3.setDescription((null == description ? "" : description));
param3.setArchitecture(images[i].getArchitecture());
param3.setImageType(images[i].getImageType());
param3.setKernelId("");
param3.setRamdiskId("");
param3.setPlatform("");
param3.setHypervisor(images[i].getHypervisor());
StateReasonType param6 = new StateReasonType();
param6.setCode("");
param6.setMessage("");
param3.setStateReason(param6);
param3.setImageOwnerAlias("");
param3.setName(images[i].getName());
param3.setRootDeviceType("");
param3.setRootDeviceName("");
BlockDeviceMappingType param7 = new BlockDeviceMappingType();
BlockDeviceMappingItemType param8 = new BlockDeviceMappingItemType();
BlockDeviceMappingItemTypeChoice_type0 param9 = new BlockDeviceMappingItemTypeChoice_type0();
param8.setDeviceName("");
param9.setVirtualName("");
EbsBlockDeviceType param10 = new EbsBlockDeviceType();
param10.setSnapshotId("");
param10.setVolumeSize(0);
param10.setDeleteOnTermination(false);
param9.setEbs(param10);
param8.setBlockDeviceMappingItemTypeChoice_type0(param9);
param7.addItem(param8);
param3.setBlockDeviceMapping(param7);
EC2TagKeyValue[] tags = images[i].getResourceTags();
param3.setTagSet(setResourceTags(tags));
param2.addItem(param3);
}
param1.setImagesSet(param2);
param1.setRequestId(UUID.randomUUID().toString());
response.setDescribeImagesResponse(param1);
return response;
}