459d20332553aa6f92fbd2bda9e0a62595fcdbe4
[so.git] / bpmn / MSOCoreBPMN / src / main / java / org / onap / so / bpmn / core / domain / ModuleResource.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 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.onap.so.bpmn.core.domain;
22
23 import com.fasterxml.jackson.annotation.JsonRootName;
24
25 @JsonRootName("vfModule")
26 public class ModuleResource  extends Resource {
27
28         private static final long serialVersionUID = 1L;
29
30         /*
31          * set resourceType for this object
32          */
33         public ModuleResource(){
34                 resourceType = ResourceType.MODULE;
35         }
36
37         /*
38          * fields specific to VF Module resource type
39          */
40         private String vfModuleName;
41         private String vfModuleType;
42         private String heatStackId;
43         private boolean hasVolumeGroup;
44         private boolean isBase;
45         private String vfModuleLabel;
46         private int initialCount;
47
48         /*
49          * GET && SET
50          */
51         public String getVfModuleName() {
52                 return vfModuleName;
53         }
54         public void setVfModuleName(String vfModuleName) {
55                 this.vfModuleName = vfModuleName;
56         }
57         public String getHeatStackId() {
58                 return heatStackId;
59         }
60         public void setHeatStackId(String heatStackId) {
61                 this.heatStackId = heatStackId;
62         }
63         public boolean getIsBase() {
64                 return isBase;
65         }
66         public void setIsBase(boolean isBase) {
67                 this.isBase = isBase;
68         }
69         public String getVfModuleLabel() {
70                 return vfModuleLabel;
71         }
72         public void setVfModuleLabel(String vfModuleLabel) {
73                 this.vfModuleLabel = vfModuleLabel;
74         }
75         public int getInitialCount() {
76                 return initialCount;
77         }
78         public void setInitialCount(int initialCount) {
79                 this.initialCount = initialCount;
80         }
81         public String getVfModuleType() {
82                 return vfModuleType;
83         }
84         public void setVfModuleType(String vfModuleType) {
85                 this.vfModuleType = vfModuleType;
86         }
87         public boolean isHasVolumeGroup() {
88                 return hasVolumeGroup;
89         }
90         public void setHasVolumeGroup(boolean hasVolumeGroup) {
91                 this.hasVolumeGroup = hasVolumeGroup;
92         }
93
94 }