37bd7214a66a4a4edcc64715c03444308bf4ecfd
[so.git] / bpmn / MSOCoreBPMN / src / main / java / org / openecomp / mso / bpmn / core / domain / ModuleResource.java
1 /*-\r
2  * ============LICENSE_START=======================================================\r
3  * ONAP - SO\r
4  * ================================================================================\r
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
6  * ================================================================================\r
7  * Licensed under the Apache License, Version 2.0 (the "License");\r
8  * you may not use this file except in compliance with the License.\r
9  * You may obtain a copy of the License at\r
10  *\r
11  *      http://www.apache.org/licenses/LICENSE-2.0\r
12  *\r
13  * Unless required by applicable law or agreed to in writing, software\r
14  * distributed under the License is distributed on an "AS IS" BASIS,\r
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  * See the License for the specific language governing permissions and\r
17  * limitations under the License.\r
18  * ============LICENSE_END=========================================================\r
19  */\r
20 \r
21 package org.openecomp.mso.bpmn.core.domain;\r
22 \r
23 import com.fasterxml.jackson.annotation.JsonRootName;\r
24 \r
25 @JsonRootName("vfModule")\r
26 public class ModuleResource  extends Resource {\r
27 \r
28         private static final long serialVersionUID = 1L;\r
29 \r
30         /*\r
31          * set resourceType for this object\r
32          */\r
33         public ModuleResource(){\r
34                 resourceType = ResourceType.MODULE;\r
35         }\r
36         \r
37         /*\r
38          * fields specific to VF Module resource type\r
39          */\r
40         private String vfModuleType;\r
41         private boolean hasVolumeGroup;\r
42         private boolean isBase;\r
43         private String vfModuleLabel;\r
44         private int initialCount;\r
45         \r
46         /*\r
47          * GET && SET\r
48          */\r
49         public boolean getIsBase() {\r
50                 return isBase;\r
51         }\r
52         public void setIsBase(boolean isBase) {\r
53                 this.isBase = isBase;\r
54         }\r
55         public String getVfModuleLabel() {\r
56                 return vfModuleLabel;\r
57         }\r
58         public void setVfModuleLabel(String vfModuleLabel) {\r
59                 this.vfModuleLabel = vfModuleLabel;\r
60         }\r
61         public int getInitialCount() {\r
62                 return initialCount;\r
63         }\r
64         public void setInitialCount(int initialCount) {\r
65                 this.initialCount = initialCount;\r
66         }\r
67         public String getVfModuleType() {\r
68                 return vfModuleType;\r
69         }\r
70         public void setVfModuleType(String vfModuleType) {\r
71                 this.vfModuleType = vfModuleType;\r
72         }\r
73         public boolean isHasVolumeGroup() {\r
74                 return hasVolumeGroup;\r
75         }\r
76         public void setHasVolumeGroup(boolean hasVolumeGroup) {\r
77                 this.hasVolumeGroup = hasVolumeGroup;\r
78         }\r
79         \r
80 }