package com.sixsq.slipstream.persistence; /* * +=================================================================+ * SlipStream Server (WAR) * ===== * Copyright (C) 2013 SixSq Sarl (sixsq.com) * ===== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * -=================================================================- */ import java.util.ArrayList; import java.util.List; public enum InstanceTypeTest { M1_SMALL("m1.small"), C1_MEDIUM("c1.medium"), M1_LARGE("m1.large"), M1_XLARGE( "m1.xlarge"), C1_XLARGE("c1.xlarge"), T1_MICRO("t1.micro"), STANDARD_XSMALL("standard.xsmall"); // Add this for HPcloud public static final String INHERITED = "inherited"; private final String value; InstanceTypeTest(String value) { this.value = value; } public String getValue() { return value; } public static List<String> getValues() { List<String> types = new ArrayList<String>(); for (InstanceTypeTest type : InstanceTypeTest.values()) { types.add(type.getValue()); } return types; } }