Code example for Function

Methods: apply

0
   public Image apply(ImageInZone imageInZone) {
      Location location = locationIndex.get().get(imageInZone.getZone());
      checkState(location != null, "location %s not in locationIndex: %s", imageInZone.getZone(), locationIndex.get());
      org.jclouds.openstack.nova.v2_0.domain.Image image = imageInZone.getImage();
      return new ImageBuilder().id(imageInZone.slashEncode()).providerId(image.getId()).name(image.getName())
               .userMetadata(image.getMetadata()).operatingSystem(imageToOs.apply(image)).description(image.getName())
               .location(location).status(toPortableImageStatus.get(image.getStatus())).build();
   } 
    
   @Override 
   public String toString() {
      return Objects.toStringHelper(this).toString();
   } 
}