All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jclouds.aliyun.slb.loadbalancer.functions.RegionToLocation Maven / Gradle / Ivy

The newest version!
package org.jclouds.aliyun.slb.loadbalancer.functions;

import org.jclouds.domain.Location;
import org.jclouds.domain.LocationBuilder;
import org.jclouds.domain.LocationScope;

import com.google.common.base.Function;

public class RegionToLocation implements Function {

   @Override
   public Location apply(String input) {
      LocationBuilder builder = new LocationBuilder();
      builder.scope(LocationScope.REGION);
      builder.id(input);
      builder.description(input);
      return builder.build();
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy