Package org.jclouds.samples.googleappengine.domain.ResourceResult

Examples of org.jclouds.samples.googleappengine.domain.ResourceResult.Builder


   @Resource
   protected Logger logger = Logger.NULL;

   public ResourceResult apply(ResourceMetadata<?> in) {
      Builder builder = ResourceResult.builder();
      Location provider = in.getLocation();
      while (provider.getParent() != null)
         provider = provider.getParent();
      builder.provider(provider.getId());
      builder.location(in.getLocation().getId());
      builder.type(in.getType().toString().toLowerCase());
      builder.id(in.getProviderId());
      builder.name(in.getName());
      return builder.build();
   }
View Full Code Here

TOP

Related Classes of org.jclouds.samples.googleappengine.domain.ResourceResult.Builder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.