import io.fathom.cloud.protobuf.CloudModel.InstanceData;
import io.fathom.cloud.protobuf.CloudModel.VirtualIpPoolType;
public abstract class VirtualIpMapper {
public static VirtualIpMapper build(SchedulerHost host, InstanceData instance, VirtualIp vip) {
VirtualIpPoolType type = vip.getPoolData().getType();
switch (type) {
case AMAZON_EC2:
return new Ec2VirtualIpMapper();
case LAYER_3: