2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.ci.tests.datatypes.enums;
23 import java.util.ArrayList;
24 import java.util.List;
26 public enum GroupPropertyEnum {
29 MIN_VF_MODULE_INSTANCES("min_vf_module_instances"),
30 MAX_VF_MODULE_INSTANCES("max_vf_module_instances"),
31 VF_MODULE_LABEL("vf_module_label"),
33 VF_MODULE_TYPE("vf_module_type"),
34 VF_MODULE_DESCRIPTION("vf_module_description"),
35 INITIAL_COUNT("initial_count"),
36 VOLUME_GROUP("volume_group"),
37 AVAILABILITY_ZONE_COUNT("availability_zone_count");
39 private String propertyName;
41 GroupPropertyEnum(String propertyName) {
42 this.propertyName = propertyName;
45 public String getPropertyName() {
49 public static List<String> getGroupPropertyNamesWithoutIsbase(){
50 List<String> groupPropertyNames = new ArrayList<>();
52 for(GroupPropertyEnum groupProperty : GroupPropertyEnum.values()) {
53 if (!groupProperty.getPropertyName().equals(GroupPropertyEnum.IS_BASE)){
54 groupPropertyNames.add(groupProperty.getPropertyName());
57 return groupPropertyNames;
60 public static List<String> getGroupPropertyNames(){
61 List<String> groupPropertyNames = GroupPropertyEnum.getGroupPropertyNamesWithoutIsbase();
62 groupPropertyNames.add(GroupPropertyEnum.IS_BASE.getPropertyName());
63 return groupPropertyNames;