Sync Integ to Master
[sdc.git] / test-apis-ci / src / main / java / org / openecomp / sdc / ci / tests / datatypes / enums / GroupPropertyEnum.java
1 package org.openecomp.sdc.ci.tests.datatypes.enums;
2
3 import java.util.ArrayList;
4 import java.util.List;
5
6 public enum GroupPropertyEnum {
7
8     IS_BASE("isBase"),
9     MIN_VF_MODULE_INSTANCES("min_vf_module_instances"),
10     MAX_VF_MODULE_INSTANCES("max_vf_module_instances"),
11     VF_MODULE_LABEL("vf_module_label"),
12     VFC_LIST("vfc_list"),
13     VF_MODULE_TYPE("vf_module_type"),
14     VF_MODULE_DESCRIPTION("vf_module_description"),
15     INITIAL_COUNT("initial_count"),
16     VOLUME_GROUP("volume_group"),
17     AVAILABILITY_ZONE_COUNT("availability_zone_count");
18
19     private String propertyName;
20
21     GroupPropertyEnum(String propertyName) {
22         this.propertyName = propertyName;
23     }
24
25     public String getPropertyName() {
26         return propertyName;
27     }
28
29     public static List<String> getGroupPropertyNamesWithoutIsbase(){
30         List<String> groupPropertyNames = new ArrayList<>();
31
32         for(GroupPropertyEnum groupProperty : GroupPropertyEnum.values()) {
33             if (!groupProperty.getPropertyName().equals(GroupPropertyEnum.IS_BASE)){
34                 groupPropertyNames.add(groupProperty.getPropertyName());
35             }
36         }
37         return groupPropertyNames;
38     }
39
40     public static List<String> getGroupPropertyNames(){
41         List<String> groupPropertyNames = GroupPropertyEnum.getGroupPropertyNamesWithoutIsbase();
42         groupPropertyNames.add(GroupPropertyEnum.IS_BASE.getPropertyName());
43         return groupPropertyNames;
44     }
45
46 }