
com.megaport.api.dto.VxcDistanceBand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client Show documentation
Show all versions of client Show documentation
This library is a Java wrapper for the Megaport API.
The newest version!
package com.megaport.api.dto;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
/**
* Created with IntelliJ IDEA.
* User: adam
* Date: 12/11/2013
* Time: 3:08 PM
* To change this template use File | Settings | File Templates.
*/
public enum VxcDistanceBand {
DATA_CENTRE("datacentre"),
CAMPUS("campus"),
METRO("metro"),
INTRA_STATE("intra_state"),
INTERCAP("intercap"),
ZONE("zone"),
INTERZONE("interzone"),
INTERNATIONAL("international");
private static final Map lookup = new HashMap<>();
static {
for (VxcDistanceBand s : EnumSet.allOf(VxcDistanceBand.class))
lookup.put(s.getCode(), s);
}
private String code;
VxcDistanceBand(String code) {
this.code = code;
}
public String getCode() {
return code;
}
public static VxcDistanceBand get(String code) {
return lookup.get(code);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy