// Path: aliyun-ecs/src/main/java/org/jclouds/aliyun/ecs/ECSApi.java
// public interface ECSApi extends Closeable {
// 
//    static final String DEFAULT_REGION = "cn-hangzhou";
// 
//    IAcsClient getAcsClient(String region);
// 
//    Set<String> getAvailableRegions();
// 
//    String encodeToId(String region, String id);
// 
//    String decodeToRegion(String id);
// 
//    String decodeToId(String id);
// }


import org.jclouds.aliyun.ecs.ECSApi;
import org.jclouds.compute.domain.Image;
import org.jclouds.compute.domain.ImageBuilder;
import org.jclouds.compute.domain.OperatingSystem;
import com.aliyuncs.ecs.model.v20140526.DescribeImagesResponse;
import com.google.common.base.Function;
package org.jclouds.aliyun.ecs.compute.functions;



public class ImageToImage implements Function<DescribeImagesResponse.Image, Image> {

   protected final ECSApi api;
   protected final String region;

// Path: aliyun-ecs/src/main/java/org/jclouds/aliyun/ecs/ECSApi.java
// public interface ECSApi extends Closeable {
// 
//    static final String DEFAULT_REGION = "cn-hangzhou";
// 
//    IAcsClient getAcsClient(String region);
// 
//    Set<String> getAvailableRegions();
// 
//    String encodeToId(String region, String id);
// 
//    String decodeToRegion(String id);
// 
//    String decodeToId(String id);
// }


// Path: aliyun-ecs/src/main/java/org/jclouds/aliyun/ecs/compute/functions/ImageToImage.java
import org.jclouds.aliyun.ecs.ECSApi;
import org.jclouds.compute.domain.Image;
import org.jclouds.compute.domain.ImageBuilder;
import org.jclouds.compute.domain.OperatingSystem;
import com.aliyuncs.ecs.model.v20140526.DescribeImagesResponse;
import com.google.common.base.Function;

package org.jclouds.aliyun.ecs.compute.functions;



public class ImageToImage implements Function<DescribeImagesResponse.Image, Image> {

   protected final ECSApi api;
   protected final String region;

   public ImageToImage(ECSApi api, String region) {