Added oparent to sdc main
[sdc.git] / test-apis-ci / src / main / java / org / openecomp / sdc / ci / tests / datatypes / enums / GroupPropertyEnum.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.sdc.ci.tests.datatypes.enums;
22
23 import java.util.ArrayList;
24 import java.util.List;
25
26 public enum GroupPropertyEnum {
27
28     IS_BASE("isBase"),
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"),
32     VFC_LIST("vfc_list"),
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");
38
39     private String propertyName;
40
41     GroupPropertyEnum(String propertyName) {
42         this.propertyName = propertyName;
43     }
44
45     public String getPropertyName() {
46         return propertyName;
47     }
48
49     public static List<String> getGroupPropertyNamesWithoutIsbase(){
50         List<String> groupPropertyNames = new ArrayList<>();
51
52         for(GroupPropertyEnum groupProperty : GroupPropertyEnum.values()) {
53             if (!groupProperty.getPropertyName().equals(GroupPropertyEnum.IS_BASE)){
54                 groupPropertyNames.add(groupProperty.getPropertyName());
55             }
56         }
57         return groupPropertyNames;
58     }
59
60     public static List<String> getGroupPropertyNames(){
61         List<String> groupPropertyNames = GroupPropertyEnum.getGroupPropertyNamesWithoutIsbase();
62         groupPropertyNames.add(GroupPropertyEnum.IS_BASE.getPropertyName());
63         return groupPropertyNames;
64     }
65
66 }