Code example for Function

Methods: apply

0
      builder.ids(from.getHref().toASCIIString()); 
      builder.uri(from.getHref()); 
      builder.name(from.getName()); 
      builder.location(findLocationForResource.apply(checkNotNull(parent, "parent"))); 
      builder.description(from.getDescription() != null ? from.getDescription() : from.getName()); 
      builder.operatingSystem(osParser.apply(from.getName())); 
      builder.status(toPortableImageStatus.get(from.getStatus())); 
      builder.defaultCredentials(credentialsProvider.apply(from)); 
      return builder.build(); 
   } 
}